internal void MergeWith(PackageScope p){
foreach (Object f in p.field_table){
JSGlobalField field = (JSGlobalField)f;
ClassScope csc = field.value as ClassScope;
if (this.name_table[field.Name] != null){
if (csc != null){
csc.owner.context.HandleError(JSError.DuplicateName, field.Name, true);
csc.owner.name += p.GetHashCode().ToString(CultureInfo.InvariantCulture);
}
continue;
}
this.field_table.Add(field);
this.name_table[field.Name] = field;
if (csc != null){
csc.owner.enclosingScope = this;
csc.package = this;
}
}
}
}