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)
10940
private
BoundConditionalAccess
BindConditionalAccessExpression(ConditionalAccessExpressionSyntax node, BindingDiagnosticBag diagnostics)
11039
private
BoundConditionalAccess
GenerateBadConditionalAccessNodeError(ConditionalAccessExpressionSyntax node, BoundExpression receiver, BoundExpression access, BindingDiagnosticBag diagnostics)
FlowAnalysis\AbstractFlowPass.cs (7)
2978
var
access = node switch
2980
BoundConditionalAccess
ca => ca,
2981
BoundConversion { Conversion: Conversion conversion, Operand:
BoundConditionalAccess
ca } when CanPropagateStateWhenNotNull(conversion) => ca,
3040
private void VisitConditionalAccess(
BoundConditionalAccess
node, out TLocalState stateWhenNotNull)
3087
while (expr is
BoundConditionalAccess
innerCondAccess)
3089
Debug.Assert(innerCondAccess.Receiver is not (
BoundConditionalAccess
or BoundConversion));
3109
public override BoundNode? VisitConditionalAccess(
BoundConditionalAccess
node)
FlowAnalysis\NullableWalker.cs (8)
5402
var
conditional = (
BoundConditionalAccess
)operand;
5745
if (operand is not
BoundConditionalAccess
access || !CanPropagateStateWhenNotNull(conversion))
5807
private void VisitConditionalAccess(
BoundConditionalAccess
node, out PossiblyConditionalState stateWhenNotNull)
5850
while (expr is
BoundConditionalAccess
innerCondAccess)
5854
Debug.Assert(innerCondAccess.Receiver is not (
BoundConditionalAccess
or BoundConversion));
5870
while (expr is
BoundConditionalAccess
innerCondAccess)
5925
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);
9182
return VisitConditionalAccess((
BoundConditionalAccess
)node, arg);
9497
public virtual R VisitConditionalAccess(
BoundConditionalAccess
node, A arg) => this.DefaultVisit(node, arg);
9733
public virtual BoundNode? VisitConditionalAccess(
BoundConditionalAccess
node) => this.DefaultVisit(node);
10465
public override BoundNode? VisitConditionalAccess(
BoundConditionalAccess
node)
11735
public override BoundNode? VisitConditionalAccess(
BoundConditionalAccess
node)
13859
public override BoundNode? VisitConditionalAccess(
BoundConditionalAccess
node)
13863
BoundConditionalAccess
updatedNode;
16355
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)