コード例 #1
0
        public override object Visit(BlockStatement blockStatement, object data)
        {
            ProcessSpecials(blockStatement.Specials);

            blockStatement.AcceptChildren(this, data);
            return null;
        }
コード例 #2
0
 public override object Visit(BlockStatement blockStatement, object data)
 {
     DebugOutput(blockStatement);
     blockStatement.AcceptChildren(this, data);
     return null;
 }
コード例 #3
0
 public virtual object Visit(BlockStatement blockStatement, object data)
 {
     if (blockStatement == null) {
         return null;
     }
     blockStack.Push(blockStatement);
     object ret = blockStatement.AcceptChildren(this, data);
     blockStack.Pop();
     return ret;
 }
コード例 #4
0
 public override object Visit(BlockStatement blockStatement, object data)
 {
     Console.WriteLine(blockStatement.ToString());
     return blockStatement.AcceptChildren(this, data);
 }
コード例 #5
0
 public override object Visit(BlockStatement blockStatement, object data)
 {
     outputFormatter.Space();
     outputFormatter.PrintToken(Tokens.OpenCurlyBrace);
     outputFormatter.NewLine();
     ++outputFormatter.IndentationLevel;
     blockStatement.AcceptChildren(this, true);
     --outputFormatter.IndentationLevel;
     outputFormatter.Indent();
     outputFormatter.PrintToken(Tokens.CloseCurlyBrace);
     outputFormatter.NewLine();
     return null;
 }