Ejemplo n.º 1
0
 public void registerValue(INamed named, bool checkDuplicate)
 {
     if (checkDuplicate)
     {
         // only explore current context
         if (instances.ContainsKey(named.GetName()))
         {
             throw new SyntaxError("Duplicate name: \"" + named.GetName() + "\"");
         }
     }
     instances[named.GetName()] = named;
 }
Ejemplo n.º 2
0
 public String GetName()
 {
     return(linked.GetName());
 }