296 references to PrimitiveTypeCode
Microsoft.CodeAnalysis (265)
CodeGen\ILBuilderConversions.cs (113)
14
public void EmitNumericConversion(Microsoft.Cci.
PrimitiveTypeCode
fromPredefTypeKind, Microsoft.Cci.
PrimitiveTypeCode
toPredefTypeKind, bool @checked)
20
case Microsoft.Cci.
PrimitiveTypeCode
.Int8:
23
case Microsoft.Cci.
PrimitiveTypeCode
.Int8:
34
case Microsoft.Cci.
PrimitiveTypeCode
.UInt8:
37
case Microsoft.Cci.
PrimitiveTypeCode
.UInt8:
48
case Microsoft.Cci.
PrimitiveTypeCode
.Int16:
51
case Microsoft.Cci.
PrimitiveTypeCode
.Int8:
52
case Microsoft.Cci.
PrimitiveTypeCode
.UInt8:
53
case Microsoft.Cci.
PrimitiveTypeCode
.Int16:
64
case Microsoft.Cci.
PrimitiveTypeCode
.Char:
65
case Microsoft.Cci.
PrimitiveTypeCode
.UInt16:
68
case Microsoft.Cci.
PrimitiveTypeCode
.UInt8:
69
case Microsoft.Cci.
PrimitiveTypeCode
.UInt16:
70
case Microsoft.Cci.
PrimitiveTypeCode
.Char:
81
case Microsoft.Cci.
PrimitiveTypeCode
.Int32:
84
case Microsoft.Cci.
PrimitiveTypeCode
.Int8:
85
case Microsoft.Cci.
PrimitiveTypeCode
.UInt8:
86
case Microsoft.Cci.
PrimitiveTypeCode
.Int16:
87
case Microsoft.Cci.
PrimitiveTypeCode
.UInt16:
88
case Microsoft.Cci.
PrimitiveTypeCode
.Int32:
89
case Microsoft.Cci.
PrimitiveTypeCode
.Char:
91
case Microsoft.Cci.
PrimitiveTypeCode
.UInt32:
104
case Microsoft.Cci.
PrimitiveTypeCode
.UInt32:
107
case Microsoft.Cci.
PrimitiveTypeCode
.UInt8:
108
case Microsoft.Cci.
PrimitiveTypeCode
.UInt16:
109
case Microsoft.Cci.
PrimitiveTypeCode
.UInt32:
110
case Microsoft.Cci.
PrimitiveTypeCode
.Char:
112
case Microsoft.Cci.
PrimitiveTypeCode
.Int8:
113
case Microsoft.Cci.
PrimitiveTypeCode
.Int16:
114
case Microsoft.Cci.
PrimitiveTypeCode
.Int32:
127
case Microsoft.Cci.
PrimitiveTypeCode
.IntPtr:
130
case Microsoft.Cci.
PrimitiveTypeCode
.IntPtr:
131
case Microsoft.Cci.
PrimitiveTypeCode
.UIntPtr when !@checked:
133
case Microsoft.Cci.
PrimitiveTypeCode
.Int8:
134
case Microsoft.Cci.
PrimitiveTypeCode
.Int16:
135
case Microsoft.Cci.
PrimitiveTypeCode
.Int32:
138
case Microsoft.Cci.
PrimitiveTypeCode
.UInt8:
139
case Microsoft.Cci.
PrimitiveTypeCode
.UInt16:
140
case Microsoft.Cci.
PrimitiveTypeCode
.Char:
145
case Microsoft.Cci.
PrimitiveTypeCode
.UInt32:
152
case Microsoft.Cci.
PrimitiveTypeCode
.Pointer:
153
case Microsoft.Cci.
PrimitiveTypeCode
.FunctionPointer:
166
case Microsoft.Cci.
PrimitiveTypeCode
.UIntPtr:
169
case Microsoft.Cci.
PrimitiveTypeCode
.UIntPtr:
170
case Microsoft.Cci.
PrimitiveTypeCode
.IntPtr when !@checked:
171
case Microsoft.Cci.
PrimitiveTypeCode
.Pointer:
172
case Microsoft.Cci.
PrimitiveTypeCode
.FunctionPointer:
174
case Microsoft.Cci.
PrimitiveTypeCode
.UInt8:
175
case Microsoft.Cci.
PrimitiveTypeCode
.UInt16:
176
case Microsoft.Cci.
PrimitiveTypeCode
.UInt32:
177
case Microsoft.Cci.
PrimitiveTypeCode
.Char:
180
case Microsoft.Cci.
PrimitiveTypeCode
.Int8:
181
case Microsoft.Cci.
PrimitiveTypeCode
.Int16:
182
case Microsoft.Cci.
PrimitiveTypeCode
.Int32:
197
case Microsoft.Cci.
PrimitiveTypeCode
.Int64:
200
case Microsoft.Cci.
PrimitiveTypeCode
.Int64:
202
case Microsoft.Cci.
PrimitiveTypeCode
.Int8:
203
case Microsoft.Cci.
PrimitiveTypeCode
.Int16:
204
case Microsoft.Cci.
PrimitiveTypeCode
.Int32:
205
case Microsoft.Cci.
PrimitiveTypeCode
.IntPtr:
208
case Microsoft.Cci.
PrimitiveTypeCode
.UInt8:
209
case Microsoft.Cci.
PrimitiveTypeCode
.UInt16:
210
case Microsoft.Cci.
PrimitiveTypeCode
.UInt32:
211
case Microsoft.Cci.
PrimitiveTypeCode
.Char:
214
case Microsoft.Cci.
PrimitiveTypeCode
.Pointer:
215
case Microsoft.Cci.
PrimitiveTypeCode
.FunctionPointer:
216
case Microsoft.Cci.
PrimitiveTypeCode
.UIntPtr:
222
case Microsoft.Cci.
PrimitiveTypeCode
.UInt64:
236
case Microsoft.Cci.
PrimitiveTypeCode
.UInt64:
239
case Microsoft.Cci.
PrimitiveTypeCode
.UInt64:
241
case Microsoft.Cci.
PrimitiveTypeCode
.UInt8:
242
case Microsoft.Cci.
PrimitiveTypeCode
.UInt16:
243
case Microsoft.Cci.
PrimitiveTypeCode
.UInt32:
244
case Microsoft.Cci.
PrimitiveTypeCode
.Pointer:
245
case Microsoft.Cci.
PrimitiveTypeCode
.FunctionPointer:
246
case Microsoft.Cci.
PrimitiveTypeCode
.UIntPtr:
247
case Microsoft.Cci.
PrimitiveTypeCode
.Char:
250
case Microsoft.Cci.
PrimitiveTypeCode
.Int8:
251
case Microsoft.Cci.
PrimitiveTypeCode
.Int16:
252
case Microsoft.Cci.
PrimitiveTypeCode
.Int32:
253
case Microsoft.Cci.
PrimitiveTypeCode
.IntPtr:
259
case Microsoft.Cci.
PrimitiveTypeCode
.Int64:
273
case Microsoft.Cci.
PrimitiveTypeCode
.Float32:
276
case Microsoft.Cci.
PrimitiveTypeCode
.UInt32:
277
case Microsoft.Cci.
PrimitiveTypeCode
.UInt64:
278
case Microsoft.Cci.
PrimitiveTypeCode
.UIntPtr:
285
case Microsoft.Cci.
PrimitiveTypeCode
.Float64:
288
case Microsoft.Cci.
PrimitiveTypeCode
.UInt32:
289
case Microsoft.Cci.
PrimitiveTypeCode
.UInt64:
290
case Microsoft.Cci.
PrimitiveTypeCode
.UIntPtr:
297
case Microsoft.Cci.
PrimitiveTypeCode
.Pointer:
298
case Microsoft.Cci.
PrimitiveTypeCode
.FunctionPointer:
303
case Microsoft.Cci.
PrimitiveTypeCode
.UInt8:
304
case Microsoft.Cci.
PrimitiveTypeCode
.UInt16:
305
case Microsoft.Cci.
PrimitiveTypeCode
.UInt32:
308
case Microsoft.Cci.
PrimitiveTypeCode
.UInt64:
311
case Microsoft.Cci.
PrimitiveTypeCode
.Int8:
312
case Microsoft.Cci.
PrimitiveTypeCode
.Int16:
313
case Microsoft.Cci.
PrimitiveTypeCode
.Int32:
314
case Microsoft.Cci.
PrimitiveTypeCode
.Int64:
317
case Microsoft.Cci.
PrimitiveTypeCode
.IntPtr:
320
case Microsoft.Cci.
PrimitiveTypeCode
.UIntPtr:
330
case Microsoft.Cci.
PrimitiveTypeCode
.UInt8:
331
case Microsoft.Cci.
PrimitiveTypeCode
.UInt16:
332
case Microsoft.Cci.
PrimitiveTypeCode
.UInt32:
333
case Microsoft.Cci.
PrimitiveTypeCode
.UInt64:
334
case Microsoft.Cci.
PrimitiveTypeCode
.Int64:
337
case Microsoft.Cci.
PrimitiveTypeCode
.Int8:
338
case Microsoft.Cci.
PrimitiveTypeCode
.Int16:
339
case Microsoft.Cci.
PrimitiveTypeCode
.Int32:
344
case Microsoft.Cci.
PrimitiveTypeCode
.IntPtr:
345
case Microsoft.Cci.
PrimitiveTypeCode
.UIntPtr:
CodeGen\ILBuilderEmit.cs (2)
264
Cci.
PrimitiveTypeCode
keyTypeCode)
267
Debug.Assert(keyTypeCode != Cci.
PrimitiveTypeCode
.String);
CodeGen\PrivateImplementationDetails.cs (12)
196
Cci.
PrimitiveTypeCode
typeCode = arrayType.GetElementType(emitContext).TypeCode;
198
Cci.
PrimitiveTypeCode
.Int16 or Cci.
PrimitiveTypeCode
.UInt16 or Cci.
PrimitiveTypeCode
.Char or
199
Cci.
PrimitiveTypeCode
.Int32 or Cci.
PrimitiveTypeCode
.UInt32 or Cci.
PrimitiveTypeCode
.Float32 or
200
Cci.
PrimitiveTypeCode
.Int64 or Cci.
PrimitiveTypeCode
.UInt64 or Cci.
PrimitiveTypeCode
.Float64);
218
Cci.
PrimitiveTypeCode
typeCode = arrayType.GetElementType(emitContext).TypeCode;
219
Debug.Assert(typeCode is not Cci.
PrimitiveTypeCode
.Reference);
CodeGen\SwitchIntegralJumpTableEmitter.cs (3)
30
private readonly Cci.
PrimitiveTypeCode
_keyTypeCode;
53
Cci.
PrimitiveTypeCode
keyTypeCode,
532
_builder.EmitNumericConversion(_keyTypeCode, Microsoft.Cci.
PrimitiveTypeCode
.UInt32, false);
CodeGen\SwitchStringJumpTableEmitter.cs (1)
153
keyTypeCode: Cci.
PrimitiveTypeCode
.UInt32,
Emit\EditAndContinue\DeletedSourceGenericParameter.cs (1)
43
public Cci.
PrimitiveTypeCode
TypeCode => OldDefinition.TypeCode;
Emit\EditAndContinue\DeletedSourceTypeDefinition.cs (1)
71
public Cci.
PrimitiveTypeCode
TypeCode => OldDefinition.TypeCode;
Emit\ErrorType.cs (2)
89
Cci.
PrimitiveTypeCode
Cci.ITypeReference.TypeCode
93
return Cci.
PrimitiveTypeCode
.NotPrimitive;
Emit\NoPia\CommonEmbeddedType.cs (2)
584
Cci.
PrimitiveTypeCode
Cci.ITypeReference.TypeCode
588
return Cci.
PrimitiveTypeCode
.NotPrimitive;
Emit\NoPia\CommonEmbeddedTypeParameter.cs (2)
145
Cci.
PrimitiveTypeCode
Cci.ITypeReference.TypeCode
149
return Cci.
PrimitiveTypeCode
.NotPrimitive;
MetadataReader\MetadataDecoder.cs (2)
2336
(GetPrimitiveTypeCode(signature2[0].Type) != Cci.
PrimitiveTypeCode
.Void))
2378
if (GetPrimitiveTypeCode(methodParams[0].Type) != Cci.
PrimitiveTypeCode
.Void)
MetadataReader\SymbolFactory.cs (1)
48
internal abstract Cci.
PrimitiveTypeCode
GetPrimitiveTypeCode(ModuleSymbol moduleSymbol, TypeSymbol type);
MetadataReader\TypeNameDecoder.cs (1)
100
protected Microsoft.Cci.
PrimitiveTypeCode
GetPrimitiveTypeCode(TypeSymbol type)
PEWriter\InheritedTypeParameter.cs (2)
239
public
PrimitiveTypeCode
TypeCode
241
get { return
PrimitiveTypeCode
.NotPrimitive; }
PEWriter\MetadataWriter.cs (37)
3834
var
primitiveType = typeReference.TypeCode;
3837
case
PrimitiveTypeCode
.Pointer:
3838
case
PrimitiveTypeCode
.FunctionPointer:
3839
case
PrimitiveTypeCode
.NotPrimitive:
3933
private static void SerializePrimitiveType(SignatureTypeEncoder encoder,
PrimitiveTypeCode
primitiveType)
3937
case
PrimitiveTypeCode
.Boolean:
3941
case
PrimitiveTypeCode
.UInt8:
3945
case
PrimitiveTypeCode
.Int8:
3949
case
PrimitiveTypeCode
.Char:
3953
case
PrimitiveTypeCode
.Int16:
3957
case
PrimitiveTypeCode
.UInt16:
3961
case
PrimitiveTypeCode
.Int32:
3965
case
PrimitiveTypeCode
.UInt32:
3969
case
PrimitiveTypeCode
.Int64:
3973
case
PrimitiveTypeCode
.UInt64:
3977
case
PrimitiveTypeCode
.Float32:
3981
case
PrimitiveTypeCode
.Float64:
3985
case
PrimitiveTypeCode
.IntPtr:
3989
case
PrimitiveTypeCode
.UIntPtr:
3993
case
PrimitiveTypeCode
.String:
3997
case
PrimitiveTypeCode
.Void:
4038
var
primitiveType = typeReference.TypeCode;
4039
if (primitiveType !=
PrimitiveTypeCode
.NotPrimitive)
4054
private static void SerializePrimitiveType(CustomAttributeElementTypeEncoder encoder,
PrimitiveTypeCode
primitiveType)
4058
case
PrimitiveTypeCode
.Boolean:
4062
case
PrimitiveTypeCode
.UInt8:
4066
case
PrimitiveTypeCode
.Int8:
4070
case
PrimitiveTypeCode
.Char:
4074
case
PrimitiveTypeCode
.Int16:
4078
case
PrimitiveTypeCode
.UInt16:
4082
case
PrimitiveTypeCode
.Int32:
4086
case
PrimitiveTypeCode
.UInt32:
4090
case
PrimitiveTypeCode
.Int64:
4094
case
PrimitiveTypeCode
.UInt64:
4098
case
PrimitiveTypeCode
.Float32:
4102
case
PrimitiveTypeCode
.Float64:
4106
case
PrimitiveTypeCode
.String:
PEWriter\MetadataWriter.PortablePdb.cs (2)
181
var
typeCode = type.TypeCode;
200
else if (typeCode ==
PrimitiveTypeCode
.String)
PEWriter\ModifiedTypeReference.cs (2)
60
PrimitiveTypeCode
ITypeReference.TypeCode
62
get { return
PrimitiveTypeCode
.NotPrimitive; }
PEWriter\ReferenceIndexerBase.cs (2)
200
if (!this.typeReferenceNeedsToken && namespaceTypeReference.TypeCode !=
PrimitiveTypeCode
.NotPrimitive)
437
(typeReference.TypeCode ==
PrimitiveTypeCode
.NotPrimitive && typeReference.AsNamespaceTypeReference != null))
PEWriter\RootModuleType.cs (1)
236
PrimitiveTypeCode
ITypeReference.TypeCode
PEWriter\Types.cs (1)
629
PrimitiveTypeCode
TypeCode { get; }
PrimitiveTypeCodeExtensions.cs (37)
11
public static bool Is64BitIntegral(this Cci.
PrimitiveTypeCode
kind)
15
case Cci.
PrimitiveTypeCode
.Int64:
16
case Cci.
PrimitiveTypeCode
.UInt64:
23
public static bool IsSigned(this Cci.
PrimitiveTypeCode
kind)
27
case Cci.
PrimitiveTypeCode
.Int8:
28
case Cci.
PrimitiveTypeCode
.Int16:
29
case Cci.
PrimitiveTypeCode
.Int32:
30
case Cci.
PrimitiveTypeCode
.Int64:
31
case Cci.
PrimitiveTypeCode
.IntPtr:
32
case Cci.
PrimitiveTypeCode
.Float32:
33
case Cci.
PrimitiveTypeCode
.Float64:
40
public static bool IsUnsigned(this Cci.
PrimitiveTypeCode
kind)
44
case Cci.
PrimitiveTypeCode
.UInt8:
45
case Cci.
PrimitiveTypeCode
.UInt16:
46
case Cci.
PrimitiveTypeCode
.UInt32:
47
case Cci.
PrimitiveTypeCode
.UInt64:
48
case Cci.
PrimitiveTypeCode
.UIntPtr:
49
case Cci.
PrimitiveTypeCode
.Char:
50
case Cci.
PrimitiveTypeCode
.Pointer:
51
case Cci.
PrimitiveTypeCode
.FunctionPointer:
58
public static bool IsFloatingPoint(this Cci.
PrimitiveTypeCode
kind)
62
case Cci.
PrimitiveTypeCode
.Float32:
63
case Cci.
PrimitiveTypeCode
.Float64:
70
public static ConstantValueTypeDiscriminator GetConstantValueTypeDiscriminator(this Cci.
PrimitiveTypeCode
type)
74
case Cci.
PrimitiveTypeCode
.Int8: return ConstantValueTypeDiscriminator.SByte;
75
case Cci.
PrimitiveTypeCode
.UInt8: return ConstantValueTypeDiscriminator.Byte;
76
case Cci.
PrimitiveTypeCode
.Int16: return ConstantValueTypeDiscriminator.Int16;
77
case Cci.
PrimitiveTypeCode
.UInt16: return ConstantValueTypeDiscriminator.UInt16;
78
case Cci.
PrimitiveTypeCode
.Int32: return ConstantValueTypeDiscriminator.Int32;
79
case Cci.
PrimitiveTypeCode
.UInt32: return ConstantValueTypeDiscriminator.UInt32;
80
case Cci.
PrimitiveTypeCode
.Int64: return ConstantValueTypeDiscriminator.Int64;
81
case Cci.
PrimitiveTypeCode
.UInt64: return ConstantValueTypeDiscriminator.UInt64;
82
case Cci.
PrimitiveTypeCode
.Char: return ConstantValueTypeDiscriminator.Char;
83
case Cci.
PrimitiveTypeCode
.Boolean: return ConstantValueTypeDiscriminator.Boolean;
84
case Cci.
PrimitiveTypeCode
.Float32: return ConstantValueTypeDiscriminator.Single;
85
case Cci.
PrimitiveTypeCode
.Float64: return ConstantValueTypeDiscriminator.Double;
86
case Cci.
PrimitiveTypeCode
.String: return ConstantValueTypeDiscriminator.String;
SpecialTypes.cs (38)
82
private static readonly Microsoft.Cci.
PrimitiveTypeCode
[] s_typeIdToTypeCodeMap;
99
s_typeIdToTypeCodeMap = new Microsoft.Cci.
PrimitiveTypeCode
[(int)SpecialType.Count + 1];
103
s_typeIdToTypeCodeMap[i] = Microsoft.Cci.
PrimitiveTypeCode
.NotPrimitive;
106
s_typeIdToTypeCodeMap[(int)SpecialType.System_Boolean] = Microsoft.Cci.
PrimitiveTypeCode
.Boolean;
107
s_typeIdToTypeCodeMap[(int)SpecialType.System_Char] = Microsoft.Cci.
PrimitiveTypeCode
.Char;
108
s_typeIdToTypeCodeMap[(int)SpecialType.System_Void] = Microsoft.Cci.
PrimitiveTypeCode
.Void;
109
s_typeIdToTypeCodeMap[(int)SpecialType.System_String] = Microsoft.Cci.
PrimitiveTypeCode
.String;
110
s_typeIdToTypeCodeMap[(int)SpecialType.System_Int64] = Microsoft.Cci.
PrimitiveTypeCode
.Int64;
111
s_typeIdToTypeCodeMap[(int)SpecialType.System_Int32] = Microsoft.Cci.
PrimitiveTypeCode
.Int32;
112
s_typeIdToTypeCodeMap[(int)SpecialType.System_Int16] = Microsoft.Cci.
PrimitiveTypeCode
.Int16;
113
s_typeIdToTypeCodeMap[(int)SpecialType.System_SByte] = Microsoft.Cci.
PrimitiveTypeCode
.Int8;
114
s_typeIdToTypeCodeMap[(int)SpecialType.System_UInt64] = Microsoft.Cci.
PrimitiveTypeCode
.UInt64;
115
s_typeIdToTypeCodeMap[(int)SpecialType.System_UInt32] = Microsoft.Cci.
PrimitiveTypeCode
.UInt32;
116
s_typeIdToTypeCodeMap[(int)SpecialType.System_UInt16] = Microsoft.Cci.
PrimitiveTypeCode
.UInt16;
117
s_typeIdToTypeCodeMap[(int)SpecialType.System_Byte] = Microsoft.Cci.
PrimitiveTypeCode
.UInt8;
118
s_typeIdToTypeCodeMap[(int)SpecialType.System_Single] = Microsoft.Cci.
PrimitiveTypeCode
.Float32;
119
s_typeIdToTypeCodeMap[(int)SpecialType.System_Double] = Microsoft.Cci.
PrimitiveTypeCode
.Float64;
120
s_typeIdToTypeCodeMap[(int)SpecialType.System_IntPtr] = Microsoft.Cci.
PrimitiveTypeCode
.IntPtr;
121
s_typeIdToTypeCodeMap[(int)SpecialType.System_UIntPtr] = Microsoft.Cci.
PrimitiveTypeCode
.UIntPtr;
123
s_typeCodeToTypeIdMap = new SpecialType[(int)Microsoft.Cci.
PrimitiveTypeCode
.Invalid + 1];
130
s_typeCodeToTypeIdMap[(int)Microsoft.Cci.
PrimitiveTypeCode
.Boolean] = SpecialType.System_Boolean;
131
s_typeCodeToTypeIdMap[(int)Microsoft.Cci.
PrimitiveTypeCode
.Char] = SpecialType.System_Char;
132
s_typeCodeToTypeIdMap[(int)Microsoft.Cci.
PrimitiveTypeCode
.Void] = SpecialType.System_Void;
133
s_typeCodeToTypeIdMap[(int)Microsoft.Cci.
PrimitiveTypeCode
.String] = SpecialType.System_String;
134
s_typeCodeToTypeIdMap[(int)Microsoft.Cci.
PrimitiveTypeCode
.Int64] = SpecialType.System_Int64;
135
s_typeCodeToTypeIdMap[(int)Microsoft.Cci.
PrimitiveTypeCode
.Int32] = SpecialType.System_Int32;
136
s_typeCodeToTypeIdMap[(int)Microsoft.Cci.
PrimitiveTypeCode
.Int16] = SpecialType.System_Int16;
137
s_typeCodeToTypeIdMap[(int)Microsoft.Cci.
PrimitiveTypeCode
.Int8] = SpecialType.System_SByte;
138
s_typeCodeToTypeIdMap[(int)Microsoft.Cci.
PrimitiveTypeCode
.UInt64] = SpecialType.System_UInt64;
139
s_typeCodeToTypeIdMap[(int)Microsoft.Cci.
PrimitiveTypeCode
.UInt32] = SpecialType.System_UInt32;
140
s_typeCodeToTypeIdMap[(int)Microsoft.Cci.
PrimitiveTypeCode
.UInt16] = SpecialType.System_UInt16;
141
s_typeCodeToTypeIdMap[(int)Microsoft.Cci.
PrimitiveTypeCode
.UInt8] = SpecialType.System_Byte;
142
s_typeCodeToTypeIdMap[(int)Microsoft.Cci.
PrimitiveTypeCode
.Float32] = SpecialType.System_Single;
143
s_typeCodeToTypeIdMap[(int)Microsoft.Cci.
PrimitiveTypeCode
.Float64] = SpecialType.System_Double;
144
s_typeCodeToTypeIdMap[(int)Microsoft.Cci.
PrimitiveTypeCode
.IntPtr] = SpecialType.System_IntPtr;
145
s_typeCodeToTypeIdMap[(int)Microsoft.Cci.
PrimitiveTypeCode
.UIntPtr] = SpecialType.System_UIntPtr;
168
public static SpecialType GetTypeFromMetadataName(Microsoft.Cci.
PrimitiveTypeCode
typeCode)
173
public static Microsoft.Cci.
PrimitiveTypeCode
GetTypeCode(SpecialType typeId)
Microsoft.CodeAnalysis.VisualBasic (31)
CodeGen\EmitConversion.vb (31)
18
Case
PrimitiveTypeCode
.Boolean,
19
PrimitiveTypeCode
.Float32,
20
PrimitiveTypeCode
.Float64,
21
PrimitiveTypeCode
.Int16,
22
PrimitiveTypeCode
.Int32,
23
PrimitiveTypeCode
.Int64,
24
PrimitiveTypeCode
.Int8,
25
PrimitiveTypeCode
.UInt16,
26
PrimitiveTypeCode
.UInt32,
27
PrimitiveTypeCode
.UInt64,
28
PrimitiveTypeCode
.UInt8
40
Case
PrimitiveTypeCode
.Int8,
41
PrimitiveTypeCode
.UInt8,
42
PrimitiveTypeCode
.Int16,
43
PrimitiveTypeCode
.UInt16,
44
PrimitiveTypeCode
.Int32,
45
PrimitiveTypeCode
.UInt32,
46
PrimitiveTypeCode
.Int64,
47
PrimitiveTypeCode
.UInt64
59
Debug.Assert((IsSimpleType(underlyingFrom) AndAlso IsSimpleType(underlyingTo)) OrElse (underlyingFrom =
PrimitiveTypeCode
.Char AndAlso underlyingTo =
PrimitiveTypeCode
.Int32))
70
underlyingFrom <>
PrimitiveTypeCode
.Float32 AndAlso
71
underlyingFrom <>
PrimitiveTypeCode
.Float64 Then
76
If underlyingTo =
PrimitiveTypeCode
.Boolean Then
93
If underlyingFrom =
PrimitiveTypeCode
.Boolean Then
99
If underlyingTo <>
PrimitiveTypeCode
.Int32 Then
102
_builder.EmitNumericConversion(
PrimitiveTypeCode
.Int32, underlyingTo, checked:=False)
110
If underlyingFrom =
PrimitiveTypeCode
.Float32 AndAlso IsIntegral(underlyingTo) Then
145
Debug.Assert(IsIntegral(typeFrom) OrElse typeFrom.IsFloatingPoint() OrElse typeFrom =
PrimitiveTypeCode
.Char)
171
(underlyingFrom =
PrimitiveTypeCode
.Char AndAlso underlyingTo =
PrimitiveTypeCode
.Int32) Then ' Allow AscW optimization.