1 instantiation of BoundConditionalAccess
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
5953
var result = new
BoundConditionalAccess
(this.Syntax, receiver, accessExpression, type, this.HasErrors);
33 references to BoundConditionalAccess
Microsoft.CodeAnalysis.CSharp (33)
Binder\Binder_Expressions.cs (2)
10942
private
BoundConditionalAccess
BindConditionalAccessExpression(ConditionalAccessExpressionSyntax node, BindingDiagnosticBag diagnostics)
11041
private
BoundConditionalAccess
GenerateBadConditionalAccessNodeError(ConditionalAccessExpressionSyntax node, BoundExpression receiver, BoundExpression access, BindingDiagnosticBag diagnostics)
FlowAnalysis\AbstractFlowPass.cs (7)
2974
var
access = node switch
2976
BoundConditionalAccess
ca => ca,
2977
BoundConversion { Conversion: Conversion conversion, Operand:
BoundConditionalAccess
ca } when CanPropagateStateWhenNotNull(conversion) => ca,
3036
private void VisitConditionalAccess(
BoundConditionalAccess
node, out TLocalState stateWhenNotNull)
3083
while (expr is
BoundConditionalAccess
innerCondAccess)
3085
Debug.Assert(innerCondAccess.Receiver is not (
BoundConditionalAccess
or BoundConversion));
3105
public override BoundNode? VisitConditionalAccess(
BoundConditionalAccess
node)
FlowAnalysis\NullableWalker.cs (8)
5341
var
conditional = (
BoundConditionalAccess
)operand;
5684
if (operand is not
BoundConditionalAccess
access || !CanPropagateStateWhenNotNull(conversion))
5746
private void VisitConditionalAccess(
BoundConditionalAccess
node, out PossiblyConditionalState stateWhenNotNull)
5789
while (expr is
BoundConditionalAccess
innerCondAccess)
5793
Debug.Assert(innerCondAccess.Receiver is not (
BoundConditionalAccess
or BoundConversion));
5809
while (expr is
BoundConditionalAccess
innerCondAccess)
5864
public override BoundNode? VisitConditionalAccess(
BoundConditionalAccess
node)
Generated\BoundNodes.xml.Generated.cs (10)
5949
public
BoundConditionalAccess
Update(BoundExpression receiver, BoundExpression accessExpression, TypeSymbol type)
5953
var
result = new BoundConditionalAccess(this.Syntax, receiver, accessExpression, type, this.HasErrors);
9146
return VisitConditionalAccess((
BoundConditionalAccess
)node, arg);
9461
public virtual R VisitConditionalAccess(
BoundConditionalAccess
node, A arg) => this.DefaultVisit(node, arg);
9697
public virtual BoundNode? VisitConditionalAccess(
BoundConditionalAccess
node) => this.DefaultVisit(node);
10429
public override BoundNode? VisitConditionalAccess(
BoundConditionalAccess
node)
11699
public override BoundNode? VisitConditionalAccess(
BoundConditionalAccess
node)
13823
public override BoundNode? VisitConditionalAccess(
BoundConditionalAccess
node)
13827
BoundConditionalAccess
updatedNode;
16319
public override TreeDumperNode VisitConditionalAccess(
BoundConditionalAccess
node, object? arg) => new TreeDumperNode("conditionalAccess", null, new TreeDumperNode[]
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
425
public override BoundNode VisitConditionalAccess(
BoundConditionalAccess
node)
Lowering\LocalRewriter\LocalRewriter_ConditionalAccess.cs (2)
13
public override BoundNode VisitConditionalAccess(
BoundConditionalAccess
node)
38
internal BoundExpression? RewriteConditionalAccess(
BoundConditionalAccess
node, bool used)
Lowering\LocalRewriter\LocalRewriter_ExpressionStatement.cs (1)
76
return RewriteConditionalAccess((
BoundConditionalAccess
)expression, used: false);
Operations\CSharpOperationFactory.cs (2)
153
return CreateBoundConditionalAccessOperation((
BoundConditionalAccess
)boundNode);
1705
private IConditionalAccessOperation CreateBoundConditionalAccessOperation(
BoundConditionalAccess
boundConditionalAccess)