public bool VisitNode(ConditionalExpression node)
 {
     throw new NotImplementedException();
 }
Beispiel #2
0
        public bool VisitNode(ConditionalExpression node)
        {
            // condition ? then : else
            ExpressionPrescedence.Push(NOPRESCEDENCE);
            node.Condition.AcceptVisitor(this);
            Append(" ? ");
            node.TrueExpression.AcceptVisitor(this);
            Append(" : ");
            node.FalseExpression.AcceptVisitor(this);
            ExpressionPrescedence.Pop();

            return true;
        }