33 references to System_Index
Microsoft.CodeAnalysis (8)
WellKnownMembers.cs (8)
3499(byte)WellKnownType.ExtSentinel, (byte)(WellKnownType.System_Index - WellKnownType.ExtSentinel), // DeclaringTypeId 3508(byte)WellKnownType.ExtSentinel, (byte)(WellKnownType.System_Index - WellKnownType.ExtSentinel), // DeclaringTypeId 3520(byte)SignatureTypeCode.TypeHandle, (byte)WellKnownType.ExtSentinel, (byte)(WellKnownType.System_Index - WellKnownType.ExtSentinel), 3521(byte)SignatureTypeCode.TypeHandle, (byte)WellKnownType.ExtSentinel, (byte)(WellKnownType.System_Index - WellKnownType.ExtSentinel), 3529(byte)SignatureTypeCode.TypeHandle, (byte)WellKnownType.ExtSentinel, (byte)(WellKnownType.System_Index - WellKnownType.ExtSentinel), 3537(byte)SignatureTypeCode.TypeHandle, (byte)WellKnownType.ExtSentinel, (byte)(WellKnownType.System_Index - WellKnownType.ExtSentinel), 3551(byte)SignatureTypeCode.TypeHandle, (byte)WellKnownType.ExtSentinel, (byte)(WellKnownType.System_Index - WellKnownType.ExtSentinel), 3558(byte)SignatureTypeCode.TypeHandle, (byte)WellKnownType.ExtSentinel, (byte)(WellKnownType.System_Index - WellKnownType.ExtSentinel),
Microsoft.CodeAnalysis.CSharp (22)
Binder\Binder_Expressions.cs (10)
2613TypeSymbol indexType = GetWellKnownType(WellKnownType.System_Index, diagnostics, node); 2720TypeSymbol indexType = GetWellKnownType(WellKnownType.System_Index, diagnostics, operand); 9412convertedIndex = TryImplicitConversionToArrayIndex(index, WellKnownType.System_Index, node, diagnostics); 9424indexOrRangeWellknownType = WellKnownType.System_Index; 9500else if (indexOrRangeWellknownType == WellKnownType.System_Index) 9572if (TypeSymbol.Equals(convertedIndex.Type, compilation.GetWellKnownType(WellKnownType.System_Index), TypeCompareKind.AllIgnoreOptions)) 9708if (indexOrRangeWellknownType == WellKnownType.System_Index) 9754result = TryImplicitConversionToArrayIndex(index, WellKnownType.System_Index, node, diagnostics); 9771indexOrRangeWellknownType = WellKnownType.System_Index; 10247TypeSymbol.Equals(argType, Compilation.GetWellKnownType(WellKnownType.System_Index), TypeCompareKind.ConsiderEverything) ? ThreeState.True :
Binder\Binder_Patterns.cs (1)
384var systemIndexType = GetWellKnownType(WellKnownType.System_Index, diagnostics, node);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (2)
318methodOpt: ctor, _factory.WellKnownType(WellKnownType.System_Index)); 329methodOpt: indexCtor, _factory.WellKnownType(WellKnownType.System_Index));
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (2)
545_compilation.GetWellKnownType(WellKnownType.System_Index), 753Debug.Assert(implicitIndexerAccess.Argument.Type!.Equals(_compilation.GetWellKnownType(WellKnownType.System_Index))
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (5)
268if (TypeSymbol.Equals(node.Argument.Type, _compilation.GetWellKnownType(WellKnownType.System_Index), TypeCompareKind.AllIgnoreOptions)) 476_compilation.GetWellKnownType(WellKnownType.System_Index), 523_compilation.GetWellKnownType(WellKnownType.System_Index), 718_compilation.GetWellKnownType(WellKnownType.System_Index), 751_compilation.GetWellKnownType(WellKnownType.System_Index),
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (1)
517if (TypeSymbol.Equals(implicitIndexer.Argument.Type, _compilation.GetWellKnownType(WellKnownType.System_Index), TypeCompareKind.ConsiderEverything))
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1908type.Equals(index ??= DeclaringCompilation.GetWellKnownType(WellKnownType.System_Index), TypeCompareKind.AllIgnoreOptions) ||
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Semantics\PatternMatchingTests_ListPatterns.cs (2)
7452comp.MakeTypeMissing(WellKnownType.System_Index); 7863compilation.MakeTypeMissing(WellKnownType.System_Index);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\MissingSpecialMember.cs (1)
622case WellKnownType.System_Index: