private EvaluationResult AnalyzeConditionalChoice([NotNull] IConditionalChoiceExpression conditional)
            {
                EvaluationResult trueResult  = AnalyzeExpression(conditional.IfTrueValue);
                EvaluationResult falseResult = AnalyzeExpression(conditional.IfFalseValue);

                return(EvaluationResult.Unify(trueResult, falseResult));
            }
コード例 #2
0
 /// <inheritdoc />
 public override Expression VisitConditionalChoiceExpression(IConditionalChoiceExpression operation, LocalBinder argument)
 {
     return(Expression.Condition(
                operation.Condition.Accept(this, argument),
                operation.IfTrueValue.Accept(this, argument),
                operation.IfFalseValue.Accept(this, argument)
                ));
 }
コード例 #3
0
        public override void VisitConditionalChoiceExpression(IConditionalChoiceExpression operation)
        {
            LogString(nameof(IConditionalChoiceExpression));
            LogCommonPropertiesAndNewLine(operation);

            Visit(operation.Condition, "Condition");
            Visit(operation.IfTrueValue, "IfTrue");
            Visit(operation.IfFalseValue, "IfFalse");
        }
        private static EvaluationResult AnalyzeConditionalChoice([ItemNotNull] ImmutableArray <IOperation> body,
                                                                 [NotNull] IDictionary <ILocalSymbol, EvaluationResult> variableEvaluationCache, CancellationToken cancellationToken,
                                                                 [NotNull] IConditionalChoiceExpression conditional)
        {
            EvaluationResult trueResult = AnalyzeExpression(conditional.IfTrueValue, body, variableEvaluationCache,
                                                            cancellationToken);
            EvaluationResult falseResult = AnalyzeExpression(conditional.IfFalseValue, body, variableEvaluationCache,
                                                             cancellationToken);

            return(EvaluationResult.Unify(trueResult, falseResult));
        }
コード例 #5
0
 public virtual void VisitConditionalChoiceExpression(IConditionalChoiceExpression operation)
 {
     DefaultVisit(operation);
 }
コード例 #6
0
 public virtual void VisitConditionalChoiceExpression(IConditionalChoiceExpression operation)
 {
     DefaultVisit(operation);
 }
コード例 #7
0
 public override void VisitConditionalChoiceExpression(IConditionalChoiceExpression operation)
 {
     Visit(operation.Condition);
     Visit(operation.IfTrueValue);
     Visit(operation.IfFalseValue);
 }
コード例 #8
0
 public static IConditionalChoiceExpression Update(this IConditionalChoiceExpression self, Boolean @isByRef, IOperation @condition, IOperation @consequence, IOperation @alternative, Object @constantValueOpt, ITypeSymbol @type) => self;
 public override void VisitConditionalChoiceExpression([NotNull] IConditionalChoiceExpression operation)
 {
     Result = owner.AnalyzeConditionalChoice(operation);
 }
コード例 #10
0
 /// <inheritdoc />
 public override IOperation VisitConditionalChoiceExpression(IConditionalChoiceExpression operation, object argument)
 {
     return(base.VisitConditionalChoiceExpression(operation, argument));
 }
コード例 #11
0
ファイル: TestOperationWalker.cs プロジェクト: CAPCHIK/roslyn
 public override void VisitConditionalChoiceExpression(IConditionalChoiceExpression operation)
 {
     base.VisitConditionalChoiceExpression(operation);
 }
コード例 #12
0
 public override void VisitConditionalChoiceExpression(IConditionalChoiceExpression operation)
 {
     base.VisitConditionalChoiceExpression(operation);
 }