Esempio n. 1
0
 // LabeledStatement
 private void DefaultWalk(LabeledStatement node)
 {
     if (Walk(node))
     {
         WalkNode(node.Statement);
     }
     PostWalk(node);
 }
Esempio n. 2
0
 // LabeledStatement
 private void Dump(LabeledStatement node)
 {
     Out(".labeled {", Flow.NewLine);
     Indent();
     WalkNode(node.Statement);
     Dedent();
     Out(Flow.NewLine, "}");
 }
Esempio n. 3
0
        // LabeledStatement
        protected internal override bool Walk(LabeledStatement node)
        {
            BitArray exit = new BitArray(_bits.Length, true);

            PushStatement(exit, node);

            WalkNode(node.Statement);

            PopStatement();
            _bits.And(exit);
            return(false);
        }
Esempio n. 4
0
        // LabeledStatement
        private Statement Rewrite(LabeledStatement node)
        {
            Statement statement = RewriteStatement(node.Statement);

            if ((object)statement != (object)node.Statement)
            {
                return(Ast.Labeled(node.Span, statement));
            }
            else
            {
                return(node);
            }
        }
Esempio n. 5
0
        // LabeledStatement
        protected internal override bool Walk(LabeledStatement node)
        {
            BitArray exit = new BitArray(_bits.Length, true);
            PushStatement(exit, node);

            WalkNode(node.Statement);

            PopStatement();
            _bits.And(exit);
            return false;
        }
Esempio n. 6
0
 // LabeledStatement
 private void DefaultWalk(LabeledStatement node)
 {
     if (Walk(node)) {
         WalkNode(node.Statement);
     }
     PostWalk(node);
 }