1 write to Indexer
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
7421this.Indexer = indexer;
53 references to Indexer
Microsoft.CodeAnalysis.CSharp (53)
Binder\Binder.ValueChecks.cs (15)
86Create(expr.Indexer, expr.AccessorKind); 386if (indexerAccess.Indexer.RefKind != RefKind.None) 409var useSetAccessor = coreValueKind == BindValueKind.Assignable && indexerAccess.Indexer.RefKind != RefKind.Ref; 411? indexerAccess.Indexer.GetOwnOrInheritedSetMethod() 412: indexerAccess.Indexer.GetOwnOrInheritedGetMethod(); 439Debug.Assert(parameters.Length == indexerAccess.Indexer.Parameters.Length); 477indexerAccess.Indexer, 3488var indexerSymbol = indexerAccess.Indexer; 3510var indexerSymbol = indexerAccess.Indexer; 3787var indexerSymbol = indexerAccess.Indexer; 3818var indexerSymbol = indexerAccess.Indexer; 4190var indexerSymbol = indexerAccess.Indexer; 4212var indexerSymbol = indexerAccess.Indexer; 4909var indexerSymbol = indexerAccess.Indexer; 4935var indexerSymbol = indexerAccess.Indexer;
Binder\Binder_Expressions.cs (1)
5895hasErrors |= isRhsNestedInitializer && !CheckNestedObjectInitializerPropertySymbol(indexer.Indexer, leftSyntax, diagnostics, hasErrors, ref resultKind);
Binder\Binder_Statements.cs (4)
1645propertySymbol = indexerAccess.Indexer; 1655propertySymbol = indexerAccess.Indexer; 1705BoundIndexerAccess indexerAccess => indexerAccess.Indexer, 1709BoundImplicitIndexerAccess { IndexerOrSliceAccess: BoundIndexerAccess indexerAccess } => indexerAccess.Indexer,
Binder\RefSafetyAnalysis.cs (1)
841var 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)); 4408if (elementAccess != null && elementAccess.Expression == boundNode.Syntax && (object)indexer.Indexer != null) 4413symbols = OneOrMany.Create<Symbol>(indexer.Indexer);
FlowAnalysis\AbstractFlowPass.cs (1)
1482var method = GetReadMethod(node.Indexer);
FlowAnalysis\NullableWalker.cs (4)
10015BoundIndexerAccess indexerAccess => indexerAccess.Indexer, 10039BoundIndexerAccess indexer => indexer.Indexer.GetFlowAnalysisAnnotations(), 10696var indexer = node.Indexer; 10707SetUpdatedSymbol(node, node.Indexer, indexer);
FlowAnalysis\NullableWalker_Patterns.cs (1)
850BoundIndexerAccess indexerAccess => AsMemberOfType(inputType, indexerAccess.Indexer).GetTypeOrReturnType(),
Generated\BoundNodes.xml.Generated.cs (4)
7450if (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)) 11956return node.Update(receiverOpt, node.InitialBindingReceiverIsSubjectToCloning, node.Indexer, arguments, node.ArgumentNamesOpt, node.ArgumentRefKindsOpt, node.Expanded, node.AccessorKind, node.ArgsToParamsOpt, node.DefaultArguments, node.OriginalIndexersOpt, type); 14485PropertySymbol indexer = GetUpdatedSymbol(node, node.Indexer); 16749new 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,