90 references to PrimitiveTypeCode
Microsoft.Cci.Extensions (21)
Extensions\CustomAttributeProvider.cs (21)
7
using SRPrimitiveTypeCode = System.Reflection.Metadata.
PrimitiveTypeCode
;
29
public string GetPrimitiveType(
SRPrimitiveTypeCode
typeCode)
33
case
SRPrimitiveTypeCode
.Boolean:
36
case
SRPrimitiveTypeCode
.Byte:
39
case
SRPrimitiveTypeCode
.Char:
42
case
SRPrimitiveTypeCode
.Double:
45
case
SRPrimitiveTypeCode
.Int16:
48
case
SRPrimitiveTypeCode
.Int32:
51
case
SRPrimitiveTypeCode
.Int64:
54
case
SRPrimitiveTypeCode
.IntPtr:
57
case
SRPrimitiveTypeCode
.Object:
60
case
SRPrimitiveTypeCode
.SByte:
63
case
SRPrimitiveTypeCode
.Single:
66
case
SRPrimitiveTypeCode
.String:
69
case
SRPrimitiveTypeCode
.TypedReference:
72
case
SRPrimitiveTypeCode
.UInt16:
75
case
SRPrimitiveTypeCode
.UInt32:
78
case
SRPrimitiveTypeCode
.UInt64:
81
case
SRPrimitiveTypeCode
.UIntPtr:
84
case
SRPrimitiveTypeCode
.Void:
97
public
SRPrimitiveTypeCode
GetUnderlyingEnumType(string type) => default; // We only use this for compiler attributes that take a primitive type as a parameter.
Microsoft.CodeAnalysis (1)
PEWriter\MetadataWriter.cs (1)
4001
encoder.Builder.WriteByte((byte)System.Reflection.Metadata.
PrimitiveTypeCode
.Void);
Microsoft.CodeAnalysis.Test.Utilities (1)
Metadata\MetadataReaderUtils.cs (1)
436
public string GetPrimitiveType(
PrimitiveTypeCode
typeCode)
Microsoft.CodeAnalysis.Workspaces (2)
FindSymbols\SymbolTree\SymbolTreeInfo.FirstEntityHandleProvider.cs (1)
59
public EntityHandle GetPrimitiveType(
PrimitiveTypeCode
typeCode) => default;
FindSymbols\SymbolTree\SymbolTreeInfo.Node.cs (1)
119
public ParameterTypeInfo GetPrimitiveType(
PrimitiveTypeCode
typeCode)
Microsoft.DotNet.SignTool (2)
src\Configuration.cs (2)
653
public object GetPrimitiveType(
PrimitiveTypeCode
typeCode) => null;
659
public
PrimitiveTypeCode
GetUnderlyingEnumType(object type) => default;
System.Reflection.Metadata (27)
System\Reflection\Metadata\Decoding\ICustomAttributeTypeProvider.cs (1)
29
PrimitiveTypeCode
GetUnderlyingEnumType(TType type);
System\Reflection\Metadata\Decoding\ISimpleTypeProvider.cs (1)
11
TType GetPrimitiveType(
PrimitiveTypeCode
typeCode);
System\Reflection\Metadata\Ecma335\CustomAttributeDecoder.cs (4)
185
info.Type = _provider.GetPrimitiveType((
PrimitiveTypeCode
)signatureTypeCode);
190
info.Type = _provider.GetPrimitiveType(
PrimitiveTypeCode
.Object);
263
info.Type = _provider.GetPrimitiveType((
PrimitiveTypeCode
)info.TypeCode);
271
info.Type = _provider.GetPrimitiveType(
PrimitiveTypeCode
.Object);
System\Reflection\Metadata\Ecma335\Encoding\BlobEncoders.cs (20)
989
/// <param name="type">Any primitive type code except for <see cref="
PrimitiveTypeCode
.Void"/>.</param>
991
public void PrimitiveType(
PrimitiveTypeCode
type)
995
case
PrimitiveTypeCode
.Boolean:
996
case
PrimitiveTypeCode
.Byte:
997
case
PrimitiveTypeCode
.SByte:
998
case
PrimitiveTypeCode
.Char:
999
case
PrimitiveTypeCode
.Int16:
1000
case
PrimitiveTypeCode
.UInt16:
1001
case
PrimitiveTypeCode
.Int32:
1002
case
PrimitiveTypeCode
.UInt32:
1003
case
PrimitiveTypeCode
.Int64:
1004
case
PrimitiveTypeCode
.UInt64:
1005
case
PrimitiveTypeCode
.Single:
1006
case
PrimitiveTypeCode
.Double:
1007
case
PrimitiveTypeCode
.TypedReference:
1008
case
PrimitiveTypeCode
.IntPtr:
1009
case
PrimitiveTypeCode
.UIntPtr:
1010
case
PrimitiveTypeCode
.String:
1011
case
PrimitiveTypeCode
.Object:
1015
case
PrimitiveTypeCode
.Void:
System\Reflection\Metadata\Ecma335\SignatureDecoder.cs (1)
83
return _provider.GetPrimitiveType((
PrimitiveTypeCode
)typeCode);
System.Reflection.MetadataLoadContext (36)
System\Reflection\TypeLoading\General\Ecma\EcmaHelpers.cs (32)
31
public static CoreType ToCoreType(this
PrimitiveTypeCode
typeCode)
35
case
PrimitiveTypeCode
.Boolean: return CoreType.Boolean;
36
case
PrimitiveTypeCode
.Byte: return CoreType.Byte;
37
case
PrimitiveTypeCode
.Char: return CoreType.Char;
38
case
PrimitiveTypeCode
.Double: return CoreType.Double;
39
case
PrimitiveTypeCode
.Int16: return CoreType.Int16;
40
case
PrimitiveTypeCode
.Int32: return CoreType.Int32;
41
case
PrimitiveTypeCode
.Int64: return CoreType.Int64;
42
case
PrimitiveTypeCode
.IntPtr: return CoreType.IntPtr;
43
case
PrimitiveTypeCode
.Object: return CoreType.Object;
44
case
PrimitiveTypeCode
.SByte: return CoreType.SByte;
45
case
PrimitiveTypeCode
.Single: return CoreType.Single;
46
case
PrimitiveTypeCode
.String: return CoreType.String;
47
case
PrimitiveTypeCode
.TypedReference: return CoreType.TypedReference;
48
case
PrimitiveTypeCode
.UInt16: return CoreType.UInt16;
49
case
PrimitiveTypeCode
.UInt32: return CoreType.UInt32;
50
case
PrimitiveTypeCode
.UInt64: return CoreType.UInt64;
51
case
PrimitiveTypeCode
.UIntPtr: return CoreType.UIntPtr;
52
case
PrimitiveTypeCode
.Void: return CoreType.Void;
59
public static
PrimitiveTypeCode
GetEnumUnderlyingPrimitiveTypeCode(this Type enumType, MetadataLoadContext loader)
64
if (type == coreTypes[CoreType.Boolean]) return
PrimitiveTypeCode
.Boolean;
65
if (type == coreTypes[CoreType.Char]) return
PrimitiveTypeCode
.Char;
66
if (type == coreTypes[CoreType.Byte]) return
PrimitiveTypeCode
.Byte;
67
if (type == coreTypes[CoreType.Int16]) return
PrimitiveTypeCode
.Int16;
68
if (type == coreTypes[CoreType.Int32]) return
PrimitiveTypeCode
.Int32;
69
if (type == coreTypes[CoreType.Int64]) return
PrimitiveTypeCode
.Int64;
70
if (type == coreTypes[CoreType.IntPtr]) return
PrimitiveTypeCode
.IntPtr;
71
if (type == coreTypes[CoreType.SByte]) return
PrimitiveTypeCode
.SByte;
72
if (type == coreTypes[CoreType.UInt16]) return
PrimitiveTypeCode
.UInt16;
73
if (type == coreTypes[CoreType.UInt32]) return
PrimitiveTypeCode
.UInt32;
74
if (type == coreTypes[CoreType.UInt64]) return
PrimitiveTypeCode
.UInt64;
75
if (type == coreTypes[CoreType.UIntPtr]) return
PrimitiveTypeCode
.UIntPtr;
System\Reflection\TypeLoading\General\Ecma\EcmaSignatureTypeProviderForToString.cs (1)
77
public string GetPrimitiveType(
PrimitiveTypeCode
typeCode)
System\Reflection\TypeLoading\General\Ecma\EcmaWrappedTypeProvider.cs (1)
60
public RoType GetPrimitiveType(
PrimitiveTypeCode
typeCode) => _typeProvider.GetPrimitiveType(typeCode);
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.TypeProvider.cs (2)
58
public RoType GetPrimitiveType(
PrimitiveTypeCode
typeCode) => Loader.GetCoreType(typeCode.ToCoreType());
65
public
PrimitiveTypeCode
GetUnderlyingEnumType(RoType type) => type.GetEnumUnderlyingPrimitiveTypeCode(Loader);