예제 #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(")");
 }