76 references to System_Enum
Microsoft.CodeAnalysis (8)
Symbols\Attributes\CommonAttributeData.cs (4)
377options = attribute.CommonConstructorArguments[0].DecodeValue<MethodImplOptions>(SpecialType.System_Enum); 398var value = (MethodImplAttributes)namedArg.Value.DecodeValue<int>(SpecialType.System_Enum); 435LayoutKind kind = attribute.CommonConstructorArguments[0].DecodeValue<LayoutKind>(SpecialType.System_Enum); 455charSet = 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); 300elementTypeVariant = namedArg.Value.DecodeValue<Cci.VarEnum>(SpecialType.System_Enum);
Symbols\TypedConstant.cs (1)
141if (_type!.SpecialType == specialType || (_type.TypeKind == TypeKind.Enum && specialType == SpecialType.System_Enum))
Microsoft.CodeAnalysis.CodeStyle (2)
AbstractSpeculationAnalyzer.cs (1)
992SpecialType.System_Enum or
ITypeSymbolExtensions.cs (1)
275case SpecialType.System_Enum:
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
127symbol.ContainingType?.SpecialType == SpecialType.System_Enum;
Microsoft.CodeAnalysis.CSharp (21)
Binder\Binder_Constraints.cs (3)
480case SpecialType.System_Enum: 491else if (type.SpecialType != SpecialType.System_Enum) 524case SpecialType.System_Enum:
Binder\Binder_Operators.cs (2)
3465if (operandType.IsValueType && targetType.IsClassType() && targetType.SpecialType != SpecialType.System_Enum || 3466targetType.IsValueType && operandType.IsClassType() && operandType.SpecialType != SpecialType.System_Enum)
Binder\Semantics\Conversions\ConversionsBase.cs (1)
3614if (source.SpecialType == SpecialType.System_Enum && destination.IsEnumType())
Binder\Semantics\Operators\OperatorFacts.cs (1)
41case SpecialType.System_Enum:
Symbols\Attributes\AttributeData.cs (2)
600ctorArgument.DecodeValue<ClassInterfaceType>(SpecialType.System_Enum) : 626ctorArgument.DecodeValue<ComInterfaceType>(SpecialType.System_Enum) :
Symbols\ConstraintsHelper.cs (1)
235constraintEffectiveBase = corLibrary.GetSpecialType(SpecialType.System_Enum);
Symbols\Metadata\PE\PENamedTypeSymbol.cs (4)
1767case SpecialType.System_Enum: 1779if (this.SpecialType != SpecialType.System_Enum) 2091else if (TypeKind == TypeKind.Class && SpecialType != SpecialType.System_Enum) 2102case SpecialType.System_Enum:
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
832charSet = namedArg.Value.DecodeValue<CharSet>(SpecialType.System_Enum); 851callingConvention = namedArg.Value.DecodeValue<CallingConvention>(SpecialType.System_Enum);
Symbols\Source\SourceModuleSymbol.cs (1)
515CharSet charSet = attribute.GetConstructorArgument<CharSet>(0, SpecialType.System_Enum);
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (3)
476if (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)
CastSimplifier.cs (1)
1217rewrittenType.SpecialType == SpecialType.System_Enum;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
CSharpFixIncorrectConstraintCodeFixProvider.cs (1)
95isEnumConstraint ? 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)
CSharpFixIncorrectConstraintCodeFixProvider.cs (1)
95isEnumConstraint ? 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)
CastSimplifier.cs (1)
1217rewrittenType.SpecialType == SpecialType.System_Enum;
Microsoft.CodeAnalysis.Features (2)
GenerateType\AbstractGenerateTypeService.State.cs (1)
256SpecialType.System_Enum)
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (1)
288.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)
444ctorArgument.DecodeValue(Of ClassInterfaceType)(SpecialType.System_Enum), 471ctorArgument.DecodeValue(Of ComInterfaceType)(SpecialType.System_Enum), 489ctorArgument.DecodeValue(Of Cci.TypeLibTypeFlags)(SpecialType.System_Enum),
Symbols\ConstraintsHelper.vb (1)
177SpecialType.System_Enum,
Symbols\Metadata\PE\PENamedTypeSymbol.vb (4)
1011If baseCorTypeId = SpecialType.System_Enum Then 1019Me.SpecialType <> SpecialType.System_Enum) Then 1294specialtype <> SpecialType.System_Enum AndAlso specialtype <> SpecialType.System_MulticastDelegate Then 1304Case SpecialType.System_Enum,
Symbols\Source\SourceMethodSymbol.vb (2)
1678charSet = namedArg.Value.DecodeValue(Of CharSet)(SpecialType.System_Enum) 1690callingConvention = namedArg.Value.DecodeValue(Of System.Runtime.InteropServices.CallingConvention)(SpecialType.System_Enum)
Symbols\Source\SourceModuleSymbol.vb (1)
1098Dim charSet As CharSet = attrData.GetConstructorArgument(Of CharSet)(0, SpecialType.System_Enum)
Symbols\Source\SourceNamedTypeSymbol.vb (3)
1257SpecialType.System_Enum, 1388declaredOrDefaultBase = GetSpecialType(SpecialType.System_Enum) 1502Return GetSpecialType(SpecialType.System_Enum)
Symbols\TypeParameterSymbol.vb (1)
257SpecialType.System_Enum
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (4)
SymbolsTests\Retargeting\RetargetingTests.vb (4)
363Assert.Equal(SpecialType.System_Enum, sourceType.BaseType.SpecialType) 372Assert.Equal(SpecialType.System_Enum, retargetingType.BaseType.SpecialType) 401Assert.Equal(SpecialType.System_Enum, sourceType.BaseType.SpecialType) 410Assert.Equal(SpecialType.System_Enum, retargetingType.BaseType.SpecialType)
Microsoft.CodeAnalysis.Workspaces (4)
AbstractSpeculationAnalyzer.cs (1)
992SpecialType.System_Enum or
AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
127symbol.ContainingType?.SpecialType == SpecialType.System_Enum;
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
225case SpecialType.System_Enum:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs\ITypeSymbolExtensions.cs (1)
275case SpecialType.System_Enum:
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ObjectBrowser\DescriptionBuilder.cs (1)
117not SpecialType.System_Enum and