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;
        }
Пример #2
0
 public override bool Walk(DoWhile node) { AddNode(node); return true; }
Пример #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;
        }