3 instantiations of BoundConditionalOperator
Microsoft.CodeAnalysis.CSharp (3)
Generated\BoundNodes.xml.Generated.cs (1)
2038var 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 (12)
934var conditional = (BoundConditionalOperator)expr; 3407var conditional = (BoundConditionalOperator)expr; 3733var conditional = (BoundConditionalOperator)expr; 4122var conditional = (BoundConditionalOperator)expr; 4834var conditional = (BoundConditionalOperator)expr; 5819var conditional = (BoundConditionalOperator)expression;
Binder\RefSafetyAnalysis.cs (1)
625public override BoundNode? VisitConditionalOperator(BoundConditionalOperator node)
BoundTree\BoundTreeVisitors.cs (1)
50return VisitConditionalOperator(node as BoundConditionalOperator, arg);
CodeGen\EmitAddress.cs (2)
151EmitConditionalOperatorAddress((BoundConditionalOperator)expression, addressKind); 215private 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)
2034public BoundConditionalOperator Update(bool isRef, BoundExpression condition, BoundExpression consequence, BoundExpression alternative, ConstantValue? constantValueOpt, TypeSymbol? naturalTypeOpt, bool wasTargetTyped, TypeSymbol type) 2038var result = new BoundConditionalOperator(this.Syntax, isRef, condition, consequence, alternative, constantValueOpt, naturalTypeOpt, wasTargetTyped, type, this.HasErrors); 8927return VisitConditionalOperator((BoundConditionalOperator)node, arg); 9351public virtual R VisitConditionalOperator(BoundConditionalOperator node, A arg) => this.DefaultVisit(node, arg); 9587public virtual BoundNode? VisitConditionalOperator(BoundConditionalOperator node) => this.DefaultVisit(node); 9961public override BoundNode? VisitConditionalOperator(BoundConditionalOperator node) 11087public override BoundNode? VisitConditionalOperator(BoundConditionalOperator node) 12879public override BoundNode? VisitConditionalOperator(BoundConditionalOperator node) 12885BoundConditionalOperator updatedNode; 15399public 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)
633var conditional = (BoundConditionalOperator)expr;
Operations\CSharpOperationFactory.cs (2)
133return CreateBoundConditionalOperatorOperation((BoundConditionalOperator)boundNode); 1572private IConditionalOperation CreateBoundConditionalOperatorOperation(BoundConditionalOperator boundConditionalOperator)