61 references to IsEnum
ILCompiler.Compiler (22)
Compiler\BodySubstitutionParser.cs (1)
167
if (type.
IsEnum
&& type.UnderlyingType.Category == TypeFlags.Int32)
Compiler\CompilerTypeSystemContext.GetFieldMethodOverrides.cs (1)
93
if (valueType.
IsEnum
)
Compiler\Dataflow\HandleCallAction.cs (1)
271
if (systemTypeValue.RepresentedType.Type.
IsEnum
)
Compiler\DependencyAnalysis\TypeMetadataNode.cs (1)
60
if (_type.
IsEnum
)
Compiler\SubstitutedILProvider.cs (1)
1008
"get_IsEnum" => type.
IsEnum
? 1 : 0,
Compiler\UserDefinedTypeDescriptor.cs (2)
288
else if (type.
IsEnum
)
401
Debug.Assert(type.
IsEnum
, "GetEnumTypeIndex was called with wrong type");
IL\ILImporter.Scanner.cs (1)
743
if (constrained.
IsEnum
)
IL\RvaIntrinsicPatternAnalyzer.cs (2)
281
if (elementType.
IsEnum
)
344
&& (method.Instantiation[0].IsPrimitive || method.Instantiation[0].
IsEnum
))
parent\parent\Common\TypeSystem\IL\NativeAotILProvider.cs (3)
151
if (!elementType.
IsEnum
)
190
if (!elementType.
IsEnum
)
255
if (elementType.
IsEnum
)
parent\parent\Common\TypeSystem\IL\Stubs\ComparerIntrinsics.cs (2)
102
if (type.
IsEnum
)
283
if (fieldType.IsPrimitive || fieldType.
IsEnum
|| fieldType.IsPointer || fieldType.IsFunctionPointer)
parent\parent\Common\TypeSystem\IL\Stubs\DynamicInvokeMethodThunk.cs (1)
66
if (type.
IsEnum
)
parent\parent\Common\TypeSystem\IL\Stubs\GetFieldHelperMethodOverride.cs (1)
139
if (fieldTypeForOptimizationChecks.
IsEnum
)
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\Interop\IL\MarshalHelpers.cs (4)
239
if (type.IsValueType && !type.IsPrimitive && !type.
IsEnum
&& !isField
371
if (type.
IsEnum
)
517
if (type.IsValueType && !type.IsPrimitive && !type.
IsEnum
&& !isField
754
if (elementType.
IsEnum
)
ILCompiler.ReadyToRun (21)
Compiler\DependencyAnalysis\ReadyToRun\TypeValidationChecker.cs (1)
183
if (type.
IsEnum
)
Compiler\ReadyToRunCodegenCompilation.cs (1)
613
if (type.IsPrimitive || type.
IsEnum
)
Compiler\ReadyToRunCompilationModuleGroupBase.cs (1)
326
type.
IsEnum
||
Compiler\ReadyToRunCompilerContext.cs (1)
172
return !fieldType.IsPrimitive && !fieldType.
IsEnum
; // In CoreCLR, all structs are implicitly boxed i.e. stored as GC pointers
Compiler\ReadyToRunMetadataFieldLayoutAlgorithm.cs (2)
125
else if (fieldType.
IsEnum
)
226
else if (fieldDesc.FieldType.
IsEnum
)
JitInterface\CorInfoImpl.ReadyToRun.cs (1)
2010
if (constrainedType.
IsEnum
&& originalMethod.Name == "GetHashCode"u8)
parent\parent\Common\JitInterface\CorInfoImpl.cs (4)
993
if (type.
IsEnum
)
3057
if (!type.IsPrimitive && !type.
IsEnum
)
3205
if (type.IsPrimitive || type.
IsEnum
)
3276
if (type.
IsEnum
)
parent\parent\Common\TypeSystem\IL\Stubs\ComparerIntrinsics.cs (2)
102
if (type.
IsEnum
)
283
if (fieldType.IsPrimitive || fieldType.
IsEnum
|| fieldType.IsPointer || fieldType.IsFunctionPointer)
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\Interop\IL\MarshalHelpers.cs (4)
239
if (type.IsValueType && !type.IsPrimitive && !type.
IsEnum
&& !isField
371
if (type.
IsEnum
)
517
if (type.IsValueType && !type.IsPrimitive && !type.
IsEnum
&& !isField
754
if (elementType.
IsEnum
)
PortableCallHelpers\PInvokeTableGenerator.cs (3)
398
if (!type.IsValueType || type.IsPrimitive || type.
IsEnum
|| type is FunctionPointerType)
409
if (type.
IsEnum
)
435
if (type.
IsEnum
)
ILCompiler.RyuJit (5)
JitInterface\CorInfoImpl.RyuJit.cs (1)
1245
if (constrainedType.
IsEnum
)
parent\parent\Common\JitInterface\CorInfoImpl.cs (4)
993
if (type.
IsEnum
)
3057
if (!type.IsPrimitive && !type.
IsEnum
)
3205
if (type.IsPrimitive || type.
IsEnum
)
3276
if (type.
IsEnum
)
ILCompiler.TypeSystem (13)
parent\parent\Common\TypeSystem\Common\CastingHelper.cs (1)
393
Debug.Assert(!type.
IsEnum
);
parent\parent\Common\TypeSystem\Common\CastingHelper.TypeEquivalence.cs (3)
159
if ((type1.
IsEnum
!= type2.
IsEnum
) || (type1.IsValueType != type2.IsValueType))
164
if (type1.
IsEnum
)
parent\parent\Common\TypeSystem\Common\InstantiatedType.cs (1)
314
if (!
IsEnum
)
parent\parent\Common\TypeSystem\Common\MetadataFieldLayoutAlgorithm.cs (6)
83
if (type.
IsEnum
&& numInstanceFields != 1)
149
if (type.
IsEnum
)
784
Debug.Assert(fieldType.IsPrimitive || fieldType.IsPointer || fieldType.IsFunctionPointer || fieldType.
IsEnum
|| fieldType.IsByRef);
854
Debug.Assert(fieldType.IsPrimitive || fieldType.IsPointer || fieldType.IsFunctionPointer || fieldType.
IsEnum
|| fieldType.IsByRef);
858
if (fieldType.IsPrimitive || fieldType.
IsEnum
)
1102
return type.IsValueType && !type.IsPrimitive && !type.
IsEnum
;
parent\parent\Common\TypeSystem\Common\TypeDesc.cs (1)
474
if (!this.
IsEnum
)
parent\parent\Common\TypeSystem\Ecma\EcmaType.cs (1)
451
if (!
IsEnum
)