Esempio n. 1
0
        public override Ust VisitConditionalExpression(ConditionalExpressionSyntax node)
        {
            var condition       = (Expression)base.Visit(node.Condition);
            var trueExpression  = (Expression)base.Visit(node.WhenTrue);
            var falseExpression = (Expression)base.Visit(node.WhenFalse);

            var result = new ConditionalExpression(
                condition,
                trueExpression,
                falseExpression,
                node.GetTextSpan()
                );

            return(result);
        }