示例#1
0
        public AstPrinterNode Visit(ForStatement node)
        {
            var printer = new AstPrinterNode(node.ToString());

            printer.AddChild(node.Iterator.Accept(this));
            printer.AddChild(node.Range.Accept(this));
            printer.AddChild(node.Statement.Accept(this));
            return(printer);
        }