70 references to InternalSpecialType
Microsoft.CodeAnalysis (34)
ExtendedSpecialType.cs (7)
11/// A structure meant to represent a union of <see cref="SpecialType"/> and <see cref="InternalSpecialType"/> values 26public static explicit operator SpecialType(ExtendedSpecialType value) => value._value < (int)InternalSpecialType.First ? (SpecialType)value._value : SpecialType.None; 28public static implicit operator ExtendedSpecialType(InternalSpecialType value) => new ExtendedSpecialType((int)value); 46case InternalSpecialType other: 66if (_value >= (int)InternalSpecialType.First && _value < (int)InternalSpecialType.NextAvailable) 68return ((InternalSpecialType)_value).ToString();
MemberDescriptor.cs (2)
50public bool IsSpecialTypeMember => _declaringTypeId < (int)InternalSpecialType.NextAvailable; 56Debug.Assert(_declaringTypeId < (int)InternalSpecialType.NextAvailable);
SpecialMembers.cs (22)
106(byte)SignatureTypeCode.GenericTypeInstance, (byte)SignatureTypeCode.TypeHandle, (byte)InternalSpecialType.System_ReadOnlySpan_T, 109(byte)SignatureTypeCode.GenericTypeInstance, (byte)SignatureTypeCode.TypeHandle, (byte)InternalSpecialType.System_ReadOnlySpan_T, 119(byte)SignatureTypeCode.GenericTypeInstance, (byte)SignatureTypeCode.TypeHandle, (byte)InternalSpecialType.System_ReadOnlySpan_T, 122(byte)SignatureTypeCode.GenericTypeInstance, (byte)SignatureTypeCode.TypeHandle, (byte)InternalSpecialType.System_ReadOnlySpan_T, 125(byte)SignatureTypeCode.GenericTypeInstance, (byte)SignatureTypeCode.TypeHandle, (byte)InternalSpecialType.System_ReadOnlySpan_T, 135(byte)SignatureTypeCode.GenericTypeInstance, (byte)SignatureTypeCode.TypeHandle, (byte)InternalSpecialType.System_ReadOnlySpan_T, 138(byte)SignatureTypeCode.GenericTypeInstance, (byte)SignatureTypeCode.TypeHandle, (byte)InternalSpecialType.System_ReadOnlySpan_T, 141(byte)SignatureTypeCode.GenericTypeInstance, (byte)SignatureTypeCode.TypeHandle, (byte)InternalSpecialType.System_ReadOnlySpan_T, 144(byte)SignatureTypeCode.GenericTypeInstance, (byte)SignatureTypeCode.TypeHandle, (byte)InternalSpecialType.System_ReadOnlySpan_T, 196(byte)SignatureTypeCode.TypeHandle, (byte)InternalSpecialType.System_IFormatProvider, 214(byte)SignatureTypeCode.GenericTypeInstance, (byte)SignatureTypeCode.TypeHandle, (byte)InternalSpecialType.System_ReadOnlySpan_T, 277(byte)SignatureTypeCode.TypeHandle, (byte)InternalSpecialType.System_Type, 279(byte)SignatureTypeCode.TypeHandle, (byte)InternalSpecialType.System_Reflection_MethodInfo, 287(byte)SignatureTypeCode.TypeHandle, (byte)InternalSpecialType.System_Type, 289(byte)SignatureTypeCode.TypeHandle, (byte)InternalSpecialType.System_Reflection_MethodInfo, 1161(byte)InternalSpecialType.System_ReadOnlySpan_T, // DeclaringTypeId 1271(byte)InternalSpecialType.System_Reflection_MethodBase, // DeclaringTypeId 1274(byte)SignatureTypeCode.TypeHandle, (byte)InternalSpecialType.System_Reflection_MethodBase, // Return Type 1279(byte)InternalSpecialType.System_Reflection_MethodBase, // DeclaringTypeId 1282(byte)SignatureTypeCode.TypeHandle, (byte)InternalSpecialType.System_Reflection_MethodBase, // Return Type 1311(byte)InternalSpecialType.System_Type, // DeclaringTypeId 1314(byte)SignatureTypeCode.TypeHandle, (byte)InternalSpecialType.System_Type, // Return Type
SpecialTypes.cs (2)
19private static readonly string?[] s_emittedNames = new string?[(int)InternalSpecialType.NextAvailable] 87s_nameToTypeIdMap = new Dictionary<string, ExtendedSpecialType>((int)InternalSpecialType.NextAvailable - 1);
WellKnownTypes.cs (1)
21First = InternalSpecialType.NextAvailable,
Microsoft.CodeAnalysis.CSharp (14)
Compilation\CSharpCompilation.cs (1)
1663if ((int)specialType <= (int)SpecialType.None || (int)specialType >= (int)InternalSpecialType.NextAvailable)
Lowering\LocalRewriter\LocalRewriter.cs (2)
648Debug.Assert(node.Type.ExtendedSpecialType == InternalSpecialType.System_Type || 660if (node.Type.ExtendedSpecialType == InternalSpecialType.System_Type)
Lowering\SyntheticBoundNodeFactory.cs (4)
1268Debug.Assert(systemType.ExtendedSpecialType == InternalSpecialType.System_Type || 1273if (systemType.ExtendedSpecialType == InternalSpecialType.System_Type) 1450Debug.Assert(systemReflectionMethodOrConstructorInfo.ExtendedSpecialType == InternalSpecialType.System_Reflection_MethodInfo || 1456if (systemReflectionMethodOrConstructorInfo.ExtendedSpecialType == InternalSpecialType.System_Reflection_MethodInfo)
Symbols\MetadataOrSourceAssemblySymbol.cs (3)
91new NamedTypeSymbol[(int)InternalSpecialType.NextAvailable], null); 103Debug.Assert(_cachedSpecialTypes > 0 && _cachedSpecialTypes < (int)InternalSpecialType.NextAvailable); 115return ReferenceEquals(this.CorLibrary, this) && _cachedSpecialTypes < (int)InternalSpecialType.NextAvailable - 1;
Symbols\MissingCorLibrarySymbol.cs (1)
72new NamedTypeSymbol[(int)InternalSpecialType.NextAvailable], null);
Symbols\MissingMetadataTypeSymbol.cs (1)
149/// Either <see cref="SpecialType"/>, <see cref="InternalSpecialType"/>, <see cref="WellKnownType"/>, or -1 if not initialized.
Symbols\Source\SourceMemberContainerSymbol.cs (2)
112_ = new int[SpecialTypeMask - (int)InternalSpecialType.NextAvailable + 1]; 114Debug.Assert(EnumUtilities.ContainsAllValues<InternalSpecialType>(SpecialTypeMask)); //This assert might false fail in the future, we don't really need to be able to represent NextAvailable
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (17)
Symbols\CorLibrary\CorTypes.cs (15)
80for (int i = (int)InternalSpecialType.First; i < (int)InternalSpecialType.NextAvailable; i++) 82var t = msCorLibRef.GetSpecialType((InternalSpecialType)i); 161for (int i = (int)InternalSpecialType.First; i < (int)InternalSpecialType.NextAvailable; i++) 164var t = msCorLibRef.GetSpecialType((InternalSpecialType)i); 207for (int i = (int)InternalSpecialType.First; i < (int)InternalSpecialType.NextAvailable; i++) 210var t = c1.GetSpecialType((InternalSpecialType)i); 230Assert.Throws<ArgumentOutOfRangeException>(() => c1.GetSpecialType(InternalSpecialType.NextAvailable)); 291Assert.False(comp.GetSpecialType(InternalSpecialType.System_Type).IsErrorType()); 297Assert.Equal(InternalSpecialType.System_Type, model.GetTypeInfo(node).Type.GetSymbol().ExtendedSpecialType); 355Assert.True(comp1.GetSpecialType(InternalSpecialType.System_Type).IsErrorType()); 428Assert.False(comp.GetSpecialType(InternalSpecialType.System_Type).IsErrorType()); 536Assert.True(comp1.GetSpecialType(InternalSpecialType.System_Type).IsErrorType());
Symbols\Metadata\PE\LoadingFields.cs (2)
150var readOnlySpanType = comp.GetSpecialType(InternalSpecialType.System_ReadOnlySpan_T); 153Assert.Equal((ExtendedSpecialType)InternalSpecialType.System_ReadOnlySpan_T, readOnlySpanType.ExtendedSpecialType);
Microsoft.CodeAnalysis.UnitTests (5)
CorLibTypesTests.cs (1)
20for (int i = 1; i < (int)InternalSpecialType.NextAvailable; i++)
Symbols\SpecialTypeTests.cs (4)
18AssertEx.Equal("System_ReadOnlySpan_T", ((ExtendedSpecialType)InternalSpecialType.First).ToString()); 19AssertEx.Equal("System_ReadOnlySpan_T", ((ExtendedSpecialType)InternalSpecialType.System_ReadOnlySpan_T).ToString()); 20AssertEx.Equal("System_Reflection_MethodInfo", ((ExtendedSpecialType)(InternalSpecialType.NextAvailable - 1)).ToString()); 21AssertEx.Equal("52", ((ExtendedSpecialType)InternalSpecialType.NextAvailable).ToString());