41 references to PredefinedType
Microsoft.CodeAnalysis.Extensions.Package (41)
Symbols\PredefinedTypeExtensions.cs (41)
13public static SpecialType ToSpecialType(this PredefinedType predefinedType)
16PredefinedType.Object => SpecialType.System_Object,
17PredefinedType.Void => SpecialType.System_Void,
18PredefinedType.Boolean => SpecialType.System_Boolean,
19PredefinedType.Char => SpecialType.System_Char,
20PredefinedType.SByte => SpecialType.System_SByte,
21PredefinedType.Byte => SpecialType.System_Byte,
22PredefinedType.Int16 => SpecialType.System_Int16,
23PredefinedType.UInt16 => SpecialType.System_UInt16,
24PredefinedType.Int32 => SpecialType.System_Int32,
25PredefinedType.UInt32 => SpecialType.System_UInt32,
26PredefinedType.Int64 => SpecialType.System_Int64,
27PredefinedType.UInt64 => SpecialType.System_UInt64,
28PredefinedType.Decimal => SpecialType.System_Decimal,
29PredefinedType.Single => SpecialType.System_Single,
30PredefinedType.Double => SpecialType.System_Double,
31PredefinedType.String => SpecialType.System_String,
32PredefinedType.DateTime => SpecialType.System_DateTime,
33PredefinedType.IntPtr => SpecialType.System_IntPtr,
34PredefinedType.UIntPtr => SpecialType.System_UIntPtr,
38public static PredefinedType ToPredefinedType(this SpecialType specialType)
41SpecialType.System_Object => PredefinedType.Object,
42SpecialType.System_Void => PredefinedType.Void,
43SpecialType.System_Boolean => PredefinedType.Boolean,
44SpecialType.System_Char => PredefinedType.Char,
45SpecialType.System_SByte => PredefinedType.SByte,
46SpecialType.System_Byte => PredefinedType.Byte,
47SpecialType.System_Int16 => PredefinedType.Int16,
48SpecialType.System_UInt16 => PredefinedType.UInt16,
49SpecialType.System_Int32 => PredefinedType.Int32,
50SpecialType.System_UInt32 => PredefinedType.UInt32,
51SpecialType.System_Int64 => PredefinedType.Int64,
52SpecialType.System_UInt64 => PredefinedType.UInt64,
53SpecialType.System_Decimal => PredefinedType.Decimal,
54SpecialType.System_Single => PredefinedType.Single,
55SpecialType.System_Double => PredefinedType.Double,
56SpecialType.System_String => PredefinedType.String,
57SpecialType.System_DateTime => PredefinedType.DateTime,
58SpecialType.System_IntPtr => PredefinedType.IntPtr,
59SpecialType.System_UIntPtr => PredefinedType.UIntPtr,
60_ => PredefinedType.None,