3 instantiations of ExtendedSpecialType
Microsoft.CodeAnalysis (3)
ExtendedSpecialType.cs (3)
25
public static implicit operator ExtendedSpecialType(SpecialType value) => new
ExtendedSpecialType
((int)value);
28
public static implicit operator ExtendedSpecialType(InternalSpecialType value) => new
ExtendedSpecialType
((int)value);
30
public static explicit operator ExtendedSpecialType(int value) => new
ExtendedSpecialType
(value);
63 references to ExtendedSpecialType
Microsoft.CodeAnalysis (20)
Compilation\Compilation.cs (2)
3771
internal void MakeTypeMissing(
ExtendedSpecialType
type)
3791
internal bool IsTypeMissing(
ExtendedSpecialType
type)
ExtendedSpecialType.cs (10)
25
public static implicit operator
ExtendedSpecialType
(SpecialType value) => new ExtendedSpecialType((int)value);
26
public static explicit operator SpecialType(
ExtendedSpecialType
value) => value._value < (int)InternalSpecialType.First ? (SpecialType)value._value : SpecialType.None;
28
public static implicit operator
ExtendedSpecialType
(InternalSpecialType value) => new ExtendedSpecialType((int)value);
30
public static explicit operator
ExtendedSpecialType
(int value) => new ExtendedSpecialType(value);
31
public static explicit operator int(
ExtendedSpecialType
value) => value._value;
33
public static bool operator ==(
ExtendedSpecialType
left,
ExtendedSpecialType
right) => left._value == right._value;
34
public static bool operator !=(
ExtendedSpecialType
left,
ExtendedSpecialType
right) => !(left == right);
40
case
ExtendedSpecialType
other:
MemberDescriptor.cs (2)
52
public
ExtendedSpecialType
DeclaringSpecialType
57
return (
ExtendedSpecialType
)_declaringTypeId;
SpecialTypes.cs (6)
80
private static readonly Dictionary<string,
ExtendedSpecialType
> s_nameToTypeIdMap;
87
s_nameToTypeIdMap = new Dictionary<string,
ExtendedSpecialType
>((int)InternalSpecialType.NextAvailable - 1);
96
s_nameToTypeIdMap.Add(name, (
ExtendedSpecialType
)i);
151
public static string? GetMetadataName(this
ExtendedSpecialType
id)
156
public static
ExtendedSpecialType
GetTypeFromMetadataName(string metadataName)
158
ExtendedSpecialType
id;
Microsoft.CodeAnalysis.CSharp (24)
Compilation\CSharpCompilation.cs (1)
1661
internal NamedTypeSymbol GetSpecialType(
ExtendedSpecialType
specialType)
Lowering\LocalRewriter\LocalRewriter.cs (1)
629
ExtendedSpecialType
type = descriptor.DeclaringSpecialType;
Symbols\AssemblySymbol.cs (2)
380
internal abstract NamedTypeSymbol GetDeclaredSpecialType(
ExtendedSpecialType
type);
604
internal NamedTypeSymbol GetSpecialType(
ExtendedSpecialType
type)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (2)
40
private readonly
ExtendedSpecialType
_corTypeId;
376
public override
ExtendedSpecialType
ExtendedSpecialType
Symbols\MetadataOrSourceAssemblySymbol.cs (2)
45
internal sealed override NamedTypeSymbol GetDeclaredSpecialType(
ExtendedSpecialType
type)
82
ExtendedSpecialType
typeId = corType.ExtendedSpecialType;
Symbols\MissingAssemblySymbol.cs (1)
183
internal override NamedTypeSymbol GetDeclaredSpecialType(
ExtendedSpecialType
type)
Symbols\MissingCorLibrarySymbol.cs (1)
60
internal override NamedTypeSymbol GetDeclaredSpecialType(
ExtendedSpecialType
type)
Symbols\MissingMetadataTypeSymbol.cs (5)
163
public TopLevel(ModuleSymbol module, ref MetadataTypeName fullName,
ExtendedSpecialType
specialType, DiagnosticInfo? errorInfo = null)
290
ExtendedSpecialType
typeId = default;
308
public override
ExtendedSpecialType
ExtendedSpecialType
313
return (typeId >= (int)WellKnownType.First) ? SpecialType.None : (
ExtendedSpecialType
)typeId;
437
public override
ExtendedSpecialType
ExtendedSpecialType
Symbols\NativeIntegerTypeSymbol.cs (1)
51
public override
ExtendedSpecialType
ExtendedSpecialType => _underlyingType.ExtendedSpecialType;
Symbols\Retargeting\RetargetingAssemblySymbol.cs (1)
221
internal override NamedTypeSymbol GetDeclaredSpecialType(
ExtendedSpecialType
type)
Symbols\Source\SourceMemberContainerSymbol.cs (6)
82
public
ExtendedSpecialType
ExtendedSpecialType
84
get { return (
ExtendedSpecialType
)((_flags >> SpecialTypeOffset) & SpecialTypeMask); }
119
public Flags(
ExtendedSpecialType
specialType, TypeKind typeKind, bool hasPrimaryConstructor)
254
var
specialType = access == (int)DeclarationModifiers.Public
270
private
ExtendedSpecialType
MakeExtendedSpecialType()
783
public override
ExtendedSpecialType
ExtendedSpecialType
Symbols\TypeSymbol.cs (1)
493
public virtual
ExtendedSpecialType
ExtendedSpecialType
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (10)
Symbols\CorLibrary\CorTypes.cs (8)
67
Assert.Equal((
ExtendedSpecialType
)i, t.ExtendedSpecialType);
84
Assert.Equal((
ExtendedSpecialType
)i, t.ExtendedSpecialType);
147
Assert.Equal((
ExtendedSpecialType
)i, t.ExtendedSpecialType);
166
Assert.Equal((
ExtendedSpecialType
)i, t.ExtendedSpecialType);
200
Assert.Equal((
ExtendedSpecialType
)i, t.ExtendedSpecialType);
212
Assert.Equal((
ExtendedSpecialType
)i, t.ExtendedSpecialType);
222
Assert.Equal((
ExtendedSpecialType
)SpecialType.System_Object, system_object.ExtendedSpecialType);
362
Assert.Equal((
ExtendedSpecialType
)0, model.GetTypeInfo(node).Type.GetSymbol().ExtendedSpecialType);
Symbols\Metadata\PE\LoadingFields.cs (1)
153
Assert.Equal((
ExtendedSpecialType
)InternalSpecialType.System_ReadOnlySpan_T, readOnlySpanType.ExtendedSpecialType);
Symbols\MockAssemblySymbol.cs (1)
53
internal override NamedTypeSymbol GetDeclaredSpecialType(
ExtendedSpecialType
type)
Microsoft.CodeAnalysis.UnitTests (9)
CorLibTypesTests.cs (2)
22
string name = SpecialTypes.GetMetadataName((
ExtendedSpecialType
)i);
23
Assert.Equal((
ExtendedSpecialType
)i, SpecialTypes.GetTypeFromMetadataName(name));
Symbols\SpecialTypeTests.cs (7)
15
AssertEx.Equal("0", ((
ExtendedSpecialType
)SpecialType.None).ToString());
16
AssertEx.Equal("System_Object", ((
ExtendedSpecialType
)1).ToString());
17
AssertEx.Equal("System_Runtime_CompilerServices_InlineArrayAttribute", ((
ExtendedSpecialType
)SpecialType.Count).ToString());
18
AssertEx.Equal("System_ReadOnlySpan_T", ((
ExtendedSpecialType
)InternalSpecialType.First).ToString());
19
AssertEx.Equal("System_ReadOnlySpan_T", ((
ExtendedSpecialType
)InternalSpecialType.System_ReadOnlySpan_T).ToString());
20
AssertEx.Equal("System_Reflection_MethodInfo", ((
ExtendedSpecialType
)(InternalSpecialType.NextAvailable - 1)).ToString());
21
AssertEx.Equal("52", ((
ExtendedSpecialType
)InternalSpecialType.NextAvailable).ToString());