public VariableNameState Merge(VariableNameState other) { existingVariableNames.Merge(other.existingVariableNames); existingMethodNames.Merge(other.existingMethodNames); existingPropertyNames.Merge(other.existingPropertyNames); existingEventNames.Merge(other.existingEventNames); variableNameCreator.Merge(other.variableNameCreator); propertyNameCreator.Merge(other.propertyNameCreator); eventNameCreator.Merge(other.eventNameCreator); genericPropertyNameCreator.Merge(other.genericPropertyNameCreator); staticMethodNameCreator.Merge(other.staticMethodNameCreator); instanceMethodNameCreator.Merge(other.instanceMethodNameCreator); return(this); }
public virtual TypeNames Merge(TypeNames other) { foreach (var pair in other.typeNames) { NameCreator nc; if (typeNames.TryGetValue(pair.Key, out nc)) { nc.Merge(pair.Value); } else { typeNames[pair.Key] = pair.Value.Clone(); } } genericParamNameCreator.Merge(other.genericParamNameCreator); fnPtrNameCreator.Merge(other.fnPtrNameCreator); unknownNameCreator.Merge(other.unknownNameCreator); return(this); }