public override bool Walk(DoWhile node)
        {
            if (node != null)
            {
                if (node.Body != null)
                {
                    node.Body.Walk(this);
                }

                if (node.Condition != null)
                {
                    node.Condition.Walk(this);
                }
            }
            return false;
        }
Esempio n. 2
0
 public override bool Walk(DoWhile node) { AddNode(node); return true; }
Esempio n. 3
0
        public override bool Walk(DoWhile node) {
            WalkFlowControlBlockWithOptionalParens(node.Body, node.GetStartIndex(_tree.LocationResolver) + "do".Length, false);

            ReplaceFollowingWhiteSpace(node.Body.GetEndIndex(_tree.LocationResolver), " ");

            EnsureSpacesAroundParenthesisedExpression(node.Condition);

            return false;
        }