Exemplo n.º 1
0
 public virtual void Visit(ParenthesizedExpression parenthesizedExpression)
 {
     Write("(");
     VisitDynamic(parenthesizedExpression.Content);
     Write(")");
 }
Exemplo n.º 2
0
 private static ParenthesizedExpression Clone(ParenthesizedExpression expression)
 {
     return new ParenthesizedExpression(Clone(expression.Content));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConditionalExpression"/> class.
 /// </summary>
 /// <param name="condition">The condition.</param>
 /// <param name="left">The left.</param>
 /// <param name="right">The right.</param>
 public ConditionalExpression(Expression condition, Expression left, Expression right)
 {
     Condition = new ParenthesizedExpression(condition);
     Left = left;
     Right = right;
 }
Exemplo n.º 4
0
        protected virtual void Visit(ParenthesizedExpression parenthesizedExpression)
        {
            Visit((Node)parenthesizedExpression);

            // Get the type from the last item
            parenthesizedExpression.TypeInference = (TypeInference)parenthesizedExpression.Content.TypeInference.Clone();
        }
Exemplo n.º 5
0
 protected virtual void Visit(ParenthesizedExpression parenthesizedExpression)
 {
     // value stack is unchanged
     Visit((Node)parenthesizedExpression);
 }
Exemplo n.º 6
0
        /// <summary>
        /// Visits the specified parenthesized expression.
        /// </summary>
        /// <param name="parenthesizedExpression">The parenthesized expression.</param>
        public override Node Visit(ParenthesizedExpression parenthesizedExpression)
        {
            base.Visit(parenthesizedExpression);

            // Get the type from the last item
            parenthesizedExpression.TypeInference = (TypeInference)parenthesizedExpression.Content.TypeInference.Clone();
            return parenthesizedExpression;
        }