public virtual TypeNames merge(TypeNames other) { foreach (var pair in other.typeNames) { if (typeNames.ContainsKey(pair.Key)) typeNames[pair.Key].merge(pair.Value); else typeNames[pair.Key] = pair.Value.clone(); } genericParamNameCreator.merge(other.genericParamNameCreator); 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); return(this); }
public virtual TypeNames Merge(TypeNames other) { if (this == other) { return(this); } foreach (var pair in other.typeNames) { if (typeNames.TryGetValue(pair.Key, out var 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); }
public virtual TypeNames Merge(TypeNames other) { if (this == other) return this; 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; }
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); return this; }