1 instantiation of BoundIndexerAccess
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
7453var result = new BoundIndexerAccess(this.Syntax, receiverOpt, initialBindingReceiverIsSubjectToCloning, indexer, arguments, argumentNamesOpt, argumentRefKindsOpt, expanded, accessorKind, argsToParamsOpt, defaultArguments, originalIndexersOpt, type, this.HasErrors);
89 references to BoundIndexerAccess
Microsoft.CodeAnalysis.CSharp (89)
Binder\Binder.ValueChecks.cs (19)
85internal static MethodInfo Create(BoundIndexerAccess expr) => 361private static AccessorKind GetIndexerAccessorKind(BoundIndexerAccess indexerAccess, BindValueKind valueKind) 382private BoundIndexerAccess BindIndexerDefaultArgumentsAndParamsCollection(BoundIndexerAccess indexerAccess, BindValueKind valueKind, BindingDiagnosticBag diagnostics) 488if (expr is BoundIndexerAccess indexerAccess) 531expr = BindIndexerDefaultArgumentsAndParamsCollection((BoundIndexerAccess)expr, valueKind, diagnostics); 537if (implicitIndexer.IndexerOrSliceAccess is BoundIndexerAccess indexerAccess) 3464var indexerAccess = (BoundIndexerAccess)expr; 3486case BoundIndexerAccess indexerAccess: 3763var indexerAccess = (BoundIndexerAccess)expr; 3794case BoundIndexerAccess indexerAccess: 4165var indexerAccess = (BoundIndexerAccess)expr; 4187case BoundIndexerAccess indexerAccess: 4890var indexerAccess = (BoundIndexerAccess)expr; 4916case BoundIndexerAccess indexerAccess:
Binder\Binder_Expressions.cs (5)
5896var indexer = BindIndexerDefaultArgumentsAndParamsCollection((BoundIndexerAccess)boundMember, valueKind, diagnostics); 9662return BoundIndexerAccess.ErrorAccess( 9829propertyAccess = BoundIndexerAccess.ErrorAccess( 9925Debug.Assert(indexerOrSliceAccess is BoundIndexerAccess or BoundCall);
Binder\Binder_Patterns.cs (2)
240Debug.Assert(indexerAccess is BoundIndexerAccess or BoundImplicitIndexerAccess or BoundArrayAccess or BoundBadExpression or BoundDynamicIndexerAccess); 389Debug.Assert(indexerAccess is BoundIndexerAccess or BoundImplicitIndexerAccess or BoundArrayAccess or BoundBadExpression or BoundDynamicIndexerAccess);
Binder\Binder_Statements.cs (5)
1646var indexerAccess = (BoundIndexerAccess)expr; 1657case BoundIndexerAccess indexerAccess: 1708BoundIndexerAccess indexerAccess => indexerAccess.Indexer, 1712BoundImplicitIndexerAccess { IndexerOrSliceAccess: BoundIndexerAccess indexerAccess } => indexerAccess.Indexer,
Binder\RefSafetyAnalysis.cs (1)
858public override BoundNode? VisitIndexerAccess(BoundIndexerAccess node)
BoundTree\BoundDagEvaluation.cs (2)
131Debug.Assert(IndexerAccess is BoundIndexerAccess or BoundImplicitIndexerAccess or BoundArrayAccess); 147Debug.Assert(IndexerAccess is BoundIndexerAccess or BoundImplicitIndexerAccess or BoundArrayAccess);
BoundTree\BoundExpression.cs (1)
353public BoundIndexerAccess Update(AccessorKind accessorKind)
BoundTree\BoundExpressionExtensions.cs (2)
40return ((BoundIndexerAccess)node).Indexer.RefKind; 221var originalIndexers = ((BoundIndexerAccess)node).OriginalIndexersOpt;
BoundTree\BoundImplicitIndexerAccess.cs (1)
21Debug.Assert(IndexerOrSliceAccess is BoundIndexerAccess or BoundCall or BoundArrayAccess);
BoundTree\BoundListPattern.cs (1)
15Debug.Assert(IndexerAccess is null or BoundIndexerAccess or BoundImplicitIndexerAccess or BoundArrayAccess or BoundBadExpression or BoundDynamicIndexerAccess);
BoundTree\BoundSlicePattern.cs (1)
13Debug.Assert(IndexerAccess is null or BoundIndexerAccess or BoundImplicitIndexerAccess or BoundArrayAccess or BoundBadExpression or BoundDynamicIndexerAccess);
BoundTree\Constructors.cs (2)
265public static BoundIndexerAccess ErrorAccess( 307public BoundIndexerAccess Update(BoundExpression? receiverOpt,
Compilation\CSharpSemanticModel.cs (4)
3481BoundIndexerAccess indexerAccess = (BoundIndexerAccess)boundNode; 4413var indexer = (BoundIndexerAccess)boundNodeForSyntacticParent;
FlowAnalysis\AbstractFlowPass.cs (1)
1480public override BoundNode VisitIndexerAccess(BoundIndexerAccess node)
FlowAnalysis\NullableWalker.cs (3)
10073BoundIndexerAccess indexerAccess => indexerAccess.Indexer, 10097BoundIndexerAccess indexer => indexer.Indexer.GetFlowAnalysisAnnotations(), 10746public override BoundNode? VisitIndexerAccess(BoundIndexerAccess node)
FlowAnalysis\NullableWalker_Patterns.cs (1)
850BoundIndexerAccess indexerAccess => AsMemberOfType(inputType, indexerAccess.Indexer).GetTypeOrReturnType(),
Generated\BoundNodes.xml.Generated.cs (10)
7449public BoundIndexerAccess Update(BoundExpression? receiverOpt, ThreeState initialBindingReceiverIsSubjectToCloning, PropertySymbol indexer, ImmutableArray<BoundExpression> arguments, ImmutableArray<string?> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, bool expanded, AccessorKind accessorKind, ImmutableArray<int> argsToParamsOpt, BitVector defaultArguments, ImmutableArray<PropertySymbol> originalIndexersOpt, TypeSymbol type) 7453var result = new BoundIndexerAccess(this.Syntax, receiverOpt, initialBindingReceiverIsSubjectToCloning, indexer, arguments, argumentNamesOpt, argumentRefKindsOpt, expanded, accessorKind, argsToParamsOpt, defaultArguments, originalIndexersOpt, type, this.HasErrors); 9258return VisitIndexerAccess((BoundIndexerAccess)node, arg); 9535public virtual R VisitIndexerAccess(BoundIndexerAccess node, A arg) => this.DefaultVisit(node, arg); 9771public virtual BoundNode? VisitIndexerAccess(BoundIndexerAccess node) => this.DefaultVisit(node); 10648public override BoundNode? VisitIndexerAccess(BoundIndexerAccess node) 11988public override BoundNode? VisitIndexerAccess(BoundIndexerAccess node) 14520public override BoundNode? VisitIndexerAccess(BoundIndexerAccess node) 14526BoundIndexerAccess updatedNode; 16782public override TreeDumperNode VisitIndexerAccess(BoundIndexerAccess node, object? arg) => new TreeDumperNode("indexerAccess", null, new TreeDumperNode[]
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
526public override BoundNode VisitIndexerAccess(BoundIndexerAccess node)
Lowering\LocalRewriter\LocalRewriter.cs (1)
1093return ((BoundIndexerAccess)expr).Indexer.RefKind != RefKind.None;
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
311public override BoundNode VisitIndexerAccess(BoundIndexerAccess node)
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (3)
34loweredLeft = VisitIndexerAccess((BoundIndexerAccess)left, isLeftOfAssignment: true); 201BoundIndexerAccess indexerAccess = (BoundIndexerAccess)rewrittenLeft;
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (8)
244private BoundIndexerAccess TransformIndexerAccess(BoundIndexerAccess indexerAccess, bool isRegularCompoundAssignment, ArrayBuilder<BoundExpression> stores, ArrayBuilder<LocalSymbol> temps) 315private BoundIndexerAccess TransformIndexerAccessContinued( 316BoundIndexerAccess indexerAccess, 433if (access is BoundIndexerAccess indexerAccess) 611var indexerAccess = (BoundIndexerAccess)originalLHS; 614return TransformIndexerAccess((BoundIndexerAccess)originalLHS, isRegularCompoundAssignment, stores, temps);
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (6)
67public override BoundNode VisitIndexerAccess(BoundIndexerAccess node) 76private BoundExpression VisitIndexerAccess(BoundIndexerAccess node, bool isLeftOfAssignment) 114Debug.Assert(oldNode is BoundIndexerAccess or BoundObjectInitializerMember); 126BoundIndexerAccess indexerExpr => indexerExpr.Update( 480Debug.Assert(node.IndexerOrSliceAccess is BoundIndexerAccess or BoundArrayAccess); 567if (node.IndexerOrSliceAccess is BoundIndexerAccess indexerAccess)
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (1)
493if (rewrittenAccess is BoundIndexerAccess indexerAccess)
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (2)
873var indexerAccess = (BoundIndexerAccess)transformedExpression;
Operations\CSharpOperationFactory.cs (3)
50return CreateBoundIndexerAccessOperation((BoundIndexerAccess)boundNode); 605case BoundIndexerAccess boundIndexerAccess: 624private IOperation CreateBoundIndexerAccessOperation(BoundIndexerAccess boundIndexerAccess)
Operations\CSharpOperationFactory_Methods.cs (2)
211var boundIndexer = (BoundIndexerAccess)containingExpression;