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); 9414convertedIndex = TryImplicitConversionToArrayIndex(index, WellKnownType.System_Index, node, diagnostics); 9426indexOrRangeWellknownType = WellKnownType.System_Index; 9502else if (indexOrRangeWellknownType == WellKnownType.System_Index) 9574if (TypeSymbol.Equals(convertedIndex.Type, compilation.GetWellKnownType(WellKnownType.System_Index), TypeCompareKind.AllIgnoreOptions)) 9710if (indexOrRangeWellknownType == WellKnownType.System_Index) 9756result = TryImplicitConversionToArrayIndex(index, WellKnownType.System_Index, node, diagnostics); 9773indexOrRangeWellknownType = WellKnownType.System_Index; 10249TypeSymbol.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)
509_compilation.GetWellKnownType(WellKnownType.System_Index), 717Debug.Assert(implicitIndexerAccess.Argument.Type!.Equals(_compilation.GetWellKnownType(WellKnownType.System_Index))
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (5)
229if (TypeSymbol.Equals(node.Argument.Type, _compilation.GetWellKnownType(WellKnownType.System_Index), TypeCompareKind.AllIgnoreOptions)) 437_compilation.GetWellKnownType(WellKnownType.System_Index), 484_compilation.GetWellKnownType(WellKnownType.System_Index), 678_compilation.GetWellKnownType(WellKnownType.System_Index), 711_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)
1897type.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)
619case WellKnownType.System_Index: