Пример #1
0
 public override string ToString()
 {
     if (Type != null)
     {
         return("(" + Type.ToString() + ")" + Expr.ToString());
     }
     else
     {
         return("( <Unknown type> )" + Expr.ToString());
     }
 }
Пример #2
0
 public override string ToString()
 {
     return("(" + Expr.ToString() + " AS TYPE " + Type.ToString() + ")");
 }
Пример #3
0
 public override string ToString()
 {
     return("(SIZEOF " + Type.ToString() + ")");
 }
Пример #4
0
 public override string ToString()
 {
     return("(DEFAULT " + Type.ToString() + ")");
 }
Пример #5
0
 public override string ToString() => (IsConst?"CONST ":"") + (IsDim?"DIM ":"") + Name +
 (ArraySub?.Length > 0 ?"[" + String.Join(", ", Array.ConvertAll(ArraySub, (x) => x.ToString())) + "]":"") +
 (Initializer != null?" := " + Initializer.ToString():"") +
 (Type != null?(IsIsType?" IS ":" AS ") + Type.ToString():"");