Exemplo n.º 1
0
 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);
 }
Exemplo n.º 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);
 }