1 instantiation of BoundIndexerAccess
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
7452var 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) => 384private static AccessorKind GetIndexerAccessorKind(BoundIndexerAccess indexerAccess, BindValueKind valueKind) 405private BoundIndexerAccess BindIndexerDefaultArgumentsAndParamsCollection(BoundIndexerAccess indexerAccess, BindValueKind valueKind, BindingDiagnosticBag diagnostics) 511if (expr is BoundIndexerAccess indexerAccess) 554expr = BindIndexerDefaultArgumentsAndParamsCollection((BoundIndexerAccess)expr, valueKind, diagnostics); 560if (implicitIndexer.IndexerOrSliceAccess is BoundIndexerAccess indexerAccess) 3487var indexerAccess = (BoundIndexerAccess)expr; 3509case BoundIndexerAccess indexerAccess: 3786var indexerAccess = (BoundIndexerAccess)expr; 3817case BoundIndexerAccess indexerAccess: 4189var indexerAccess = (BoundIndexerAccess)expr; 4211case BoundIndexerAccess indexerAccess: 4908var indexerAccess = (BoundIndexerAccess)expr; 4934case BoundIndexerAccess indexerAccess:
Binder\Binder_Expressions.cs (5)
5893var indexer = BindIndexerDefaultArgumentsAndParamsCollection((BoundIndexerAccess)boundMember, valueKind, diagnostics); 9661return BoundIndexerAccess.ErrorAccess( 9828propertyAccess = BoundIndexerAccess.ErrorAccess( 9924Debug.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)
1643var indexerAccess = (BoundIndexerAccess)expr; 1654case BoundIndexerAccess indexerAccess: 1705BoundIndexerAccess indexerAccess => indexerAccess.Indexer, 1709BoundImplicitIndexerAccess { IndexerOrSliceAccess: BoundIndexerAccess indexerAccess } => indexerAccess.Indexer,
Binder\RefSafetyAnalysis.cs (1)
833public 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)
14Debug.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; 4406var indexer = (BoundIndexerAccess)boundNodeForSyntacticParent;
FlowAnalysis\AbstractFlowPass.cs (1)
1480public override BoundNode VisitIndexerAccess(BoundIndexerAccess node)
FlowAnalysis\NullableWalker.cs (3)
10015BoundIndexerAccess indexerAccess => indexerAccess.Indexer, 10039BoundIndexerAccess indexer => indexer.Indexer.GetFlowAnalysisAnnotations(), 10688public override BoundNode? VisitIndexerAccess(BoundIndexerAccess node)
FlowAnalysis\NullableWalker_Patterns.cs (1)
850BoundIndexerAccess indexerAccess => AsMemberOfType(inputType, indexerAccess.Indexer).GetTypeOrReturnType(),
Generated\BoundNodes.xml.Generated.cs (10)
7448public 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) 7452var result = new BoundIndexerAccess(this.Syntax, receiverOpt, initialBindingReceiverIsSubjectToCloning, indexer, arguments, argumentNamesOpt, argumentRefKindsOpt, expanded, accessorKind, argsToParamsOpt, defaultArguments, originalIndexersOpt, type, this.HasErrors); 9221return VisitIndexerAccess((BoundIndexerAccess)node, arg); 9498public virtual R VisitIndexerAccess(BoundIndexerAccess node, A arg) => this.DefaultVisit(node, arg); 9734public virtual BoundNode? VisitIndexerAccess(BoundIndexerAccess node) => this.DefaultVisit(node); 10611public override BoundNode? VisitIndexerAccess(BoundIndexerAccess node) 11951public override BoundNode? VisitIndexerAccess(BoundIndexerAccess node) 14483public override BoundNode? VisitIndexerAccess(BoundIndexerAccess node) 14489BoundIndexerAccess updatedNode; 16745public 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;