3 instantiations of ExtendedSpecialType
Microsoft.CodeAnalysis (3)
ExtendedSpecialType.cs (3)
25public static implicit operator ExtendedSpecialType(SpecialType value) => new ExtendedSpecialType((int)value); 28public static implicit operator ExtendedSpecialType(InternalSpecialType value) => new ExtendedSpecialType((int)value); 31public static explicit operator ExtendedSpecialType(int value) => new ExtendedSpecialType(value);
69 references to ExtendedSpecialType
Microsoft.CodeAnalysis (22)
Compilation\Compilation.cs (2)
3849internal void MakeTypeMissing(ExtendedSpecialType type) 3869internal bool IsTypeMissing(ExtendedSpecialType type)
ExtendedSpecialType.cs (11)
25public static implicit operator ExtendedSpecialType(SpecialType value) => new ExtendedSpecialType((int)value); 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); 29public static explicit operator InternalSpecialType(ExtendedSpecialType value) => value._value is < (int)InternalSpecialType.First or >= (int)InternalSpecialType.NextAvailable ? InternalSpecialType.Unknown : (InternalSpecialType)value._value; 31public static explicit operator ExtendedSpecialType(int value) => new ExtendedSpecialType(value); 32public static explicit operator int(ExtendedSpecialType value) => value._value; 34public static bool operator ==(ExtendedSpecialType left, ExtendedSpecialType right) => left._value == right._value; 35public static bool operator !=(ExtendedSpecialType left, ExtendedSpecialType right) => !(left == right); 41case ExtendedSpecialType other:
MemberDescriptor.cs (2)
52public ExtendedSpecialType DeclaringSpecialType 57return (ExtendedSpecialType)_declaringTypeId;
SpecialTypes.cs (6)
88private static readonly Dictionary<string, ExtendedSpecialType> s_nameToTypeIdMap; 95s_nameToTypeIdMap = new Dictionary<string, ExtendedSpecialType>((int)InternalSpecialType.NextAvailable - 1); 104s_nameToTypeIdMap.Add(name, (ExtendedSpecialType)i); 159public static string? GetMetadataName(this ExtendedSpecialType id) 164public static ExtendedSpecialType GetTypeFromMetadataName(string metadataName) 166ExtendedSpecialType id;
Symbols\ITypeSymbolInternal.cs (1)
22ExtendedSpecialType ExtendedSpecialType { get; }
Microsoft.CodeAnalysis.CSharp (28)
Binder\Binder_Symbols.cs (3)
1709internal NamedTypeSymbol GetSpecialType(ExtendedSpecialType typeId, BindingDiagnosticBag diagnostics, SyntaxNode node) 1714internal static NamedTypeSymbol GetSpecialType(CSharpCompilation compilation, ExtendedSpecialType typeId, SyntaxNode node, BindingDiagnosticBag diagnostics) 1722internal static NamedTypeSymbol GetSpecialType(CSharpCompilation compilation, ExtendedSpecialType typeId, Location location, BindingDiagnosticBag diagnostics)
Compilation\CSharpCompilation.cs (1)
1724internal NamedTypeSymbol GetSpecialType(ExtendedSpecialType specialType)
Lowering\LocalRewriter\LocalRewriter.cs (1)
638ExtendedSpecialType type = descriptor.DeclaringSpecialType;
Symbols\AssemblySymbol.cs (2)
385internal abstract NamedTypeSymbol GetDeclaredSpecialType(ExtendedSpecialType type); 629internal NamedTypeSymbol GetSpecialType(ExtendedSpecialType type)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (2)
40private readonly ExtendedSpecialType _corTypeId; 398public override ExtendedSpecialType ExtendedSpecialType
Symbols\MetadataOrSourceAssemblySymbol.cs (2)
45internal sealed override NamedTypeSymbol GetDeclaredSpecialType(ExtendedSpecialType type) 82ExtendedSpecialType typeId = corType.ExtendedSpecialType;
Symbols\MissingAssemblySymbol.cs (1)
183internal override NamedTypeSymbol GetDeclaredSpecialType(ExtendedSpecialType type)
Symbols\MissingCorLibrarySymbol.cs (1)
60internal override NamedTypeSymbol GetDeclaredSpecialType(ExtendedSpecialType type)
Symbols\MissingMetadataTypeSymbol.cs (5)
163public TopLevel(ModuleSymbol module, ref MetadataTypeName fullName, ExtendedSpecialType specialType, DiagnosticInfo? errorInfo = null) 290ExtendedSpecialType typeId = default; 308public override ExtendedSpecialType ExtendedSpecialType 313return (typeId >= (int)WellKnownType.First) ? SpecialType.None : (ExtendedSpecialType)typeId; 437public override ExtendedSpecialType ExtendedSpecialType
Symbols\NativeIntegerTypeSymbol.cs (1)
52public override ExtendedSpecialType ExtendedSpecialType => _underlyingType.ExtendedSpecialType;
Symbols\Retargeting\RetargetingAssemblySymbol.cs (1)
236internal override NamedTypeSymbol GetDeclaredSpecialType(ExtendedSpecialType type)
Symbols\Source\SourceMemberContainerSymbol.cs (6)
82public ExtendedSpecialType ExtendedSpecialType 84get { return (ExtendedSpecialType)((_flags >> SpecialTypeOffset) & SpecialTypeMask); } 119public Flags(ExtendedSpecialType specialType, TypeKind typeKind, bool hasPrimaryConstructor) 257var specialType = access == (int)DeclarationModifiers.Public 273private ExtendedSpecialType MakeExtendedSpecialType() 796public override ExtendedSpecialType ExtendedSpecialType
Symbols\TypeSymbol.cs (2)
493public virtual ExtendedSpecialType ExtendedSpecialType 2511ExtendedSpecialType ITypeSymbolInternal.ExtendedSpecialType => this.ExtendedSpecialType;
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (10)
Symbols\CorLibrary\CorTypes.cs (8)
75Assert.Equal((ExtendedSpecialType)i, t.ExtendedSpecialType); 93Assert.Equal((ExtendedSpecialType)i, t.ExtendedSpecialType); 156Assert.Equal((ExtendedSpecialType)i, t.ExtendedSpecialType); 175Assert.Equal((ExtendedSpecialType)i, t.ExtendedSpecialType); 209Assert.Equal((ExtendedSpecialType)i, t.ExtendedSpecialType); 221Assert.Equal((ExtendedSpecialType)i, t.ExtendedSpecialType); 231Assert.Equal((ExtendedSpecialType)SpecialType.System_Object, system_object.ExtendedSpecialType); 371Assert.Equal((ExtendedSpecialType)0, model.GetTypeInfo(node).Type.GetSymbol().ExtendedSpecialType);
Symbols\Metadata\PE\LoadingFields.cs (1)
153Assert.Equal((ExtendedSpecialType)InternalSpecialType.System_ReadOnlySpan_T, readOnlySpanType.ExtendedSpecialType);
Symbols\MockAssemblySymbol.cs (1)
53internal override NamedTypeSymbol GetDeclaredSpecialType(ExtendedSpecialType type)
Microsoft.CodeAnalysis.UnitTests (9)
CorLibTypesTests.cs (2)
22string name = SpecialTypes.GetMetadataName((ExtendedSpecialType)i); 23Assert.Equal((ExtendedSpecialType)i, SpecialTypes.GetTypeFromMetadataName(name));
Symbols\SpecialTypeTests.cs (7)
15AssertEx.Equal("0", ((ExtendedSpecialType)SpecialType.None).ToString()); 16AssertEx.Equal("System_Object", ((ExtendedSpecialType)1).ToString()); 17AssertEx.Equal("System_Runtime_CompilerServices_InlineArrayAttribute", ((ExtendedSpecialType)SpecialType.Count).ToString()); 18AssertEx.Equal("System_ReadOnlySpan_T", ((ExtendedSpecialType)InternalSpecialType.First).ToString()); 19AssertEx.Equal("System_ReadOnlySpan_T", ((ExtendedSpecialType)InternalSpecialType.System_ReadOnlySpan_T).ToString()); 20AssertEx.Equal("System_Runtime_InteropServices_ExtendedLayoutKind", ((ExtendedSpecialType)(InternalSpecialType.NextAvailable - 1)).ToString()); 21AssertEx.Equal("60", ((ExtendedSpecialType)InternalSpecialType.NextAvailable).ToString());