Пример #1
0
 public override bool Walk(LabeledStatement node)
 {
     if (node != null)
     {
         if (node.Statement != null)
         {
             node.Statement.Walk(this);
         }
     }
     return(false);
 }
Пример #2
0
 public override bool Walk(LabeledStatement node) { AddNode(node); return true; }
 public override bool Walk(LabeledStatement node)
 {
     if (node != null)
     {
         if (node.Statement != null)
         {
             node.Statement.Walk(this);
         }
     }
     return false;
 }
Пример #4
0
        public override bool Walk(LabeledStatement node) {
            if (node.Statement != null) {
                // don't indent block statements that start on the same line
                // as the label such as:
                // label: {
                //      code
                // }
                var block = node.Statement;

                bool indent = ShouldIndentForChild(node, block);
                if (indent) {
                    Indent();
                }
                ReplacePreceedingWhiteSpaceMaybeMultiline(node.Statement.GetStartIndex(_tree.LocationResolver));
                node.Statement.Walk(this);
                if (indent) {
                    Dedent();
                }
            }
            return false;
        }