1 write to Alternative
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
2016this.Alternative = alternative;
35 references to Alternative
Microsoft.CodeAnalysis.CSharp (35)
Binder\Binder.ValueChecks.cs (9)
939CheckValueKind(conditional.Alternative.Syntax, conditional.Alternative, valueKind, checkingReceiver: false, diagnostics: diagnostics))) 3413GetRefEscape(conditional.Alternative, scopeOfTheContainingExpression)); 3738CheckRefEscape(conditional.Alternative.Syntax, conditional.Alternative, escapeFrom, escapeTo, checkingReceiver: false, diagnostics: diagnostics); 4135GetValEscape(conditional.Alternative, scopeOfTheContainingExpression)); 4845return CheckValEscape(conditional.Alternative.Syntax, conditional.Alternative, escapeFrom, escapeTo, checkingReceiver: false, diagnostics: diagnostics); 5831&& HasHome(conditional.Alternative, addressKind, containingSymbol, peVerifyCompatEnabled, stackLocalsOpt);
Binder\RefSafetyAnalysis.cs (1)
630ValidateRefConditionalOperator(node.Syntax, node.Consequence, node.Alternative, _diagnostics);
CodeGen\EmitAddress.cs (1)
223AddExpressionTemp(EmitAddress(expr.Alternative, addressKind));
CodeGen\EmitExpression.cs (3)
3748expr.Alternative.ConstantValueOpt?.IsIntegralValueZeroOrOne(out bool isAlternativeOne) == true && 3764EmitExpression(expr.Alternative, used); 3785var mergeTypeOfAlternative = StackMergeType(expr.Alternative);
CodeGen\Optimizer.cs (1)
1466BoundExpression alternative = this.VisitExpression(node.Alternative, context);
FlowAnalysis\AbstractFlowPass.cs (1)
3241return VisitConditionalOperatorCore(node, node.IsRef, node.Condition, node.Consequence, node.Alternative);
Generated\BoundNodes.xml.Generated.cs (5)
2036if (isRef != this.IsRef || condition != this.Condition || consequence != this.Consequence || alternative != this.Alternative || constantValueOpt != this.ConstantValueOpt || !TypeSymbol.Equals(naturalTypeOpt, this.NaturalTypeOpt, TypeCompareKind.ConsiderEverything) || wasTargetTyped != this.WasTargetTyped || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 9965this.Visit(node.Alternative); 11091BoundExpression alternative = (BoundExpression)this.Visit(node.Alternative); 12884BoundExpression alternative = (BoundExpression)this.Visit(node.Alternative); 15404new TreeDumperNode("alternative", null, new TreeDumperNode[] { Visit(node.Alternative, null) }),
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
659var alternative = VisitExactType(node.Alternative);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (3)
1616Debug.Assert(TypeSymbol.Equals(conditional.Type, conditional.Alternative.Type, TypeCompareKind.ConsiderEverything2)); 1618if (NullableAlwaysHasValue(conditional.Consequence) != null && NullableNeverHasValue(conditional.Alternative)) 1628MakeBinaryOperator(syntax, kind, conditional.Alternative, right, type, method, constrainedToTypeOpt),
Lowering\LocalRewriter\LocalRewriter_ConditionalOperator.cs (1)
25var rewrittenAlternative = VisitExpression(node.Alternative);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (3)
1313Debug.Assert(TypeSymbol.Equals(conditional.Type, conditional.Alternative.Type, TypeCompareKind.ConsiderEverything2)); 1315if (NullableAlwaysHasValue(conditional.Consequence) != null && NullableNeverHasValue(conditional.Alternative)) 1325MakeConversionNode(null, syntax, conditional.Alternative, conversion, @checked, explicitCastInCode: false, constantValueOpt: ConstantValue.NotAvailable, rewrittenType: type),
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (1)
70RewriteDeconstruction(lhsTargets, conversion, leftType, conditional.Alternative, isUsed: true)!,
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (3)
329Debug.Assert(TypeSymbol.Equals(conditional.Type, conditional.Alternative.Type, TypeCompareKind.ConsiderEverything2)); 331if (NullableAlwaysHasValue(conditional.Consequence) != null && NullableNeverHasValue(conditional.Alternative)) 341MakeUnaryOperator(operatorKind, syntax, method, constrainedToTypeOpt, conditional.Alternative, type),
Lowering\SpillSequenceSpiller.cs (1)
1113var alternative = VisitExpression(ref alternativeBuilder, node.Alternative);
Operations\CSharpOperationFactory.cs (1)
1576IOperation whenFalse = Create(boundConditionalOperator.Alternative);