public override string ToString() => "BEGIN " + TokenText(Token.Type) + "\n " + String.Join("\n", Stmt.ToString()) + "END " + TokenText(Token.Type);
public override string ToString() => "BEGIN LOCK " + Key + "\n " + String.Join("\n", Stmt.ToString()) + "END LOCK";
public override string ToString() => "FINALLY\n " + Stmt.ToString().Replace("\n", "\n ");
public override string ToString() => "BEGIN SEQUENCE\n " + Stmt.ToString().Replace("\n", "\n ") + (Recover != null ? "RECOVER USING " + Name + "\n " + String.Join("\n", Recover.ToString()) : "") + (Finally != null ? "FINALLY\n " + String.Join("\n", Finally.ToString()) : "") + "END SEQUENCE";
public override string ToString() => "REPEAT\n " + Stmt.ToString().Replace("\n", "\n ") + "\nUNTIL " + Cond.ToString();
public override string ToString() => "CATCH" + "\n " + Stmt.ToString().Replace("\n", "\n ");
public override string ToString() => Token.Type + "\n " + Stmt?.ToString().Replace("\n", "\n ");
public override string ToString() => Body.ToString();
public override string ToString() => "DO CASE\n" + String.Join("\n", Array.ConvertAll(Cases, (x) => x.ToString())) + (Otherwise != null ? "\nOTHERWISE\n " + Otherwise.ToString().Replace("\n", "\n ") : "") + "\nEND CASE";
public override string ToString() => "CASE " + Cond.ToString() + "\n " + Stmt.ToString().Replace("\n", "\n ");
public override string ToString() => "IF " + Cond.ToString() + "\n " + StmtIf.ToString().Replace("\n", "\n ") + (StmtElse != null ? "\nELSE\n " + StmtElse.ToString().Replace("\n", "\n ") : "") + "\nENDIF";
public override string ToString() => "FOREACH " + (ForDecl is ImpliedVarDecl ? "VAR " : "") + ForDecl.ToString() + " IN " + Expr + "\n " + Stmt.ToString().Replace("\n", "\n ") + "\nEND FOREACH";
public override string ToString() => "FOR " + (AssignExpr?.ToString() ?? ((ForDecl is ImpliedVarDecl ? "VAR " : "LOCAL ") + ForDecl.ToString())) + " " + Dir.Type + " " + Final + (Step != null ? " STEP " + Step : "") + "\n " + Stmt.ToString().Replace("\n", "\n ") + "\nEND FOR";
public override string ToString() => "BEGIN USING " + (Decl != null ? Decl.ToString() : Expr.ToString()) + "\n " + String.Join("\n", Stmt.ToString()) + "END USING";
public override string ToString() => Token.Type + " " + Name + " AS " + Type + (When != null ? "WHEN " + When : "") + "\n " + Stmt?.ToString().Replace("\n", "\n ");
public override string ToString() => "BEGIN FIXED " + Decl + "\n " + String.Join("\n", Stmt.ToString()) + "END FIXED";
public override string ToString() => "TRY\n " + Stmt.ToString().Replace("\n", "\n ") + (Catches != null ? String.Join("\n", Array.ConvertAll(Catches, (x) => x.ToString())) : "") + Finally?.ToString();
public override string ToString() { return("{|" + ParamsAsString() + "|" + Body.ToString() + "}"); }
public override string ToString() => "DO WHILE " + Cond.ToString() + "\n " + Stmt.ToString().Replace("\n", "\n ") + "\nENDDO";