2 overrides of UnderlyingType
ILCompiler.TypeSystem (2)
parent\parent\Common\TypeSystem\Common\InstantiatedType.cs (1)
310
public override TypeDesc
UnderlyingType
parent\parent\Common\TypeSystem\Ecma\EcmaType.cs (1)
447
public override TypeDesc
UnderlyingType
65 references to UnderlyingType
ILCompiler.Compiler (24)
Compiler\BodySubstitutionParser.cs (2)
167
if (type.IsEnum && type.
UnderlyingType
.Category == TypeFlags.Int32)
187
switch (type.
UnderlyingType
.Category)
Compiler\DependencyAnalysis\CustomAttributeBasedDependencyAlgorithm.cs (2)
269
if (type.
UnderlyingType
.IsPrimitive || type.IsString || value == null)
275
if (elementType.
UnderlyingType
.IsPrimitive || elementType.IsString)
Compiler\SubstitutedILProvider.cs (1)
681
TypeFlags returnType = method.Signature.ReturnType.
UnderlyingType
.Category;
Compiler\TypePreinit.cs (4)
2063
switch (locationType.
UnderlyingType
.Category)
2112
locationType = locationType.
UnderlyingType
;
3568
if (Type.
UnderlyingType
!= type.
UnderlyingType
)
Compiler\UserDefinedTypeDescriptor.cs (1)
415
ElementType = GetPrimitiveTypeIndex(defType.
UnderlyingType
),
IL\ILImporter.Scanner.cs (1)
751
constrained = constrained.
UnderlyingType
;
IL\RvaIntrinsicPatternAnalyzer.cs (1)
282
elementType = elementType.
UnderlyingType
;
parent\parent\Common\Internal\Runtime\EETypeBuilderHelpers.cs (1)
16
type = type.
UnderlyingType
;
parent\parent\Common\JitInterface\WasmLowering.cs (2)
342
switch (abiType.
UnderlyingType
.Category)
377
throw new NotSupportedException($"Unknown wasm mapping for type: {type.
UnderlyingType
.Category}");
parent\parent\Common\TypeSystem\IL\NativeAotILProvider.cs (1)
154
TypeDesc underlyingType = elementType.
UnderlyingType
;
parent\parent\Common\TypeSystem\IL\Stubs\ComparerIntrinsics.cs (1)
285
TypeFlags category = fieldType.
UnderlyingType
.Category;
parent\parent\Common\TypeSystem\IL\Stubs\DynamicInvokeMethodThunk.cs (1)
67
return type.
UnderlyingType
;
parent\parent\Common\TypeSystem\IL\Stubs\GetFieldHelperMethodOverride.cs (1)
140
boxableFieldType = fieldTypeForOptimizationChecks.
UnderlyingType
;
parent\parent\Common\TypeSystem\IL\Stubs\InterlockedIntrinsics.cs (1)
44
else if ((tType.IsPrimitive || tType.IsEnum) && (tType.
UnderlyingType
.Category is not (TypeFlags.Single or TypeFlags.Double)))
parent\parent\Common\TypeSystem\IL\Stubs\RuntimeHelpersIntrinsics.cs (1)
40
switch (elementType.
UnderlyingType
.Category)
parent\parent\Common\TypeSystem\Interop\IL\MarshalHelpers.Aot.cs (1)
20
typeDesc = typeDesc.
UnderlyingType
;
parent\parent\Common\TypeSystem\Interop\IL\MarshalHelpers.cs (2)
56
return type.
UnderlyingType
;
914
TypeDesc underlyingType = type.
UnderlyingType
;
ILCompiler.MetadataTransform (2)
ILCompiler\Metadata\Transform.CustomAttribute.cs (2)
89
switch (type.
UnderlyingType
.Category)
93
case <= Cts.TypeFlags.UInt64: return (Ecma.SerializationTypeCode)type.
UnderlyingType
.Category;
ILCompiler.ReadyToRun (18)
Compiler\DependencyAnalysis\ReadyToRun\TypeHandle.cs (2)
104
Internal.TypeSystem.TypeFlags category = _type.
UnderlyingType
.Category;
164
switch (typeOfEmbeddedField.
UnderlyingType
.Category)
Compiler\ReadyToRunMetadataFieldLayoutAlgorithm.cs (2)
127
size = fieldType.
UnderlyingType
.GetElementSize().AsInt;
228
size = fieldDesc.FieldType.
UnderlyingType
.GetElementSize().AsInt;
JitInterface\CorInfoImpl.ReadyToRun.cs (3)
1708
!field.FieldType.
UnderlyingType
.IsPrimitive)
2012
MethodDesc methodOnUnderlyingType = constrainedType.
UnderlyingType
.FindVirtualFunctionTargetMethodOnObjectType(originalMethod);
2015
constrainedType = constrainedType.
UnderlyingType
;
parent\parent\Common\JitInterface\CorInfoImpl.cs (2)
995
type = type.
UnderlyingType
;
3280
*underlyingType = ObjectToHandle(type.
UnderlyingType
);
parent\parent\Common\JitInterface\WasmLowering.cs (2)
342
switch (abiType.
UnderlyingType
.Category)
377
throw new NotSupportedException($"Unknown wasm mapping for type: {type.
UnderlyingType
.Category}");
parent\parent\Common\TypeSystem\IL\Stubs\ComparerIntrinsics.cs (1)
285
TypeFlags category = fieldType.
UnderlyingType
.Category;
parent\parent\Common\TypeSystem\IL\Stubs\InterlockedIntrinsics.cs (1)
44
else if ((tType.IsPrimitive || tType.IsEnum) && (tType.
UnderlyingType
.Category is not (TypeFlags.Single or TypeFlags.Double)))
parent\parent\Common\TypeSystem\IL\Stubs\RuntimeHelpersIntrinsics.cs (1)
40
switch (elementType.
UnderlyingType
.Category)
parent\parent\Common\TypeSystem\Interop\IL\MarshalHelpers.cs (2)
56
return type.
UnderlyingType
;
914
TypeDesc underlyingType = type.
UnderlyingType
;
PortableCallHelpers\PInvokeTableGenerator.cs (2)
410
return TypeToNameType(type.
UnderlyingType
);
436
return MapType(type.
UnderlyingType
);
ILCompiler.RyuJit (3)
JitInterface\CorInfoImpl.RyuJit.cs (1)
1253
constrainedType = constrainedType.
UnderlyingType
;
parent\parent\Common\JitInterface\CorInfoImpl.cs (2)
995
type = type.
UnderlyingType
;
3280
*underlyingType = ObjectToHandle(type.
UnderlyingType
);
ILCompiler.TypeSystem (18)
parent\parent\Common\TypeSystem\Common\CastingHelper.cs (5)
33
switch (elementType.
UnderlyingType
.Category)
341
TypeDesc fromParamUnderlyingType = curTypesParm.
UnderlyingType
;
356
TypeDesc toParamUnderlyingType = paramType.
UnderlyingType
;
593
TypeDesc fromUnderlyingType = thisType.
UnderlyingType
;
609
TypeDesc toUnderlyingType = otherType.
UnderlyingType
;
parent\parent\Common\TypeSystem\Common\InstantiatedType.cs (1)
317
return _typeDef.
UnderlyingType
;
parent\parent\Common\TypeSystem\Common\MetadataFieldLayoutAlgorithm.cs (5)
344
var fieldSizeAndAlignment = ComputeFieldSizeAndAlignment(fieldType.
UnderlyingType
, hasLayout: true, packingSize, out ComputedFieldData fieldData);
459
var fieldSizeAndAlignment = ComputeFieldSizeAndAlignment(field.FieldType.
UnderlyingType
, hasLayout: true, packingSize, out ComputedFieldData fieldData);
535
var fieldSizeAndAlignment = ComputeFieldSizeAndAlignment(field.FieldType.
UnderlyingType
, hasLayout: true, packingSize, out ComputedFieldData fieldData);
624
var fieldSizeAndAlignment = ComputeFieldSizeAndAlignment(field.FieldType.
UnderlyingType
, hasLayout: true, packingSize, out ComputedFieldData fieldData);
1290
MetadataType metadataType = (MetadataType)type.
UnderlyingType
;
parent\parent\Common\TypeSystem\Ecma\CustomAttributeTypeProvider.cs (1)
64
switch (type.
UnderlyingType
.Category)
parent\parent\Common\TypeSystem\Ecma\EcmaType.cs (1)
461
return base.
UnderlyingType
; // Use the base implementation to get consistent error behavior
parent\parent\Common\TypeSystem\IL\Stubs\ILEmitter.cs (4)
235
switch (type.
UnderlyingType
.Category)
292
switch (type.
UnderlyingType
.Category)
342
switch (type.
UnderlyingType
.Category)
392
switch (type.
UnderlyingType
.Category)
parent\parent\Common\TypeSystem\IL\UnsafeAccessors.cs (1)
178
|| decodedValue.FixedArguments[0].Type.
UnderlyingType
!= context.GetWellKnownType(WellKnownType.Int32))