getName() public method

public getName ( ) : VariableElement,
return VariableElement,
Beispiel #1
0
 public override void VisitStructDeclaration(StructDeclaration element)
 {
     Console.Write("Struct ");
     VisitElement(element.getName());
     Console.Write(";\n");
 }
Beispiel #2
0
 public override void VisitStructDeclaration(StructDeclaration element)
 {
     //throw new NotImplementedException();
     //struct s{int a;};
     if (element != null)
     {
         if (mVariableMap.ContainsKey(element.getName().getText()))
         {
             sendres(112, "Variable declared\n");
             Console.Write("Variable declared\n");
         }
         else
             mVariableMap.Add(element.getName().getText(), element);
     }
     else
         Console.Write("Null Structure element\n");
 }