示例#1
0
 public virtual void Visit(StatementBlockNode node)
 {
     for (int x = 0; x < node.statementList.statementList.Count; x++)
         node.statementList.StatementAtIndex(x).Accept(this);
 }
示例#2
0
 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 ----");
 }