1 write to Indexer
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
7422this.Indexer = indexer;
53 references to Indexer
Microsoft.CodeAnalysis.CSharp (53)
Binder\Binder.ValueChecks.cs (15)
86Create(expr.Indexer, expr.AccessorKind); 363if (indexerAccess.Indexer.RefKind != RefKind.None) 386var useSetAccessor = coreValueKind == BindValueKind.Assignable && indexerAccess.Indexer.RefKind != RefKind.Ref; 388? indexerAccess.Indexer.GetOwnOrInheritedSetMethod() 389: indexerAccess.Indexer.GetOwnOrInheritedGetMethod(); 416Debug.Assert(parameters.Length == indexerAccess.Indexer.Parameters.Length); 454indexerAccess.Indexer, 3465var indexerSymbol = indexerAccess.Indexer; 3487var indexerSymbol = indexerAccess.Indexer; 3764var indexerSymbol = indexerAccess.Indexer; 3795var indexerSymbol = indexerAccess.Indexer; 4166var indexerSymbol = indexerAccess.Indexer; 4188var indexerSymbol = indexerAccess.Indexer; 4891var indexerSymbol = indexerAccess.Indexer; 4917var indexerSymbol = indexerAccess.Indexer;
Binder\Binder_Expressions.cs (1)
5898hasErrors |= isRhsNestedInitializer && !CheckNestedObjectInitializerPropertySymbol(indexer.Indexer, leftSyntax, diagnostics, hasErrors, ref resultKind);
Binder\Binder_Statements.cs (4)
1648propertySymbol = indexerAccess.Indexer; 1658propertySymbol = indexerAccess.Indexer; 1708BoundIndexerAccess indexerAccess => indexerAccess.Indexer, 1712BoundImplicitIndexerAccess { IndexerOrSliceAccess: BoundIndexerAccess indexerAccess } => indexerAccess.Indexer,
Binder\RefSafetyAnalysis.cs (1)
866var indexer = node.Indexer;
BoundTree\BoundExpression.cs (2)
342get { return this.Indexer; } 358Indexer,
BoundTree\BoundExpressionExtensions.cs (1)
40return ((BoundIndexerAccess)node).Indexer.RefKind;
Compilation\CSharpSemanticModel.cs (4)
3482Debug.Assert((object)indexerAccess.Indexer != null); 3487symbols = originalIndexersOpt.IsDefault ? OneOrMany.Create<Symbol>(indexerAccess.Indexer) : StaticCast<Symbol>.From(OneOrMany.Create(originalIndexersOpt)); 4415if (elementAccess != null && elementAccess.Expression == boundNode.Syntax && (object)indexer.Indexer != null) 4420symbols = OneOrMany.Create<Symbol>(indexer.Indexer);
FlowAnalysis\AbstractFlowPass.cs (1)
1482var method = GetReadMethod(node.Indexer);
FlowAnalysis\NullableWalker.cs (4)
10073BoundIndexerAccess indexerAccess => indexerAccess.Indexer, 10097BoundIndexerAccess indexer => indexer.Indexer.GetFlowAnalysisAnnotations(), 10754var indexer = node.Indexer; 10765SetUpdatedSymbol(node, node.Indexer, indexer);
FlowAnalysis\NullableWalker_Patterns.cs (1)
850BoundIndexerAccess indexerAccess => AsMemberOfType(inputType, indexerAccess.Indexer).GetTypeOrReturnType(),
Generated\BoundNodes.xml.Generated.cs (4)
7451if (receiverOpt != this.ReceiverOpt || initialBindingReceiverIsSubjectToCloning != this.InitialBindingReceiverIsSubjectToCloning || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(indexer, this.Indexer) || arguments != this.Arguments || argumentNamesOpt != this.ArgumentNamesOpt || argumentRefKindsOpt != this.ArgumentRefKindsOpt || expanded != this.Expanded || accessorKind != this.AccessorKind || argsToParamsOpt != this.ArgsToParamsOpt || defaultArguments != this.DefaultArguments || originalIndexersOpt != this.OriginalIndexersOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 11993return node.Update(receiverOpt, node.InitialBindingReceiverIsSubjectToCloning, node.Indexer, arguments, node.ArgumentNamesOpt, node.ArgumentRefKindsOpt, node.Expanded, node.AccessorKind, node.ArgsToParamsOpt, node.DefaultArguments, node.OriginalIndexersOpt, type); 14522PropertySymbol indexer = GetUpdatedSymbol(node, node.Indexer); 16786new TreeDumperNode("indexer", node.Indexer, null),
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
528var indexer = node.Indexer;
Lowering\LocalRewriter\LocalRewriter.cs (1)
1093return ((BoundIndexerAccess)expr).Indexer.RefKind != RefKind.None;
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
316MethodMayMutateReceiver(node.ReceiverOpt, node.Indexer.GetMethod);
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (1)
204PropertySymbol indexer = indexerAccess.Indexer;
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (2)
304indexerAccess.Indexer, 325PropertySymbol indexer = indexerAccess.Indexer;
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (6)
70Debug.Assert(node.Indexer.IsIndexer || node.Indexer.IsIndexedProperty); 71Debug.Assert((object?)node.Indexer.GetOwnOrInheritedGetMethod() != null); 78PropertySymbol indexer = node.Indexer; 580indexerAccess.Indexer, 589receiver, initialBindingReceiverIsSubjectToCloning: ThreeState.Unknown, indexerAccess.Indexer, rewrittenArguments,
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
874return MakePropertyGetAccess(transformedExpression.Syntax, indexerAccess.ReceiverOpt, indexerAccess.Indexer, indexerAccess.Arguments, indexerAccess.ArgumentRefKindsOpt);
Operations\CSharpOperationFactory.cs (1)
626PropertySymbol property = boundIndexerAccess.Indexer;
Operations\CSharpOperationFactory_Methods.cs (1)
212return DeriveArguments(boundIndexer.Indexer,