private EvaluationResult AnalyzeConditionalChoice([NotNull] IConditionalChoiceExpression conditional) { EvaluationResult trueResult = AnalyzeExpression(conditional.IfTrueValue); EvaluationResult falseResult = AnalyzeExpression(conditional.IfFalseValue); return(EvaluationResult.Unify(trueResult, falseResult)); }
/// <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) )); }
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)); }
public virtual void VisitConditionalChoiceExpression(IConditionalChoiceExpression operation) { DefaultVisit(operation); }
public override void VisitConditionalChoiceExpression(IConditionalChoiceExpression operation) { Visit(operation.Condition); Visit(operation.IfTrueValue); Visit(operation.IfFalseValue); }
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); }
/// <inheritdoc /> public override IOperation VisitConditionalChoiceExpression(IConditionalChoiceExpression operation, object argument) { return(base.VisitConditionalChoiceExpression(operation, argument)); }
public override void VisitConditionalChoiceExpression(IConditionalChoiceExpression operation) { base.VisitConditionalChoiceExpression(operation); }