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