public void AppendPrint(int indent, StringBuilder buf) { Helper.PrintASTIndentLine("expression statement", indent, buf); Expr.AppendPrint(indent + 2, buf); Helper.PrintASTIndentLine("sub-expressions", indent + 1, buf); foreach (var s in Statements) { s.AppendPrint(indent + 2, buf); } }
public void AppendPrint(int indent, StringBuilder buf) { Helper.PrintASTIndentLine(Op.ToString(), indent, buf); Expr.AppendPrint(indent + 1, buf); }