getType() публичный Метод

public getType ( ) : String
Результат String
Пример #1
0
 public override void VisitVectorElement(VectorVariableDeclaration element)
 {
     Console.Write("Vector<" + element.getType()+">[");
     VisitElement(element.getRange());
     Console.Write("] ");
     VisitElement(element.getText());
     Console.Write(" = [");
     List<Element> elem = new List<Element>();
     elem = element.getList();
     for (int i = 0; i < elem.Count; i++)
     {
         VisitElement(elem[i]);
         if (elem.Count > 1 && i != (elem.Count - 1))
         {
             Console.Write(",");
         }
     }
     Console.Write("];\n");
 }
Пример #2
0
 public override void VisitVectorElement(VectorVariableDeclaration element)
 {
     //throw new NotImplementedException();
     string variable_name = ((VariableElement)element.getText()).getText();
     string type = element.getType();
     if (mVariableMap.Count == 0)
         mVariableMap.Add(variable_name, element);
     else
     {
         if (mVariableMap.Contains(variable_name))
         {
             Console.Write(" \nSemantic Error.. ");
             sendres(112, "\nSemantic Error...\n");
             Console.Write("\n The vector name you entered is already existing.. try again..");
             sendres(112, "\n The vector name you entered is already existing.. try again..");
             return;
         }
         else
         {
             mVariableMap.Add(variable_name, element);
         }
     }
 }