getVar() public method

public getVar ( ) : VariableElement,
return VariableElement,
Example #1
0
 public override void VisitStructVar(ScalarVariableDeclaration element)
 {
     Console.Write(element.getType()+" ");
     VisitElement(element.getVar());
     Console.Write(";\n");
 }
Example #2
0
 public override void VisitStructVar(ScalarVariableDeclaration element)
 {
     //throw new NotImplementedException();
     string int_name = (element.getVar()).getText();
     if (mVariableMap.Count == 0)
         mVariableMap.Add(int_name, element);
     else
     {
         if (map_contains_matrix(int_name))
         {
             Console.Write("Variable Already Declared\n");
             sendres(112, "Variable Already Declared\n");
         }
         else
             mVariableMap.Add(int_name, element);
     }
 }