3 instantiations of BoundConditionalOperator
Microsoft.CodeAnalysis.CSharp (3)
Generated\BoundNodes.xml.Generated.cs (1)
2039var result = new BoundConditionalOperator(this.Syntax, isRef, condition, consequence, alternative, constantValueOpt, naturalTypeOpt, wasTargetTyped, type, this.HasErrors);
Lowering\LocalRewriter\LocalRewriter_ConditionalOperator.cs (1)
62return new BoundConditionalOperator(
Lowering\SyntheticBoundNodeFactory.cs (1)
896return new BoundConditionalOperator(Syntax, isRef, condition, consequence, alternative, constantValueOpt: null, type, wasTargetTyped: false, type) { WasCompilerGenerated = true };
59 references to BoundConditionalOperator
Microsoft.CodeAnalysis.CSharp (59)
Binder\Binder.ValueChecks.cs (10)
911var conditional = (BoundConditionalOperator)expr; 3384var conditional = (BoundConditionalOperator)expr; 3710var conditional = (BoundConditionalOperator)expr; 4099var conditional = (BoundConditionalOperator)expr; 4810var conditional = (BoundConditionalOperator)expr;
Binder\RefSafetyAnalysis.cs (1)
625public override BoundNode? VisitConditionalOperator(BoundConditionalOperator node)
BoundTree\BoundTreeVisitors.cs (1)
50return VisitConditionalOperator(node as BoundConditionalOperator, arg);
CodeGen\CodeGenerator_HasHome.cs (2)
145var conditional = (BoundConditionalOperator)expression;
CodeGen\EmitAddress.cs (2)
149EmitConditionalOperatorAddress((BoundConditionalOperator)expression, addressKind); 213private void EmitConditionalOperatorAddress(BoundConditionalOperator expr, AddressKind addressKind)
CodeGen\EmitExpression.cs (5)
300EmitConditionalOperator((BoundConditionalOperator)expression, used); 2894var left = (BoundConditionalOperator)assignmentTarget; 3115Debug.Assert(((BoundConditionalOperator)expression).IsRef); 3740private void EmitConditionalOperator(BoundConditionalOperator expr, bool used)
CodeGen\Optimizer.cs (2)
1065Debug.Assert(((BoundConditionalOperator)lhs).IsRef, "only ref ternaries are assignable"); 1451public override BoundNode VisitConditionalOperator(BoundConditionalOperator node)
Compilation\CSharpSemanticModel.cs (3)
2147else if (boundExpr is BoundConditionalOperator { WasTargetTyped: true } cond) 3574var conditional = (BoundConditionalOperator)boundNode;
FlowAnalysis\AbstractFlowPass.cs (1)
3239public override BoundNode VisitConditionalOperator(BoundConditionalOperator node)
FlowAnalysis\NullableWalker.cs (3)
4686return node is BoundConditionalOperator { WasTargetTyped: true } or 5886Debug.Assert(node is not BoundConditionalOperator { WasTargetTyped: true }, """ 5939bool wasTargetTyped = node is BoundConditionalOperator { WasTargetTyped: true };
Generated\BoundNodes.xml.Generated.cs (10)
2035public BoundConditionalOperator Update(bool isRef, BoundExpression condition, BoundExpression consequence, BoundExpression alternative, ConstantValue? constantValueOpt, TypeSymbol? naturalTypeOpt, bool wasTargetTyped, TypeSymbol type) 2039var result = new BoundConditionalOperator(this.Syntax, isRef, condition, consequence, alternative, constantValueOpt, naturalTypeOpt, wasTargetTyped, type, this.HasErrors); 8928return VisitConditionalOperator((BoundConditionalOperator)node, arg); 9352public virtual R VisitConditionalOperator(BoundConditionalOperator node, A arg) => this.DefaultVisit(node, arg); 9588public virtual BoundNode? VisitConditionalOperator(BoundConditionalOperator node) => this.DefaultVisit(node); 9962public override BoundNode? VisitConditionalOperator(BoundConditionalOperator node) 11088public override BoundNode? VisitConditionalOperator(BoundConditionalOperator node) 12880public override BoundNode? VisitConditionalOperator(BoundConditionalOperator node) 12886BoundConditionalOperator updatedNode; 15400public override TreeDumperNode VisitConditionalOperator(BoundConditionalOperator node, object? arg) => new TreeDumperNode("conditionalOperator", null, new TreeDumperNode[]
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
202return VisitConditionalOperator((BoundConditionalOperator)node); 655private BoundExpression VisitConditionalOperator(BoundConditionalOperator node)
Lowering\LocalRewriter\LocalRewriter.cs (1)
1084return ((BoundConditionalOperator)expr).IsRef;
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (2)
1613BoundConditionalOperator conditional = (BoundConditionalOperator)seq.Value;
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (1)
707Debug.Assert(((BoundConditionalOperator)originalLHS).IsRef);
Lowering\LocalRewriter\LocalRewriter_ConditionalOperator.cs (1)
18public override BoundNode VisitConditionalOperator(BoundConditionalOperator node)
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (3)
43Debug.Assert(node.Operand is BoundConditionalOperator { WasTargetTyped: true }); 1310BoundConditionalOperator conditional = (BoundConditionalOperator)seq.Value;
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (2)
64var conditional = (BoundConditionalOperator)right;
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (2)
326BoundConditionalOperator conditional = (BoundConditionalOperator)seq.Value;
Lowering\SpillSequenceSpiller.cs (1)
1104public override BoundNode VisitConditionalOperator(BoundConditionalOperator node)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (2)
650var conditional = (BoundConditionalOperator)expr;
Operations\CSharpOperationFactory.cs (2)
133return CreateBoundConditionalOperatorOperation((BoundConditionalOperator)boundNode); 1572private IConditionalOperation CreateBoundConditionalOperatorOperation(BoundConditionalOperator boundConditionalOperator)