81 references to System_Enum
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\Parser\KnownTypeSymbols.cs (1)
126Enum = compilation.GetSpecialType(SpecialType.System_Enum);
ILLink.RoslynAnalyzer (1)
TrimAnalysis\GenericParameterProxy.cs (1)
20 if (constraintType.SpecialType == SpecialType.System_Enum)
Microsoft.CodeAnalysis (8)
Symbols\Attributes\CommonAttributeData.cs (4)
419options = attribute.CommonConstructorArguments[0].DecodeValue<MethodImplOptions>(SpecialType.System_Enum); 440var value = (MethodImplAttributes)namedArg.Value.DecodeValue<int>(SpecialType.System_Enum); 477LayoutKind kind = attribute.CommonConstructorArguments[0].DecodeValue<LayoutKind>(SpecialType.System_Enum); 497charSet = namedArg.Value.DecodeValue<CharSet>(SpecialType.System_Enum);
Symbols\Attributes\MarshalAsAttributeDecoder.cs (3)
108unmanagedType = attribute.CommonConstructorArguments[0].DecodeValue<UnmanagedType>(SpecialType.System_Enum); 223elementType = namedArg.Value.DecodeValue<UnmanagedType>(SpecialType.System_Enum); 311elementTypeVariant = namedArg.Value.DecodeValue<Cci.VarEnum>(SpecialType.System_Enum);
Symbols\TypedConstant.cs (1)
143if (_type!.SpecialType == specialType || (_type.TypeKind == TypeKind.Enum && specialType == SpecialType.System_Enum))
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
277case SpecialType.System_Enum:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (1)
1030SpecialType.System_Enum or
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
125symbol.ContainingType?.SpecialType == SpecialType.System_Enum;
Microsoft.CodeAnalysis.CSharp (22)
Binder\Binder_Constraints.cs (3)
521case SpecialType.System_Enum: 532else if (type.SpecialType != SpecialType.System_Enum) 565case SpecialType.System_Enum:
Binder\Binder_Operators.cs (2)
3515if (operandType.IsValueType && targetType.IsClassType() && targetType.SpecialType != SpecialType.System_Enum || 3516targetType.IsValueType && operandType.IsClassType() && operandType.SpecialType != SpecialType.System_Enum)
Binder\Semantics\Conversions\ConversionsBase.cs (1)
3853if (source.SpecialType == SpecialType.System_Enum && destination.IsEnumType())
Binder\Semantics\Operators\OperatorFacts.cs (1)
41case SpecialType.System_Enum:
Symbols\Attributes\AttributeData.cs (2)
580ctorArgument.DecodeValue<ClassInterfaceType>(SpecialType.System_Enum) : 605ctorArgument.DecodeValue<ComInterfaceType>(SpecialType.System_Enum) :
Symbols\ConstraintsHelper.cs (2)
115case SpecialType.System_Enum: 264constraintEffectiveBase = corLibrary.GetSpecialType(SpecialType.System_Enum);
Symbols\Metadata\PE\PENamedTypeSymbol.cs (4)
1780case SpecialType.System_Enum: 1792if (this.SpecialType != SpecialType.System_Enum) 2131else if (TypeKind == TypeKind.Class && SpecialType != SpecialType.System_Enum) 2142case SpecialType.System_Enum:
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
891charSet = namedArg.Value.DecodeValue<CharSet>(SpecialType.System_Enum); 910callingConvention = namedArg.Value.DecodeValue<CallingConvention>(SpecialType.System_Enum);
Symbols\Source\SourceModuleSymbol.cs (1)
561CharSet charSet = attribute.GetConstructorArgument<CharSet>(0, SpecialType.System_Enum);
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (3)
477if (this.SpecialType == SpecialType.System_Enum && baseSpecialType == SpecialType.System_ValueType || 648case SpecialType.System_Enum: 717declaredBase = compilation.GetSpecialType(SpecialType.System_Enum);
Symbols\TypeParameterSymbol.cs (1)
423case SpecialType.System_Enum:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
1393rewrittenType.SpecialType == SpecialType.System_Enum;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\FixIncorrectConstraint\CSharpFixIncorrectConstraintCodeFixProvider.cs (1)
89isEnumConstraint ? SpecialType.System_Enum : SpecialType.System_Delegate));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Emit\EmitMetadataTests.cs (1)
1391Assert.Equal(SpecialType.System_Enum, type.BaseType().SpecialType);
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\FixIncorrectConstraint\CSharpFixIncorrectConstraintCodeFixProvider.cs (1)
89isEnumConstraint ? SpecialType.System_Enum : SpecialType.System_Delegate));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\GenericConstraintsTests.cs (4)
456Assert.Equal(SpecialType.System_Enum, typeParameter.ConstraintTypes().Single().SpecialType); 475Assert.Equal(SpecialType.System_Enum, typeParameter.ConstraintTypes().Single().SpecialType); 494Assert.Equal(SpecialType.System_Enum, typeParameter.ConstraintTypes().Single().SpecialType); 513Assert.Equal(SpecialType.System_Enum, typeParameter.ConstraintTypes().Single().SpecialType);
Utilities\ValueSetTests.cs (1)
508Assert.Null(ForSpecialType(SpecialType.System_Enum));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Symbols\Retargeting\RetargetingTests.cs (4)
346Assert.Equal(SpecialType.System_Enum, sourceType.BaseType().SpecialType); 355Assert.Equal(SpecialType.System_Enum, retargetingType.BaseType().SpecialType); 383Assert.Equal(SpecialType.System_Enum, sourceType.BaseType().SpecialType); 392Assert.Equal(SpecialType.System_Enum, retargetingType.BaseType().SpecialType);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
1393rewrittenType.SpecialType == SpecialType.System_Enum;
Microsoft.CodeAnalysis.Features (3)
Completion\Providers\AbstractObjectInitializerCompletionProvider.cs (1)
142case SpecialType.System_Enum:
GenerateType\AbstractGenerateTypeService.State.cs (1)
251SpecialType.System_Enum)
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (1)
300.WhereAsArray(symbol => !symbol.IsErrorType() && symbol.SpecialType is not (SpecialType.System_Object or SpecialType.System_ValueType or SpecialType.System_Enum));
Microsoft.CodeAnalysis.VisualBasic (19)
CodeGen\EmitConversion.vb (4)
205typeFrom.SpecialType = SpecialType.System_Enum OrElse 381typeTo.SpecialType = SpecialType.System_Enum) 428typeFrom.SpecialType = SpecialType.System_Enum OrElse 511typeTo.SpecialType = SpecialType.System_Enum OrElse
Symbols\Attributes\AttributeData.vb (3)
441ctorArgument.DecodeValue(Of ClassInterfaceType)(SpecialType.System_Enum), 468ctorArgument.DecodeValue(Of ComInterfaceType)(SpecialType.System_Enum), 486ctorArgument.DecodeValue(Of Cci.TypeLibTypeFlags)(SpecialType.System_Enum),
Symbols\ConstraintsHelper.vb (1)
177SpecialType.System_Enum,
Symbols\Metadata\PE\PENamedTypeSymbol.vb (4)
1013If baseCorTypeId = SpecialType.System_Enum Then 1021Me.SpecialType <> SpecialType.System_Enum) Then 1316specialtype <> SpecialType.System_Enum AndAlso specialtype <> SpecialType.System_MulticastDelegate Then 1326Case SpecialType.System_Enum,
Symbols\Source\SourceMethodSymbol.vb (2)
1698charSet = namedArg.Value.DecodeValue(Of CharSet)(SpecialType.System_Enum) 1710callingConvention = namedArg.Value.DecodeValue(Of System.Runtime.InteropServices.CallingConvention)(SpecialType.System_Enum)
Symbols\Source\SourceModuleSymbol.vb (1)
1084Dim charSet As CharSet = attrData.GetConstructorArgument(Of CharSet)(0, SpecialType.System_Enum)
Symbols\Source\SourceNamedTypeSymbol.vb (3)
1257SpecialType.System_Enum, 1388declaredOrDefaultBase = GetSpecialType(SpecialType.System_Enum) 1507Return GetSpecialType(SpecialType.System_Enum)
Symbols\TypeParameterSymbol.vb (1)
257SpecialType.System_Enum
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (4)
SymbolsTests\Retargeting\RetargetingTests.vb (4)
364Assert.Equal(SpecialType.System_Enum, sourceType.BaseType.SpecialType) 373Assert.Equal(SpecialType.System_Enum, retargetingType.BaseType.SpecialType) 402Assert.Equal(SpecialType.System_Enum, sourceType.BaseType.SpecialType) 411Assert.Equal(SpecialType.System_Enum, retargetingType.BaseType.SpecialType)
Microsoft.CodeAnalysis.Workspaces (4)
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
225case SpecialType.System_Enum:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
277case SpecialType.System_Enum:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (1)
1030SpecialType.System_Enum or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
125symbol.ContainingType?.SpecialType == SpecialType.System_Enum;
Microsoft.Interop.ComInterfaceGenerator (1)
ComInterfaceGenerator.cs (1)
304if ((returnSwappedSignatureElements[i].ManagedType is SpecialTypeInfo { SpecialType: SpecialType.System_Int32 or SpecialType.System_Enum } or EnumTypeInfo
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ObjectBrowser\DescriptionBuilder.cs (1)
114not SpecialType.System_Enum and