1 write to Consequence
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
2015
this.
Consequence
= consequence;
35 references to Consequence
Microsoft.CodeAnalysis.CSharp (35)
Binder\Binder.ValueChecks.cs (9)
938
(CheckValueKind(conditional.
Consequence
.Syntax, conditional.
Consequence
, valueKind, checkingReceiver: false, diagnostics: diagnostics) &
3412
return Math.Max(GetRefEscape(conditional.
Consequence
, scopeOfTheContainingExpression),
3737
return CheckRefEscape(conditional.
Consequence
.Syntax, conditional.
Consequence
, escapeFrom, escapeTo, checkingReceiver: false, diagnostics: diagnostics) &&
4124
var consEscape = GetValEscape(conditional.
Consequence
, scopeOfTheContainingExpression);
4836
var consValid = CheckValEscape(conditional.
Consequence
.Syntax, conditional.
Consequence
, escapeFrom, escapeTo, checkingReceiver: false, diagnostics: diagnostics);
5830
return HasHome(conditional.
Consequence
, addressKind, containingSymbol, peVerifyCompatEnabled, stackLocalsOpt)
Binder\RefSafetyAnalysis.cs (1)
630
ValidateRefConditionalOperator(node.Syntax, node.
Consequence
, node.Alternative, _diagnostics);
CodeGen\EmitAddress.cs (1)
231
AddExpressionTemp(EmitAddress(expr.
Consequence
, addressKind));
CodeGen\EmitExpression.cs (3)
3747
expr.
Consequence
.ConstantValueOpt?.IsIntegralValueZeroOrOne(out bool isConsequenceOne) == true &&
3807
EmitExpression(expr.
Consequence
, used);
3811
var mergeTypeOfConsequence = StackMergeType(expr.
Consequence
);
CodeGen\Optimizer.cs (1)
1461
BoundExpression consequence = this.VisitExpression(node.
Consequence
, 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))
9964
this.Visit(node.
Consequence
);
11090
BoundExpression consequence = (BoundExpression)this.Visit(node.
Consequence
);
12883
BoundExpression consequence = (BoundExpression)this.Visit(node.
Consequence
);
15403
new TreeDumperNode("consequence", null, new TreeDumperNode[] { Visit(node.
Consequence
, null) }),
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
658
var consequence = VisitExactType(node.
Consequence
);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (3)
1615
Debug.Assert(TypeSymbol.Equals(conditional.Type, conditional.
Consequence
.Type, TypeCompareKind.ConsiderEverything2));
1618
if (NullableAlwaysHasValue(conditional.
Consequence
) != null && NullableNeverHasValue(conditional.Alternative))
1627
MakeBinaryOperator(syntax, kind, conditional.
Consequence
, right, type, method, constrainedToTypeOpt),
Lowering\LocalRewriter\LocalRewriter_ConditionalOperator.cs (1)
24
var rewrittenConsequence = VisitExpression(node.
Consequence
);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (3)
1312
Debug.Assert(TypeSymbol.Equals(conditional.Type, conditional.
Consequence
.Type, TypeCompareKind.ConsiderEverything2));
1315
if (NullableAlwaysHasValue(conditional.
Consequence
) != null && NullableNeverHasValue(conditional.Alternative))
1324
MakeConversionNode(null, syntax, conditional.
Consequence
, conversion, @checked, explicitCastInCode: false, constantValueOpt: ConstantValue.NotAvailable, rewrittenType: type),
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (1)
69
RewriteDeconstruction(lhsTargets, conversion, leftType, conditional.
Consequence
, isUsed: true)!,
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (3)
328
Debug.Assert(TypeSymbol.Equals(conditional.Type, conditional.
Consequence
.Type, TypeCompareKind.ConsiderEverything2));
331
if (NullableAlwaysHasValue(conditional.
Consequence
) != null && NullableNeverHasValue(conditional.Alternative))
340
MakeUnaryOperator(operatorKind, syntax, method, constrainedToTypeOpt, conditional.
Consequence
, type),
Lowering\SpillSequenceSpiller.cs (1)
1110
var consequence = VisitExpression(ref consequenceBuilder, node.
Consequence
);
Operations\CSharpOperationFactory.cs (1)
1575
IOperation whenTrue = Create(boundConditionalOperator.
Consequence
);