579 references to PrimitiveTypeCode
Microsoft.CodeAnalysis (265)
CodeGen\ILBuilderConversions.cs (113)
14public void EmitNumericConversion(Microsoft.Cci.PrimitiveTypeCode fromPredefTypeKind, Microsoft.Cci.PrimitiveTypeCode toPredefTypeKind, bool @checked) 20case Microsoft.Cci.PrimitiveTypeCode.Int8: 23case Microsoft.Cci.PrimitiveTypeCode.Int8: 34case Microsoft.Cci.PrimitiveTypeCode.UInt8: 37case Microsoft.Cci.PrimitiveTypeCode.UInt8: 48case Microsoft.Cci.PrimitiveTypeCode.Int16: 51case Microsoft.Cci.PrimitiveTypeCode.Int8: 52case Microsoft.Cci.PrimitiveTypeCode.UInt8: 53case Microsoft.Cci.PrimitiveTypeCode.Int16: 64case Microsoft.Cci.PrimitiveTypeCode.Char: 65case Microsoft.Cci.PrimitiveTypeCode.UInt16: 68case Microsoft.Cci.PrimitiveTypeCode.UInt8: 69case Microsoft.Cci.PrimitiveTypeCode.UInt16: 70case Microsoft.Cci.PrimitiveTypeCode.Char: 81case Microsoft.Cci.PrimitiveTypeCode.Int32: 84case Microsoft.Cci.PrimitiveTypeCode.Int8: 85case Microsoft.Cci.PrimitiveTypeCode.UInt8: 86case Microsoft.Cci.PrimitiveTypeCode.Int16: 87case Microsoft.Cci.PrimitiveTypeCode.UInt16: 88case Microsoft.Cci.PrimitiveTypeCode.Int32: 89case Microsoft.Cci.PrimitiveTypeCode.Char: 91case Microsoft.Cci.PrimitiveTypeCode.UInt32: 104case Microsoft.Cci.PrimitiveTypeCode.UInt32: 107case Microsoft.Cci.PrimitiveTypeCode.UInt8: 108case Microsoft.Cci.PrimitiveTypeCode.UInt16: 109case Microsoft.Cci.PrimitiveTypeCode.UInt32: 110case Microsoft.Cci.PrimitiveTypeCode.Char: 112case Microsoft.Cci.PrimitiveTypeCode.Int8: 113case Microsoft.Cci.PrimitiveTypeCode.Int16: 114case Microsoft.Cci.PrimitiveTypeCode.Int32: 127case Microsoft.Cci.PrimitiveTypeCode.IntPtr: 130case Microsoft.Cci.PrimitiveTypeCode.IntPtr: 131case Microsoft.Cci.PrimitiveTypeCode.UIntPtr when !@checked: 133case Microsoft.Cci.PrimitiveTypeCode.Int8: 134case Microsoft.Cci.PrimitiveTypeCode.Int16: 135case Microsoft.Cci.PrimitiveTypeCode.Int32: 138case Microsoft.Cci.PrimitiveTypeCode.UInt8: 139case Microsoft.Cci.PrimitiveTypeCode.UInt16: 140case Microsoft.Cci.PrimitiveTypeCode.Char: 145case Microsoft.Cci.PrimitiveTypeCode.UInt32: 152case Microsoft.Cci.PrimitiveTypeCode.Pointer: 153case Microsoft.Cci.PrimitiveTypeCode.FunctionPointer: 166case Microsoft.Cci.PrimitiveTypeCode.UIntPtr: 169case Microsoft.Cci.PrimitiveTypeCode.UIntPtr: 170case Microsoft.Cci.PrimitiveTypeCode.IntPtr when !@checked: 171case Microsoft.Cci.PrimitiveTypeCode.Pointer: 172case Microsoft.Cci.PrimitiveTypeCode.FunctionPointer: 174case Microsoft.Cci.PrimitiveTypeCode.UInt8: 175case Microsoft.Cci.PrimitiveTypeCode.UInt16: 176case Microsoft.Cci.PrimitiveTypeCode.UInt32: 177case Microsoft.Cci.PrimitiveTypeCode.Char: 180case Microsoft.Cci.PrimitiveTypeCode.Int8: 181case Microsoft.Cci.PrimitiveTypeCode.Int16: 182case Microsoft.Cci.PrimitiveTypeCode.Int32: 197case Microsoft.Cci.PrimitiveTypeCode.Int64: 200case Microsoft.Cci.PrimitiveTypeCode.Int64: 202case Microsoft.Cci.PrimitiveTypeCode.Int8: 203case Microsoft.Cci.PrimitiveTypeCode.Int16: 204case Microsoft.Cci.PrimitiveTypeCode.Int32: 205case Microsoft.Cci.PrimitiveTypeCode.IntPtr: 208case Microsoft.Cci.PrimitiveTypeCode.UInt8: 209case Microsoft.Cci.PrimitiveTypeCode.UInt16: 210case Microsoft.Cci.PrimitiveTypeCode.UInt32: 211case Microsoft.Cci.PrimitiveTypeCode.Char: 214case Microsoft.Cci.PrimitiveTypeCode.Pointer: 215case Microsoft.Cci.PrimitiveTypeCode.FunctionPointer: 216case Microsoft.Cci.PrimitiveTypeCode.UIntPtr: 222case Microsoft.Cci.PrimitiveTypeCode.UInt64: 236case Microsoft.Cci.PrimitiveTypeCode.UInt64: 239case Microsoft.Cci.PrimitiveTypeCode.UInt64: 241case Microsoft.Cci.PrimitiveTypeCode.UInt8: 242case Microsoft.Cci.PrimitiveTypeCode.UInt16: 243case Microsoft.Cci.PrimitiveTypeCode.UInt32: 244case Microsoft.Cci.PrimitiveTypeCode.Pointer: 245case Microsoft.Cci.PrimitiveTypeCode.FunctionPointer: 246case Microsoft.Cci.PrimitiveTypeCode.UIntPtr: 247case Microsoft.Cci.PrimitiveTypeCode.Char: 250case Microsoft.Cci.PrimitiveTypeCode.Int8: 251case Microsoft.Cci.PrimitiveTypeCode.Int16: 252case Microsoft.Cci.PrimitiveTypeCode.Int32: 253case Microsoft.Cci.PrimitiveTypeCode.IntPtr: 259case Microsoft.Cci.PrimitiveTypeCode.Int64: 273case Microsoft.Cci.PrimitiveTypeCode.Float32: 276case Microsoft.Cci.PrimitiveTypeCode.UInt32: 277case Microsoft.Cci.PrimitiveTypeCode.UInt64: 278case Microsoft.Cci.PrimitiveTypeCode.UIntPtr: 285case Microsoft.Cci.PrimitiveTypeCode.Float64: 288case Microsoft.Cci.PrimitiveTypeCode.UInt32: 289case Microsoft.Cci.PrimitiveTypeCode.UInt64: 290case Microsoft.Cci.PrimitiveTypeCode.UIntPtr: 297case Microsoft.Cci.PrimitiveTypeCode.Pointer: 298case Microsoft.Cci.PrimitiveTypeCode.FunctionPointer: 303case Microsoft.Cci.PrimitiveTypeCode.UInt8: 304case Microsoft.Cci.PrimitiveTypeCode.UInt16: 305case Microsoft.Cci.PrimitiveTypeCode.UInt32: 308case Microsoft.Cci.PrimitiveTypeCode.UInt64: 311case Microsoft.Cci.PrimitiveTypeCode.Int8: 312case Microsoft.Cci.PrimitiveTypeCode.Int16: 313case Microsoft.Cci.PrimitiveTypeCode.Int32: 314case Microsoft.Cci.PrimitiveTypeCode.Int64: 317case Microsoft.Cci.PrimitiveTypeCode.IntPtr: 320case Microsoft.Cci.PrimitiveTypeCode.UIntPtr: 330case Microsoft.Cci.PrimitiveTypeCode.UInt8: 331case Microsoft.Cci.PrimitiveTypeCode.UInt16: 332case Microsoft.Cci.PrimitiveTypeCode.UInt32: 333case Microsoft.Cci.PrimitiveTypeCode.UInt64: 334case Microsoft.Cci.PrimitiveTypeCode.Int64: 337case Microsoft.Cci.PrimitiveTypeCode.Int8: 338case Microsoft.Cci.PrimitiveTypeCode.Int16: 339case Microsoft.Cci.PrimitiveTypeCode.Int32: 344case Microsoft.Cci.PrimitiveTypeCode.IntPtr: 345case Microsoft.Cci.PrimitiveTypeCode.UIntPtr:
CodeGen\ILBuilderEmit.cs (2)
264Cci.PrimitiveTypeCode keyTypeCode) 267Debug.Assert(keyTypeCode != Cci.PrimitiveTypeCode.String);
CodeGen\PrivateImplementationDetails.cs (12)
167Cci.PrimitiveTypeCode typeCode = arrayType.GetElementType(emitContext).TypeCode; 169Cci.PrimitiveTypeCode.Int16 or Cci.PrimitiveTypeCode.UInt16 or Cci.PrimitiveTypeCode.Char or 170Cci.PrimitiveTypeCode.Int32 or Cci.PrimitiveTypeCode.UInt32 or Cci.PrimitiveTypeCode.Float32 or 171Cci.PrimitiveTypeCode.Int64 or Cci.PrimitiveTypeCode.UInt64 or Cci.PrimitiveTypeCode.Float64); 688public Cci.PrimitiveTypeCode TypeCode => Cci.PrimitiveTypeCode.NotPrimitive;
CodeGen\SwitchIntegralJumpTableEmitter.cs (3)
30private readonly Cci.PrimitiveTypeCode _keyTypeCode; 53Cci.PrimitiveTypeCode keyTypeCode, 532_builder.EmitNumericConversion(_keyTypeCode, Microsoft.Cci.PrimitiveTypeCode.UInt32, false);
CodeGen\SwitchStringJumpTableEmitter.cs (1)
153keyTypeCode: Cci.PrimitiveTypeCode.UInt32,
Emit\EditAndContinue\DeletedGenericParameter.cs (1)
40public Cci.PrimitiveTypeCode TypeCode => OldDefinition.TypeCode;
Emit\EditAndContinue\DeletedTypeDefinition.cs (1)
68public Cci.PrimitiveTypeCode TypeCode => _oldTypeReference.TypeCode;
Emit\ErrorType.cs (2)
89Cci.PrimitiveTypeCode Cci.ITypeReference.TypeCode 93return Cci.PrimitiveTypeCode.NotPrimitive;
Emit\NoPia\CommonEmbeddedType.cs (2)
583Cci.PrimitiveTypeCode Cci.ITypeReference.TypeCode 587return Cci.PrimitiveTypeCode.NotPrimitive;
Emit\NoPia\CommonEmbeddedTypeParameter.cs (2)
133Cci.PrimitiveTypeCode Cci.ITypeReference.TypeCode 137return Cci.PrimitiveTypeCode.NotPrimitive;
MetadataReader\MetadataDecoder.cs (2)
2419(GetPrimitiveTypeCode(signature2[0].Type) != Cci.PrimitiveTypeCode.Void)) 2461if (GetPrimitiveTypeCode(methodParams[0].Type) != Cci.PrimitiveTypeCode.Void)
MetadataReader\SymbolFactory.cs (1)
48internal abstract Cci.PrimitiveTypeCode GetPrimitiveTypeCode(ModuleSymbol moduleSymbol, TypeSymbol type);
MetadataReader\TypeNameDecoder.cs (1)
100protected Microsoft.Cci.PrimitiveTypeCode GetPrimitiveTypeCode(TypeSymbol type)
PEWriter\InheritedTypeParameter.cs (2)
231public PrimitiveTypeCode TypeCode 233get { return PrimitiveTypeCode.NotPrimitive; }
PEWriter\MetadataWriter.cs (37)
3784var primitiveType = typeReference.TypeCode; 3787case PrimitiveTypeCode.Pointer: 3788case PrimitiveTypeCode.FunctionPointer: 3789case PrimitiveTypeCode.NotPrimitive: 3883private static void SerializePrimitiveType(SignatureTypeEncoder encoder, PrimitiveTypeCode primitiveType) 3887case PrimitiveTypeCode.Boolean: 3891case PrimitiveTypeCode.UInt8: 3895case PrimitiveTypeCode.Int8: 3899case PrimitiveTypeCode.Char: 3903case PrimitiveTypeCode.Int16: 3907case PrimitiveTypeCode.UInt16: 3911case PrimitiveTypeCode.Int32: 3915case PrimitiveTypeCode.UInt32: 3919case PrimitiveTypeCode.Int64: 3923case PrimitiveTypeCode.UInt64: 3927case PrimitiveTypeCode.Float32: 3931case PrimitiveTypeCode.Float64: 3935case PrimitiveTypeCode.IntPtr: 3939case PrimitiveTypeCode.UIntPtr: 3943case PrimitiveTypeCode.String: 3947case PrimitiveTypeCode.Void: 3988var primitiveType = typeReference.TypeCode; 3989if (primitiveType != PrimitiveTypeCode.NotPrimitive) 4004private static void SerializePrimitiveType(CustomAttributeElementTypeEncoder encoder, PrimitiveTypeCode primitiveType) 4008case PrimitiveTypeCode.Boolean: 4012case PrimitiveTypeCode.UInt8: 4016case PrimitiveTypeCode.Int8: 4020case PrimitiveTypeCode.Char: 4024case PrimitiveTypeCode.Int16: 4028case PrimitiveTypeCode.UInt16: 4032case PrimitiveTypeCode.Int32: 4036case PrimitiveTypeCode.UInt32: 4040case PrimitiveTypeCode.Int64: 4044case PrimitiveTypeCode.UInt64: 4048case PrimitiveTypeCode.Float32: 4052case PrimitiveTypeCode.Float64: 4056case PrimitiveTypeCode.String:
PEWriter\MetadataWriter.PortablePdb.cs (2)
181var typeCode = type.TypeCode; 200else if (typeCode == PrimitiveTypeCode.String)
PEWriter\ModifiedTypeReference.cs (2)
60PrimitiveTypeCode ITypeReference.TypeCode 62get { return PrimitiveTypeCode.NotPrimitive; }
PEWriter\ReferenceIndexerBase.cs (2)
186if (!this.typeReferenceNeedsToken && namespaceTypeReference.TypeCode != PrimitiveTypeCode.NotPrimitive) 423(typeReference.TypeCode == PrimitiveTypeCode.NotPrimitive && typeReference.AsNamespaceTypeReference != null))
PEWriter\RootModuleType.cs (1)
234PrimitiveTypeCode ITypeReference.TypeCode
PEWriter\Types.cs (1)
624PrimitiveTypeCode TypeCode { get; }
PrimitiveTypeCodeExtensions.cs (37)
11public static bool Is64BitIntegral(this Cci.PrimitiveTypeCode kind) 15case Cci.PrimitiveTypeCode.Int64: 16case Cci.PrimitiveTypeCode.UInt64: 23public static bool IsSigned(this Cci.PrimitiveTypeCode kind) 27case Cci.PrimitiveTypeCode.Int8: 28case Cci.PrimitiveTypeCode.Int16: 29case Cci.PrimitiveTypeCode.Int32: 30case Cci.PrimitiveTypeCode.Int64: 31case Cci.PrimitiveTypeCode.IntPtr: 32case Cci.PrimitiveTypeCode.Float32: 33case Cci.PrimitiveTypeCode.Float64: 40public static bool IsUnsigned(this Cci.PrimitiveTypeCode kind) 44case Cci.PrimitiveTypeCode.UInt8: 45case Cci.PrimitiveTypeCode.UInt16: 46case Cci.PrimitiveTypeCode.UInt32: 47case Cci.PrimitiveTypeCode.UInt64: 48case Cci.PrimitiveTypeCode.UIntPtr: 49case Cci.PrimitiveTypeCode.Char: 50case Cci.PrimitiveTypeCode.Pointer: 51case Cci.PrimitiveTypeCode.FunctionPointer: 58public static bool IsFloatingPoint(this Cci.PrimitiveTypeCode kind) 62case Cci.PrimitiveTypeCode.Float32: 63case Cci.PrimitiveTypeCode.Float64: 70public static ConstantValueTypeDiscriminator GetConstantValueTypeDiscriminator(this Cci.PrimitiveTypeCode type) 74case Cci.PrimitiveTypeCode.Int8: return ConstantValueTypeDiscriminator.SByte; 75case Cci.PrimitiveTypeCode.UInt8: return ConstantValueTypeDiscriminator.Byte; 76case Cci.PrimitiveTypeCode.Int16: return ConstantValueTypeDiscriminator.Int16; 77case Cci.PrimitiveTypeCode.UInt16: return ConstantValueTypeDiscriminator.UInt16; 78case Cci.PrimitiveTypeCode.Int32: return ConstantValueTypeDiscriminator.Int32; 79case Cci.PrimitiveTypeCode.UInt32: return ConstantValueTypeDiscriminator.UInt32; 80case Cci.PrimitiveTypeCode.Int64: return ConstantValueTypeDiscriminator.Int64; 81case Cci.PrimitiveTypeCode.UInt64: return ConstantValueTypeDiscriminator.UInt64; 82case Cci.PrimitiveTypeCode.Char: return ConstantValueTypeDiscriminator.Char; 83case Cci.PrimitiveTypeCode.Boolean: return ConstantValueTypeDiscriminator.Boolean; 84case Cci.PrimitiveTypeCode.Float32: return ConstantValueTypeDiscriminator.Single; 85case Cci.PrimitiveTypeCode.Float64: return ConstantValueTypeDiscriminator.Double; 86case Cci.PrimitiveTypeCode.String: return ConstantValueTypeDiscriminator.String;
SpecialTypes.cs (38)
76private static readonly Microsoft.Cci.PrimitiveTypeCode[] s_typeIdToTypeCodeMap; 93s_typeIdToTypeCodeMap = new Microsoft.Cci.PrimitiveTypeCode[(int)SpecialType.Count + 1]; 97s_typeIdToTypeCodeMap[i] = Microsoft.Cci.PrimitiveTypeCode.NotPrimitive; 100s_typeIdToTypeCodeMap[(int)SpecialType.System_Boolean] = Microsoft.Cci.PrimitiveTypeCode.Boolean; 101s_typeIdToTypeCodeMap[(int)SpecialType.System_Char] = Microsoft.Cci.PrimitiveTypeCode.Char; 102s_typeIdToTypeCodeMap[(int)SpecialType.System_Void] = Microsoft.Cci.PrimitiveTypeCode.Void; 103s_typeIdToTypeCodeMap[(int)SpecialType.System_String] = Microsoft.Cci.PrimitiveTypeCode.String; 104s_typeIdToTypeCodeMap[(int)SpecialType.System_Int64] = Microsoft.Cci.PrimitiveTypeCode.Int64; 105s_typeIdToTypeCodeMap[(int)SpecialType.System_Int32] = Microsoft.Cci.PrimitiveTypeCode.Int32; 106s_typeIdToTypeCodeMap[(int)SpecialType.System_Int16] = Microsoft.Cci.PrimitiveTypeCode.Int16; 107s_typeIdToTypeCodeMap[(int)SpecialType.System_SByte] = Microsoft.Cci.PrimitiveTypeCode.Int8; 108s_typeIdToTypeCodeMap[(int)SpecialType.System_UInt64] = Microsoft.Cci.PrimitiveTypeCode.UInt64; 109s_typeIdToTypeCodeMap[(int)SpecialType.System_UInt32] = Microsoft.Cci.PrimitiveTypeCode.UInt32; 110s_typeIdToTypeCodeMap[(int)SpecialType.System_UInt16] = Microsoft.Cci.PrimitiveTypeCode.UInt16; 111s_typeIdToTypeCodeMap[(int)SpecialType.System_Byte] = Microsoft.Cci.PrimitiveTypeCode.UInt8; 112s_typeIdToTypeCodeMap[(int)SpecialType.System_Single] = Microsoft.Cci.PrimitiveTypeCode.Float32; 113s_typeIdToTypeCodeMap[(int)SpecialType.System_Double] = Microsoft.Cci.PrimitiveTypeCode.Float64; 114s_typeIdToTypeCodeMap[(int)SpecialType.System_IntPtr] = Microsoft.Cci.PrimitiveTypeCode.IntPtr; 115s_typeIdToTypeCodeMap[(int)SpecialType.System_UIntPtr] = Microsoft.Cci.PrimitiveTypeCode.UIntPtr; 117s_typeCodeToTypeIdMap = new SpecialType[(int)Microsoft.Cci.PrimitiveTypeCode.Invalid + 1]; 124s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.Boolean] = SpecialType.System_Boolean; 125s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.Char] = SpecialType.System_Char; 126s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.Void] = SpecialType.System_Void; 127s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.String] = SpecialType.System_String; 128s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.Int64] = SpecialType.System_Int64; 129s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.Int32] = SpecialType.System_Int32; 130s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.Int16] = SpecialType.System_Int16; 131s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.Int8] = SpecialType.System_SByte; 132s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.UInt64] = SpecialType.System_UInt64; 133s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.UInt32] = SpecialType.System_UInt32; 134s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.UInt16] = SpecialType.System_UInt16; 135s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.UInt8] = SpecialType.System_Byte; 136s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.Float32] = SpecialType.System_Single; 137s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.Float64] = SpecialType.System_Double; 138s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.IntPtr] = SpecialType.System_IntPtr; 139s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.UIntPtr] = SpecialType.System_UIntPtr; 162public static SpecialType GetTypeFromMetadataName(Microsoft.Cci.PrimitiveTypeCode typeCode) 167public static Microsoft.Cci.PrimitiveTypeCode GetTypeCode(SpecialType typeId)
Microsoft.CodeAnalysis.CSharp (140)
Binder\Binder_Symbols.cs (1)
2205if ((object)singleType != null && singleType.PrimitiveTypeCode == Cci.PrimitiveTypeCode.Void && simpleName == "Void")
CodeGen\EmitConversion.cs (29)
20case Cci.PrimitiveTypeCode.Int8: 21case Cci.PrimitiveTypeCode.UInt8: 22case Cci.PrimitiveTypeCode.Int16: 23case Cci.PrimitiveTypeCode.UInt16: 24case Cci.PrimitiveTypeCode.Int32: 25case Cci.PrimitiveTypeCode.UInt32: 26case Cci.PrimitiveTypeCode.Int64: 27case Cci.PrimitiveTypeCode.UInt64: 28case Cci.PrimitiveTypeCode.Char: 29case Cci.PrimitiveTypeCode.Float32: 30case Cci.PrimitiveTypeCode.Float64: 32case Cci.PrimitiveTypeCode.IntPtr: 33case Cci.PrimitiveTypeCode.UIntPtr: 140var fromPredefTypeKind = fromType.PrimitiveTypeCode; 143var toPredefTypeKind = toType.PrimitiveTypeCode; 148case Microsoft.Cci.PrimitiveTypeCode.IntPtr when !fromType.IsNativeIntegerType: 149case Microsoft.Cci.PrimitiveTypeCode.UIntPtr when !fromType.IsNativeIntegerType: 150case Microsoft.Cci.PrimitiveTypeCode.Pointer: 151case Microsoft.Cci.PrimitiveTypeCode.FunctionPointer: 157(toPredefTypeKind == Microsoft.Cci.PrimitiveTypeCode.IntPtr || toPredefTypeKind == Microsoft.Cci.PrimitiveTypeCode.UIntPtr) && !toType.IsNativeIntegerWrapperType || 158toPredefTypeKind == Microsoft.Cci.PrimitiveTypeCode.Pointer || 159toPredefTypeKind == Microsoft.Cci.PrimitiveTypeCode.FunctionPointer); 193case Microsoft.Cci.PrimitiveTypeCode.Float32: 194case Microsoft.Cci.PrimitiveTypeCode.Float64: 214var fromPredefTypeKind = fromType.PrimitiveTypeCode; 218var toPredefTypeKind = toType.PrimitiveTypeCode; 295var fromPredefTypeKind = fromType.PrimitiveTypeCode; 304var toPredefTypeKind = toType.PrimitiveTypeCode;
CodeGen\EmitExpression.cs (71)
996case Microsoft.Cci.PrimitiveTypeCode.Int8: 1000case Microsoft.Cci.PrimitiveTypeCode.Boolean: 1001case Microsoft.Cci.PrimitiveTypeCode.UInt8: 1005case Microsoft.Cci.PrimitiveTypeCode.Int16: 1009case Microsoft.Cci.PrimitiveTypeCode.Char: 1010case Microsoft.Cci.PrimitiveTypeCode.UInt16: 1014case Microsoft.Cci.PrimitiveTypeCode.Int32: 1018case Microsoft.Cci.PrimitiveTypeCode.UInt32: 1022case Microsoft.Cci.PrimitiveTypeCode.Int64: 1023case Microsoft.Cci.PrimitiveTypeCode.UInt64: 1027case Microsoft.Cci.PrimitiveTypeCode.IntPtr: 1028case Microsoft.Cci.PrimitiveTypeCode.UIntPtr: 1029case Microsoft.Cci.PrimitiveTypeCode.Pointer: 1030case Microsoft.Cci.PrimitiveTypeCode.FunctionPointer: 1034case Microsoft.Cci.PrimitiveTypeCode.Float32: 1038case Microsoft.Cci.PrimitiveTypeCode.Float64: 1401case Microsoft.Cci.PrimitiveTypeCode.Int8: 1405case Microsoft.Cci.PrimitiveTypeCode.Boolean: 1406case Microsoft.Cci.PrimitiveTypeCode.UInt8: 1410case Microsoft.Cci.PrimitiveTypeCode.Int16: 1414case Microsoft.Cci.PrimitiveTypeCode.Char: 1415case Microsoft.Cci.PrimitiveTypeCode.UInt16: 1419case Microsoft.Cci.PrimitiveTypeCode.Int32: 1423case Microsoft.Cci.PrimitiveTypeCode.UInt32: 1427case Microsoft.Cci.PrimitiveTypeCode.Int64: 1428case Microsoft.Cci.PrimitiveTypeCode.UInt64: 1432case Microsoft.Cci.PrimitiveTypeCode.IntPtr: 1433case Microsoft.Cci.PrimitiveTypeCode.UIntPtr: 1434case Microsoft.Cci.PrimitiveTypeCode.Pointer: 1435case Microsoft.Cci.PrimitiveTypeCode.FunctionPointer: 1439case Microsoft.Cci.PrimitiveTypeCode.Float32: 1443case Microsoft.Cci.PrimitiveTypeCode.Float64: 2103private void TreatLongsAsNative(Microsoft.Cci.PrimitiveTypeCode tc) 2105if (tc == Microsoft.Cci.PrimitiveTypeCode.Int64) 2109else if (tc == Microsoft.Cci.PrimitiveTypeCode.UInt64) 2132var typeTo = expression.Type.PrimitiveTypeCode; 2137var typeFrom = typeTo.IsUnsigned() ? Microsoft.Cci.PrimitiveTypeCode.UIntPtr : Microsoft.Cci.PrimitiveTypeCode.IntPtr; 3004case Microsoft.Cci.PrimitiveTypeCode.Boolean: 3005case Microsoft.Cci.PrimitiveTypeCode.Int8: 3006case Microsoft.Cci.PrimitiveTypeCode.UInt8: 3010case Microsoft.Cci.PrimitiveTypeCode.Char: 3011case Microsoft.Cci.PrimitiveTypeCode.Int16: 3012case Microsoft.Cci.PrimitiveTypeCode.UInt16: 3016case Microsoft.Cci.PrimitiveTypeCode.Int32: 3017case Microsoft.Cci.PrimitiveTypeCode.UInt32: 3021case Microsoft.Cci.PrimitiveTypeCode.Int64: 3022case Microsoft.Cci.PrimitiveTypeCode.UInt64: 3026case Microsoft.Cci.PrimitiveTypeCode.IntPtr: 3027case Microsoft.Cci.PrimitiveTypeCode.UIntPtr: 3028case Microsoft.Cci.PrimitiveTypeCode.Pointer: 3029case Microsoft.Cci.PrimitiveTypeCode.FunctionPointer: 3033case Microsoft.Cci.PrimitiveTypeCode.Float32: 3037case Microsoft.Cci.PrimitiveTypeCode.Float64: 3102case Microsoft.Cci.PrimitiveTypeCode.Boolean: 3103case Microsoft.Cci.PrimitiveTypeCode.Int8: 3104case Microsoft.Cci.PrimitiveTypeCode.UInt8: 3108case Microsoft.Cci.PrimitiveTypeCode.Char: 3109case Microsoft.Cci.PrimitiveTypeCode.Int16: 3110case Microsoft.Cci.PrimitiveTypeCode.UInt16: 3114case Microsoft.Cci.PrimitiveTypeCode.Int32: 3115case Microsoft.Cci.PrimitiveTypeCode.UInt32: 3119case Microsoft.Cci.PrimitiveTypeCode.Int64: 3120case Microsoft.Cci.PrimitiveTypeCode.UInt64: 3124case Microsoft.Cci.PrimitiveTypeCode.IntPtr: 3125case Microsoft.Cci.PrimitiveTypeCode.UIntPtr: 3126case Microsoft.Cci.PrimitiveTypeCode.Pointer: 3127case Microsoft.Cci.PrimitiveTypeCode.FunctionPointer: 3131case Microsoft.Cci.PrimitiveTypeCode.Float32: 3135case Microsoft.Cci.PrimitiveTypeCode.Float64:
CodeGen\EmitOperators.cs (8)
610_builder.EmitNumericConversion(Microsoft.Cci.PrimitiveTypeCode.Int32, Microsoft.Cci.PrimitiveTypeCode.UInt8, @checked); 613_builder.EmitNumericConversion(Microsoft.Cci.PrimitiveTypeCode.Int32, Microsoft.Cci.PrimitiveTypeCode.Int8, @checked); 616_builder.EmitNumericConversion(Microsoft.Cci.PrimitiveTypeCode.Int32, Microsoft.Cci.PrimitiveTypeCode.Int16, @checked); 619_builder.EmitNumericConversion(Microsoft.Cci.PrimitiveTypeCode.Int32, Microsoft.Cci.PrimitiveTypeCode.UInt16, @checked);
CodeGen\EmitStatement.cs (7)
208var tc = ts.PrimitiveTypeCode; 211case Microsoft.Cci.PrimitiveTypeCode.Float32: 212case Microsoft.Cci.PrimitiveTypeCode.Float64: 215case Microsoft.Cci.PrimitiveTypeCode.NotPrimitive: 221Debug.Assert(tc != Microsoft.Cci.PrimitiveTypeCode.Invalid); 222Debug.Assert(tc != Microsoft.Cci.PrimitiveTypeCode.Void); 258bool isBool = nonConstType.PrimitiveTypeCode == Microsoft.Cci.PrimitiveTypeCode.Boolean;
Emitter\Model\ArrayTypeSymbolAdapter.cs (2)
60Cci.PrimitiveTypeCode Cci.ITypeReference.TypeCode => Cci.PrimitiveTypeCode.NotPrimitive;
Emitter\Model\FunctionPointerTypeSymbolAdapter.cs (2)
40Cci.PrimitiveTypeCode ITypeReference.TypeCode => Cci.PrimitiveTypeCode.FunctionPointer;
Emitter\Model\NamedTypeReference.cs (2)
82Cci.PrimitiveTypeCode Cci.ITypeReference.TypeCode 86return Cci.PrimitiveTypeCode.NotPrimitive;
Emitter\Model\NamedTypeSymbolAdapter.cs (2)
56Cci.PrimitiveTypeCode Cci.ITypeReference.TypeCode 67return Cci.PrimitiveTypeCode.NotPrimitive;
Emitter\Model\PointerTypeSymbolAdapter.cs (2)
50Cci.PrimitiveTypeCode Cci.ITypeReference.TypeCode 52get { return Cci.PrimitiveTypeCode.Pointer; }
Emitter\Model\TypeParameterSymbolAdapter.cs (2)
46Cci.PrimitiveTypeCode Cci.ITypeReference.TypeCode 48get { return Cci.PrimitiveTypeCode.NotPrimitive; }
Symbols\AssemblySymbol.cs (1)
597internal NamedTypeSymbol GetPrimitiveType(Microsoft.Cci.PrimitiveTypeCode type)
Symbols\Metadata\PE\SymbolFactory.cs (1)
59internal override Cci.PrimitiveTypeCode GetPrimitiveTypeCode(PEModuleSymbol moduleSymbol, TypeSymbol type)
Symbols\Retargeting\RetargetingNamespaceSymbol.cs (1)
128Debug.Assert(t.PrimitiveTypeCode == Cci.PrimitiveTypeCode.NotPrimitive);
Symbols\Retargeting\RetargetingSymbolTranslator.cs (5)
164Debug.Assert(symbol.Kind != SymbolKind.NamedType || ((NamedTypeSymbol)symbol).PrimitiveTypeCode == Cci.PrimitiveTypeCode.NotPrimitive); 219Cci.PrimitiveTypeCode typeCode = type.PrimitiveTypeCode; 221if (typeCode != Cci.PrimitiveTypeCode.NotPrimitive) 848Debug.Assert(nts.TypeKind == TypeKind.Error || nts.PrimitiveTypeCode == Cci.PrimitiveTypeCode.NotPrimitive); 862Debug.Assert(ts.TypeKind == TypeKind.Error || ts.PrimitiveTypeCode == Cci.PrimitiveTypeCode.NotPrimitive);
Symbols\TypeSymbol.cs (3)
504internal Microsoft.Cci.PrimitiveTypeCode PrimitiveTypeCode 507TypeKind.Pointer => Microsoft.Cci.PrimitiveTypeCode.Pointer, 508TypeKind.FunctionPointer => Microsoft.Cci.PrimitiveTypeCode.FunctionPointer,
Symbols\TypeWithAnnotations.cs (1)
264public Cci.PrimitiveTypeCode PrimitiveTypeCode => Type.PrimitiveTypeCode;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Emit\EmitMetadataTests.cs (1)
1168Assert.NotEqual(Microsoft.Cci.PrimitiveTypeCode.Void, type.PrimitiveTypeCode);
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler.Utilities (1)
NamespaceTypeDefinitionNoBase.cs (1)
126Cci.PrimitiveTypeCode ITypeReference.TypeCode => UnderlyingType.TypeCode;
Microsoft.CodeAnalysis.UnitTests (21)
CorLibTypesTests.cs (21)
28Cci.PrimitiveTypeCode code = SpecialTypes.GetTypeCode((SpecialType)i); 30if (code != Cci.PrimitiveTypeCode.NotPrimitive) 36for (int i = 0; i <= (int)Cci.PrimitiveTypeCode.Invalid; i++) 38SpecialType id = SpecialTypes.GetTypeFromMetadataName((Cci.PrimitiveTypeCode)i); 42Assert.Equal((Cci.PrimitiveTypeCode)i, SpecialTypes.GetTypeCode(id)); 46Assert.Equal(SpecialType.System_Boolean, SpecialTypes.GetTypeFromMetadataName(Cci.PrimitiveTypeCode.Boolean)); 47Assert.Equal(SpecialType.System_Char, SpecialTypes.GetTypeFromMetadataName(Cci.PrimitiveTypeCode.Char)); 48Assert.Equal(SpecialType.System_Void, SpecialTypes.GetTypeFromMetadataName(Cci.PrimitiveTypeCode.Void)); 49Assert.Equal(SpecialType.System_String, SpecialTypes.GetTypeFromMetadataName(Cci.PrimitiveTypeCode.String)); 50Assert.Equal(SpecialType.System_Int64, SpecialTypes.GetTypeFromMetadataName(Cci.PrimitiveTypeCode.Int64)); 51Assert.Equal(SpecialType.System_Int32, SpecialTypes.GetTypeFromMetadataName(Cci.PrimitiveTypeCode.Int32)); 52Assert.Equal(SpecialType.System_Int16, SpecialTypes.GetTypeFromMetadataName(Cci.PrimitiveTypeCode.Int16)); 53Assert.Equal(SpecialType.System_SByte, SpecialTypes.GetTypeFromMetadataName(Cci.PrimitiveTypeCode.Int8)); 54Assert.Equal(SpecialType.System_UInt64, SpecialTypes.GetTypeFromMetadataName(Cci.PrimitiveTypeCode.UInt64)); 55Assert.Equal(SpecialType.System_UInt32, SpecialTypes.GetTypeFromMetadataName(Cci.PrimitiveTypeCode.UInt32)); 56Assert.Equal(SpecialType.System_UInt16, SpecialTypes.GetTypeFromMetadataName(Cci.PrimitiveTypeCode.UInt16)); 57Assert.Equal(SpecialType.System_Byte, SpecialTypes.GetTypeFromMetadataName(Cci.PrimitiveTypeCode.UInt8)); 58Assert.Equal(SpecialType.System_Single, SpecialTypes.GetTypeFromMetadataName(Cci.PrimitiveTypeCode.Float32)); 59Assert.Equal(SpecialType.System_Double, SpecialTypes.GetTypeFromMetadataName(Cci.PrimitiveTypeCode.Float64)); 60Assert.Equal(SpecialType.System_IntPtr, SpecialTypes.GetTypeFromMetadataName(Cci.PrimitiveTypeCode.IntPtr)); 61Assert.Equal(SpecialType.System_UIntPtr, SpecialTypes.GetTypeFromMetadataName(Cci.PrimitiveTypeCode.UIntPtr));
Microsoft.CodeAnalysis.VisualBasic (150)
CodeGen\EmitConversion.vb (38)
8Imports PrimitiveTypeCode = Microsoft.Cci.PrimitiveTypeCode 14Private Shared Function IsSimpleType(type As PrimitiveTypeCode) As Boolean 18Case PrimitiveTypeCode.Boolean, 19PrimitiveTypeCode.Float32, 20PrimitiveTypeCode.Float64, 21PrimitiveTypeCode.Int16, 22PrimitiveTypeCode.Int32, 23PrimitiveTypeCode.Int64, 24PrimitiveTypeCode.Int8, 25PrimitiveTypeCode.UInt16, 26PrimitiveTypeCode.UInt32, 27PrimitiveTypeCode.UInt64, 28PrimitiveTypeCode.UInt8 36Private Shared Function IsIntegral(type As PrimitiveTypeCode) As Boolean 40Case PrimitiveTypeCode.Int8, 41PrimitiveTypeCode.UInt8, 42PrimitiveTypeCode.Int16, 43PrimitiveTypeCode.UInt16, 44PrimitiveTypeCode.Int32, 45PrimitiveTypeCode.UInt32, 46PrimitiveTypeCode.Int64, 47PrimitiveTypeCode.UInt64 55Private Sub EmitConvertIntrinsic(conversion As BoundConversion, underlyingFrom As PrimitiveTypeCode, underlyingTo As PrimitiveTypeCode) 59Debug.Assert((IsSimpleType(underlyingFrom) AndAlso IsSimpleType(underlyingTo)) OrElse (underlyingFrom = PrimitiveTypeCode.Char AndAlso underlyingTo = PrimitiveTypeCode.Int32)) 70underlyingFrom <> PrimitiveTypeCode.Float32 AndAlso 71underlyingFrom <> PrimitiveTypeCode.Float64 Then 76If underlyingTo = PrimitiveTypeCode.Boolean Then 93If underlyingFrom = PrimitiveTypeCode.Boolean Then 99If underlyingTo <> PrimitiveTypeCode.Int32 Then 102_builder.EmitNumericConversion(PrimitiveTypeCode.Int32, underlyingTo, checked:=False) 110If underlyingFrom = PrimitiveTypeCode.Float32 AndAlso IsIntegral(underlyingTo) Then 144Private Sub EmitConvertSimpleNumeric(conversion As BoundConversion, typeFrom As PrimitiveTypeCode, typeTo As PrimitiveTypeCode, checked As Boolean) 145Debug.Assert(IsIntegral(typeFrom) OrElse typeFrom.IsFloatingPoint() OrElse typeFrom = PrimitiveTypeCode.Char) 171(underlyingFrom = PrimitiveTypeCode.Char AndAlso underlyingTo = PrimitiveTypeCode.Int32) Then ' Allow AscW optimization.
CodeGen\EmitExpression.vb (62)
571Case Microsoft.Cci.PrimitiveTypeCode.Int8 574Case Microsoft.Cci.PrimitiveTypeCode.Boolean, 575Microsoft.Cci.PrimitiveTypeCode.UInt8 578Case Microsoft.Cci.PrimitiveTypeCode.Int16 581Case Microsoft.Cci.PrimitiveTypeCode.Char, 582Microsoft.Cci.PrimitiveTypeCode.UInt16 585Case Microsoft.Cci.PrimitiveTypeCode.Int32 588Case Microsoft.Cci.PrimitiveTypeCode.UInt32 591Case Microsoft.Cci.PrimitiveTypeCode.Int64, 592Microsoft.Cci.PrimitiveTypeCode.UInt64 595Case Microsoft.Cci.PrimitiveTypeCode.IntPtr, 596Microsoft.Cci.PrimitiveTypeCode.UIntPtr, 597Microsoft.Cci.PrimitiveTypeCode.Pointer 600Case Microsoft.Cci.PrimitiveTypeCode.Float32 603Case Microsoft.Cci.PrimitiveTypeCode.Float64 817Case Microsoft.Cci.PrimitiveTypeCode.Int8 820Case Microsoft.Cci.PrimitiveTypeCode.Boolean, 821Microsoft.Cci.PrimitiveTypeCode.UInt8 824Case Microsoft.Cci.PrimitiveTypeCode.Int16 827Case Microsoft.Cci.PrimitiveTypeCode.Char, 828Microsoft.Cci.PrimitiveTypeCode.UInt16 831Case Microsoft.Cci.PrimitiveTypeCode.Int32 834Case Microsoft.Cci.PrimitiveTypeCode.UInt32 837Case Microsoft.Cci.PrimitiveTypeCode.Int64, 838Microsoft.Cci.PrimitiveTypeCode.UInt64 841Case Microsoft.Cci.PrimitiveTypeCode.IntPtr, 842Microsoft.Cci.PrimitiveTypeCode.UIntPtr, 843Microsoft.Cci.PrimitiveTypeCode.Pointer 846Case Microsoft.Cci.PrimitiveTypeCode.Float32 849Case Microsoft.Cci.PrimitiveTypeCode.Float64 1509Dim typeFrom = If(typeTo.IsUnsigned(), Microsoft.Cci.PrimitiveTypeCode.UIntPtr, Microsoft.Cci.PrimitiveTypeCode.IntPtr) 1982Case Microsoft.Cci.PrimitiveTypeCode.Boolean, 1983Microsoft.Cci.PrimitiveTypeCode.Int8, 1984Microsoft.Cci.PrimitiveTypeCode.UInt8 1987Case Microsoft.Cci.PrimitiveTypeCode.Char, 1988Microsoft.Cci.PrimitiveTypeCode.Int16, 1989Microsoft.Cci.PrimitiveTypeCode.UInt16 1992Case Microsoft.Cci.PrimitiveTypeCode.Int32, 1993Microsoft.Cci.PrimitiveTypeCode.UInt32 1996Case Microsoft.Cci.PrimitiveTypeCode.Int64, 1997Microsoft.Cci.PrimitiveTypeCode.UInt64 2000Case Microsoft.Cci.PrimitiveTypeCode.IntPtr, 2001Microsoft.Cci.PrimitiveTypeCode.UIntPtr, 2002Microsoft.Cci.PrimitiveTypeCode.Pointer 2005Case Microsoft.Cci.PrimitiveTypeCode.Float32 2008Case Microsoft.Cci.PrimitiveTypeCode.Float64 2052Case Microsoft.Cci.PrimitiveTypeCode.Boolean, 2053Microsoft.Cci.PrimitiveTypeCode.Int8, 2054Microsoft.Cci.PrimitiveTypeCode.UInt8 2057Case Microsoft.Cci.PrimitiveTypeCode.Char, 2058Microsoft.Cci.PrimitiveTypeCode.Int16, 2059Microsoft.Cci.PrimitiveTypeCode.UInt16 2062Case Microsoft.Cci.PrimitiveTypeCode.Int32, 2063Microsoft.Cci.PrimitiveTypeCode.UInt32 2066Case Microsoft.Cci.PrimitiveTypeCode.Int64, 2067Microsoft.Cci.PrimitiveTypeCode.UInt64 2070Case Microsoft.Cci.PrimitiveTypeCode.IntPtr, 2071Microsoft.Cci.PrimitiveTypeCode.UIntPtr, 2072Microsoft.Cci.PrimitiveTypeCode.Pointer 2075Case Microsoft.Cci.PrimitiveTypeCode.Float32 2078Case Microsoft.Cci.PrimitiveTypeCode.Float64
CodeGen\EmitOperators.vb (27)
29(targetPrimitiveType = Cci.PrimitiveTypeCode.Int32 OrElse 30targetPrimitiveType = Cci.PrimitiveTypeCode.Int64)) 36If targetPrimitiveType = Cci.PrimitiveTypeCode.Int64 Then 68If targetPrimitiveType = Cci.PrimitiveTypeCode.UInt8 OrElse 69targetPrimitiveType = Cci.PrimitiveTypeCode.UInt16 Then 71_builder.EmitNumericConversion(Cci.PrimitiveTypeCode.UInt32, 255(targetPrimitiveType = Cci.PrimitiveTypeCode.Int32 OrElse targetPrimitiveType = Cci.PrimitiveTypeCode.Int64) Then 259(targetPrimitiveType = Cci.PrimitiveTypeCode.UInt32 OrElse targetPrimitiveType = Cci.PrimitiveTypeCode.UInt64) Then 274(targetPrimitiveType = Cci.PrimitiveTypeCode.Int32 OrElse targetPrimitiveType = Cci.PrimitiveTypeCode.Int64) Then 278(targetPrimitiveType = Cci.PrimitiveTypeCode.UInt32 OrElse targetPrimitiveType = Cci.PrimitiveTypeCode.UInt64) Then 286(targetPrimitiveType = Cci.PrimitiveTypeCode.Int32 OrElse targetPrimitiveType = Cci.PrimitiveTypeCode.Int64) Then 290(targetPrimitiveType = Cci.PrimitiveTypeCode.UInt32 OrElse targetPrimitiveType = Cci.PrimitiveTypeCode.UInt64) Then 308Debug.Assert(expression.Right.Type.PrimitiveTypeCode = Cci.PrimitiveTypeCode.Int32) 322Debug.Assert(expression.Right.Type.PrimitiveTypeCode = Cci.PrimitiveTypeCode.Int32) 352targetPrimitiveType As Cci.PrimitiveTypeCode, 357If targetPrimitiveType = Cci.PrimitiveTypeCode.Int8 OrElse 358targetPrimitiveType = Cci.PrimitiveTypeCode.UInt8 OrElse 359targetPrimitiveType = Cci.PrimitiveTypeCode.Int16 OrElse 360targetPrimitiveType = Cci.PrimitiveTypeCode.UInt16 Then 362_builder.EmitNumericConversion(If(targetPrimitiveType.IsUnsigned(), Cci.PrimitiveTypeCode.UInt32, Cci.PrimitiveTypeCode.Int32),
CodeGen\EmitStatement.vb (6)
480Case Cci.PrimitiveTypeCode.Float32, Cci.PrimitiveTypeCode.Float64 483Case Cci.PrimitiveTypeCode.NotPrimitive 489Debug.Assert(tc <> Cci.PrimitiveTypeCode.Invalid) 490Debug.Assert(tc <> Cci.PrimitiveTypeCode.Void) 526Dim isBool As Boolean = nonConstType IsNot Nothing AndAlso nonConstType.PrimitiveTypeCode = Microsoft.Cci.PrimitiveTypeCode.Boolean
Emit\ArrayTypeSymbolAdapter.vb (2)
71Private ReadOnly Property ITypeReferenceTypeCode As Cci.PrimitiveTypeCode Implements Cci.ITypeReference.TypeCode 73Return Cci.PrimitiveTypeCode.NotPrimitive
Emit\NamedTypeReference.vb (2)
62Private ReadOnly Property ITypeReferenceTypeCode As Cci.PrimitiveTypeCode Implements Cci.ITypeReference.TypeCode 64Return Cci.PrimitiveTypeCode.NotPrimitive
Emit\NamedTypeSymbolAdapter.vb (2)
53Private ReadOnly Property ITypeReferenceTypeCode As Cci.PrimitiveTypeCode Implements ITypeReference.TypeCode 60Return Cci.PrimitiveTypeCode.NotPrimitive
Emit\TypeParameterSymbolAdapter.vb (2)
41Private ReadOnly Property ITypeReferenceTypeCode As Cci.PrimitiveTypeCode Implements ITypeReference.TypeCode 43Return Cci.PrimitiveTypeCode.NotPrimitive
Lowering\LocalRewriter\LocalRewriter_ForTo.vb (1)
631Dim int32Type = [step].Type.ContainingAssembly.GetPrimitiveType(Microsoft.Cci.PrimitiveTypeCode.Int32)
Symbols\AssemblySymbol.vb (1)
493Friend Function GetPrimitiveType(type As Microsoft.Cci.PrimitiveTypeCode) As NamedTypeSymbol
Symbols\Metadata\PE\SymbolFactory.vb (1)
45Friend Overrides Function GetPrimitiveTypeCode(moduleSymbol As PEModuleSymbol, type As TypeSymbol) As Microsoft.Cci.PrimitiveTypeCode
Symbols\Retargeting\RetargetingNamespaceSymbol.vb (1)
106Debug.Assert(t.PrimitiveTypeCode = Cci.PrimitiveTypeCode.NotPrimitive)
Symbols\Retargeting\RetargetingSymbolTranslator.vb (4)
129Debug.Assert(symbol.Kind <> SymbolKind.NamedType OrElse DirectCast(symbol, NamedTypeSymbol).PrimitiveTypeCode = PrimitiveTypeCode.NotPrimitive) 167Dim typeCode As PrimitiveTypeCode = type.PrimitiveTypeCode 169If typeCode <> PrimitiveTypeCode.NotPrimitive Then 835Debug.Assert(s.PrimitiveTypeCode = PrimitiveTypeCode.NotPrimitive)
Symbols\TypeSymbol.vb (1)
285Friend ReadOnly Property PrimitiveTypeCode As Microsoft.Cci.PrimitiveTypeCode
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolsTests\Source\PropertyTests.vb (1)
8118Assert.NotEqual(type.PrimitiveTypeCode, Cci.PrimitiveTypeCode.Void)