Пример #1
0
 // ParenthesizedExpression
 private void DefaultWalk(ParenthesizedExpression node)
 {
     if (Walk(node))
     {
         WalkNode(node.Expression);
     }
     PostWalk(node);
 }
Пример #2
0
        // ParenthesizedExpression
        private Expression Rewrite(ParenthesizedExpression node)
        {
            Expression expression = RewriteExpression(node.Expression);

            if ((object)expression != (object)node.Expression)
            {
                return(Ast.Parenthesize(expression));
            }
            else
            {
                return(node);
            }
        }
Пример #3
0
 // ParenthesizedExpression
 private void DefaultWalk(ParenthesizedExpression node)
 {
     if (Walk(node)) {
         WalkNode(node.Expression);
     }
     PostWalk(node);
 }
Пример #4
0
 // ParenthesizedExpression
 private void Dump(ParenthesizedExpression node)
 {
     Out("(");
     WalkNode(node.Expression);
     Out(")");
 }