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