public virtual void Visit(StatementBlockNode node) { for (int x = 0; x < node.statementList.statementList.Count; x++) node.statementList.StatementAtIndex(x).Accept(this); }
public override void Visit(StatementBlockNode node) { Console.WriteLine(this.indentation + "{ ---- Start Statement Block ----"); indentation = indentation + " "; for (int x = 0; x < node.statementList.statementList.Count; x++) { node.statementList.StatementAtIndex(x).Accept(this); } indentation = indentation.Substring(0, indentation.Length - 3); Console.WriteLine(this.indentation + "} ---- End Statement Block ----"); }