1 implementation of Indices
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
5275public ImmutableArray<IOperation> Indices { get; }
24 references to Indices
ILLink.RoslynAnalyzer (4)
DataFlow\LocalDataFlowVisitor.cs (4)
382if (arrayElementRef.Indices.Length != 1) 386TValue index = Visit(arrayElementRef.Indices[0], state); 782if (operation.Indices.Length != 1) 785return HandleArrayElementRead(Visit(operation.ArrayReference, state), Visit(operation.Indices[0], state), operation);
Microsoft.CodeAnalysis (4)
Operations\ControlFlowGraphBuilder.cs (4)
2133ImmutableArray<IOperation> visitedIndices = VisitArray(operation.Indices); 6199VisitAndPushArray(arrayReference.Indices); 6260ImmutableArray<IOperation> indices = PopArray(arrayElementReference.Indices); 6337foreach (var index in arrayAccess.Indices)
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityFactory.cs (1)
154indices = CreateAbstractIndices(arrayElementReference.Indices);
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.cs (2)
144if (arrayElementReference.Indices.Length != 1) 151arrayElementReference.Indices[0],
Microsoft.CodeAnalysis.CSharp.Features (2)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.cs (2)
144if (arrayElementReference.Indices.Length != 1) 151arrayElementReference.Indices[0],
Microsoft.CodeAnalysis.NetAnalyzers (11)
Microsoft.NetCore.Analyzers\Performance\AvoidPotentiallyExpensiveCallWhenLogging.cs (1)
162arrayElementReferenceOperation.Indices.Select(GetExpenseReason).FirstOrDefault(r => r is not null);
Microsoft.NetCore.Analyzers\Performance\PreferDictionaryTryMethodsOverContainsKeyGuardAnalyzer.cs (6)
61AdditionalArrayIndexReferences = AdditionalArrayIndexReferences.AddRange(a.Indices); 566if (source.Indices.Length != target.Indices.Length || !IsSameReferenceOperation(source.ArrayReference, target.ArrayReference)) 571for (int i = 0; i < target.Indices.Length; i++) 573if (!IsSameConstantOrReferenceOperation(source.Indices[i], target.Indices[i]))
Microsoft.NetCore.Analyzers\Performance\UseAsSpanInsteadOfRangeIndexer.cs (2)
112if (elementReference.Indices.Length != 1) 117indexerArgument = elementReference.Indices[0];
Microsoft.NetCore.Analyzers\Runtime\AvoidRedundantRegexIsMatchBeforeMatch.cs (1)
297foreach (var index in arrayRef.Indices)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityFactory.cs (1)
152indices = CreateAbstractIndices(arrayElementReference.Indices);