Exemple #1
0
 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;
 }
Exemple #2
0
 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);
 }
Exemple #3
0
 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);
 }
Exemple #4
0
		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;
		}
Exemple #5
0
 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;
 }