2 instantiations of BoundPropertyAccess
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
8687return new BoundPropertyAccess(node, receiver, initialBindingReceiverIsSubjectToCloning: ReceiverIsSubjectToCloning(receiver, propertySymbol), propertySymbol, autoPropertyAccessorKind: AccessorKind.Unknown, lookupResult, propertySymbol.Type, hasErrors: (hasErrors || hasError));
Generated\BoundNodes.xml.Generated.cs (1)
7366var result = new BoundPropertyAccess(this.Syntax, receiverOpt, initialBindingReceiverIsSubjectToCloning, propertySymbol, autoPropertyAccessorKind, resultKind, type, this.HasErrors);
85 references to BoundPropertyAccess
Microsoft.CodeAnalysis.CSharp (85)
Binder\Binder.ValueChecks.cs (10)
513var propertyAccess = (BoundPropertyAccess)expr; 3556var propertyAccess = (BoundPropertyAccess)expr; 3905var propertyAccess = (BoundPropertyAccess)expr; 4242var propertyAccess = (BoundPropertyAccess)expr; 4979var propertyAccess = (BoundPropertyAccess)expr;
Binder\Binder_Attributes.cs (2)
820var pa = (BoundPropertyAccess)assignment.Left;
Binder\Binder_Await.cs (1)
386isCompletedProperty = ((BoundPropertyAccess)qualified).PropertySymbol;
Binder\Binder_Expressions.cs (3)
5888hasErrors |= isRhsNestedInitializer && !CheckNestedObjectInitializerPropertySymbol(((BoundPropertyAccess)boundMember).PropertySymbol, leftSyntax, diagnostics, hasErrors, ref resultKind); 6123BoundPropertyAccess propertyAccess => propertyAccess.PropertySymbol, 9923Debug.Assert(lengthOrCountAccess is BoundPropertyAccess);
Binder\Binder_Invocation.cs (1)
118symbol = ((BoundPropertyAccess)boundExpression).PropertySymbol;
Binder\Binder_Statements.cs (3)
1639var propertyAccess = (BoundPropertyAccess)expr; 1757internal static bool AccessingAutoPropertyFromConstructor(BoundPropertyAccess propertyAccess, Symbol fromMember)
Binder\RefSafetyAnalysis.cs (1)
827public override BoundNode? VisitPropertyAccess(BoundPropertyAccess node)
BoundTree\BoundExpressionExtensions.cs (1)
37return ((BoundPropertyAccess)node).PropertySymbol.RefKind;
BoundTree\BoundImplicitIndexerAccess.cs (1)
20Debug.Assert(LengthOrCountAccess is BoundPropertyAccess or BoundArrayLength or BoundLocal or BoundBadExpression);
BoundTree\BoundListPattern.cs (1)
13Debug.Assert(LengthAccess is null or BoundPropertyAccess or BoundBadExpression);
BoundTree\BoundTreeVisitors.cs (1)
124return VisitPropertyAccess(node as BoundPropertyAccess, arg);
Compiler\MethodCompiler.cs (3)
2240public static BoundPropertyAccess? FindUncheckedAccess(BoundNode node) 2247private BoundPropertyAccess? _found; 2264public override BoundNode? VisitPropertyAccess(BoundPropertyAccess node)
FlowAnalysis\AbstractFlowPass.cs (14)
570var access = (BoundPropertyAccess)node; 2129return !Binder.AccessingAutoPropertyFromConstructor((BoundPropertyAccess)expr, _symbol); 2137var left = (BoundPropertyAccess)node.Left; 2192var left = (BoundPropertyAccess)node.Left; 2211var left = (BoundPropertyAccess)node.Left; 2261public override BoundNode VisitPropertyAccess(BoundPropertyAccess node) 2803var left = (BoundPropertyAccess)node.Operand; 3707(BoundPropertyAccess)node.LeftOperand is var left && 3763BoundPropertyAccess propertyAccessOpt)
FlowAnalysis\DefiniteAssignment.cs (6)
1102var propAccess = (BoundPropertyAccess)expr; 1435var propertyAccess = (BoundPropertyAccess)node; 2721public override BoundNode VisitPropertyAccess(BoundPropertyAccess node) 2782BoundPropertyAccess propertyAccessOpt)
FlowAnalysis\NullableWalker.cs (5)
1977var propAccess = (BoundPropertyAccess)expr; 10011BoundPropertyAccess propAccess => propAccess.PropertySymbol, 10035BoundPropertyAccess property => property.PropertySymbol.GetFlowAnalysisAnnotations(), 10664public override BoundNode? VisitPropertyAccess(BoundPropertyAccess node)
FlowAnalysis\ReadWriteWalker.cs (1)
304underlying = ((BoundPropertyAccess)underlying).ReceiverOpt;
Generated\BoundNodes.xml.Generated.cs (10)
7362public BoundPropertyAccess Update(BoundExpression? receiverOpt, ThreeState initialBindingReceiverIsSubjectToCloning, PropertySymbol propertySymbol, AccessorKind autoPropertyAccessorKind, LookupResultKind resultKind, TypeSymbol type) 7366var result = new BoundPropertyAccess(this.Syntax, receiverOpt, initialBindingReceiverIsSubjectToCloning, propertySymbol, autoPropertyAccessorKind, resultKind, type, this.HasErrors); 9218return VisitPropertyAccess((BoundPropertyAccess)node, arg); 9497public virtual R VisitPropertyAccess(BoundPropertyAccess node, A arg) => this.DefaultVisit(node, arg); 9733public virtual BoundNode? VisitPropertyAccess(BoundPropertyAccess node) => this.DefaultVisit(node); 10602public override BoundNode? VisitPropertyAccess(BoundPropertyAccess node) 11940public override BoundNode? VisitPropertyAccess(BoundPropertyAccess node) 14448public override BoundNode? VisitPropertyAccess(BoundPropertyAccess node) 14452BoundPropertyAccess updatedNode; 16723public override TreeDumperNode VisitPropertyAccess(BoundPropertyAccess node, object? arg) => new TreeDumperNode("propertyAccess", null, new TreeDumperNode[]
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
233return VisitPropertyAccess((BoundPropertyAccess)node); 1101private BoundExpression VisitPropertyAccess(BoundPropertyAccess node)
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
546public override BoundNode VisitPropertyAccess(BoundPropertyAccess node)
Lowering\LocalRewriter\LocalRewriter.cs (1)
1090return ((BoundPropertyAccess)expr).PropertySymbol.RefKind != RefKind.None;
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
178public override BoundNode VisitPropertyAccess(BoundPropertyAccess node)
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (3)
30loweredLeft = VisitPropertyAccess((BoundPropertyAccess)left, isLeftOfAssignment: true); 182BoundPropertyAccess propertyAccess = (BoundPropertyAccess)rewrittenLeft;
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (2)
596var propertyAccess = (BoundPropertyAccess)originalLHS;
Lowering\LocalRewriter\LocalRewriter_PropertyAccess.cs (5)
15public override BoundNode VisitPropertyAccess(BoundPropertyAccess node) 20private BoundExpression VisitPropertyAccess(BoundPropertyAccess node, bool isLeftOfAssignment) 33BoundPropertyAccess? oldNodeOpt = null) 68private BoundExpression MakePropertyGetAccess(SyntaxNode syntax, BoundExpression? rewrittenReceiver, PropertySymbol property, BoundPropertyAccess? oldNodeOpt) 80BoundPropertyAccess? oldNodeOpt = null)
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (2)
865var propertyAccess = (BoundPropertyAccess)transformedExpression;
Lowering\MethodToClassRewriter.cs (1)
222public override BoundNode VisitPropertyAccess(BoundPropertyAccess node)
Operations\CSharpOperationFactory.cs (3)
48return CreateBoundPropertyAccessOperation((BoundPropertyAccess)boundNode); 599case BoundPropertyAccess boundPropertyAccess: 612private IPropertyReferenceOperation CreateBoundPropertyAccessOperation(BoundPropertyAccess boundPropertyAccess)