Пример #1
0
 public override string ToString(string indent, bool last)
 {
     return
         (indent + NodePrefix(last) + (TypeOfCall == CallType.VALUE ? "." : "->") + "\r\n" +
          PostfixNode.ToString(indent + ChildrenPrefix(last), false) +
          Id.ToString(indent + ChildrenPrefix(last), true));
 }
Пример #2
0
 public override string ToString(string indent, bool last)
 {
     return
         (indent + NodePrefix(last) + $"[]" + "\r\n" +
          PostfixNode.ToString(indent + ChildrenPrefix(last), false) +
          Exp.ToString(indent + ChildrenPrefix(last), true));
 }
Пример #3
0
 public override string ToString(string indent, bool last)
 {
     return
         (indent + NodePrefix(last) + $"()" + "\r\n" +
          PostfixNode.ToString(indent + ChildrenPrefix(last), ExpList is NullStat) +
          ExpList.ToString(indent + ChildrenPrefix(last), true));
 }