82 references to Enum
Microsoft.AspNetCore.Mvc.Api.Analyzers (2)
SymbolApiConventionMatcher.cs (2)
66attribute.ConstructorArguments[0].Kind != TypedConstantKind.Enum) 88attribute.ConstructorArguments[0].Kind != TypedConstantKind.Enum)
Microsoft.CodeAnalysis (2)
MetadataReader\MetadataDecoder.cs (1)
1549return (type.TypeKind == TypeKind.Enum) ? TypedConstantKind.Enum : TypedConstantKind.Primitive;
Symbols\TypedConstant.cs (1)
185return TypedConstantKind.Enum;
Microsoft.CodeAnalysis.CSharp (17)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.FieldSymbol.cs (1)
155new TypedConstant(manager.System_Diagnostics_DebuggerBrowsableState, TypedConstantKind.Enum, DebuggerBrowsableState.Never))));
Symbols\Attributes\AttributeData.cs (4)
577Debug.Assert(ctorArgument.Kind == TypedConstantKind.Enum || ctorArgument.Kind == TypedConstantKind.Primitive); 579ClassInterfaceType interfaceType = ctorArgument.Kind == TypedConstantKind.Enum ? 602Debug.Assert(ctorArgument.Kind == TypedConstantKind.Enum || ctorArgument.Kind == TypedConstantKind.Primitive); 604ComInterfaceType interfaceType = ctorArgument.Kind == TypedConstantKind.Enum ?
Symbols\Compilation_WellKnownMembers.cs (3)
498TypedConstantKind.Enum, 763var typedConstantDebugMode = new TypedConstant(debuggingModesType, TypedConstantKind.Enum, constantVal); 816new TypedConstant(attributeTargetsType, TypedConstantKind.Enum, targets));
Symbols\Source\SourceAssemblySymbol.cs (1)
1828var typedConstantRequestMinimum = new TypedConstant(securityActionType, TypedConstantKind.Enum, constantValue);
Symbols\Source\SourceComplexParameterSymbol.cs (1)
980SpecialType specialType = arg.Kind == TypedConstantKind.Enum ?
Symbols\TypedConstantExtensions.cs (4)
36if (constant.Kind == TypedConstantKind.Enum) 49Debug.Assert(constant.Kind == TypedConstantKind.Enum); 69Debug.Assert(constant.Kind == TypedConstantKind.Enum); 148Debug.Assert(constant.Kind == TypedConstantKind.Enum);
Symbols\TypeSymbolExtensions.cs (3)
288kind = TypedConstantKind.Enum; 298case TypedConstantKind.Enum: 303if (kind == TypedConstantKind.Array || kind == TypedConstantKind.Enum)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
31case TypedConstantKind.Enum:
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (19)
Attributes\AttributeTests.cs (6)
1435a.VerifyValue(0, TypedConstantKind.Enum, (int)System.Configuration.Assemblies.AssemblyHashAlgorithm.MD5); 1447a.VerifyValue(0, TypedConstantKind.Enum, (int)AssemblyNameFlags.Retargetable); 3115attrs[0].VerifyValue(0, TypedConstantKind.Enum, (int)FileMode.Open); 3116attrs[0].VerifyValue(1, TypedConstantKind.Enum, (int)(BindingFlags.DeclaredOnly | BindingFlags.Public)); 4086attr.VerifyValue(0, TypedConstantKind.Enum, (int)(AttributeTargets.Field | AttributeTargets.Event)); 4966enumerator.Current.VerifyNamedArgumentValue(0, "X", TypedConstantKind.Enum, (int)new DayOfWeek());
Attributes\AttributeTests_Synthesized.cs (1)
108attribute.VerifyValue(0, TypedConstantKind.Enum, (int)expectedDebuggingMode);
Attributes\AttributeTests_WellKnownAttributes.cs (12)
168attrSym.VerifyValue(0, TypedConstantKind.Enum, (int)ComInterfaceType.InterfaceIsIUnknown); 174attrSym.VerifyValue(0, TypedConstantKind.Enum, (int)TypeLibTypeFlags.FAggregatable); 270attrSym.VerifyValue(0, TypedConstantKind.Enum, (int)CallingConvention.StdCall); 274attrSym.VerifyNamedArgumentValue(1, "CharSet", TypedConstantKind.Enum, (int)CharSet.Ansi); 318attrSym.VerifyValue(0, TypedConstantKind.Enum, (int)TypeLibVarFlags.FDisplayBind); 470attrSym.VerifyValue(0, TypedConstantKind.Enum, (int)LayoutKind.Explicit); 474attrSym.VerifyNamedArgumentValue(2, "CharSet", TypedConstantKind.Enum, (int)CharSet.Unicode); 481attrSym.VerifyValue(0, TypedConstantKind.Enum, (int)UnmanagedType.I8); 2482attrSym.VerifyNamedArgumentValue(0, "CallingConvention", TypedConstantKind.Enum, (int)CallingConvention.FastCall); 2490attrSym.VerifyNamedArgumentValue(0, "CharSet", TypedConstantKind.Enum, (int)CharSet.Unicode); 5156attrSym.VerifyValue(0, TypedConstantKind.Enum, (int)AttributeTargets.Class); 5162attrSym.VerifyValue(0, TypedConstantKind.Enum, (int)AttributeTargets.Class);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\Metadata\PE\LoadingAttributes.cs (2)
278a.VerifyNamedArgumentValue(0, "E", TypedConstantKind.Enum, 0); 758attrSym.VerifyNamedArgumentValue(1, "CharSet", TypedConstantKind.Enum, (int)CharSet.Ansi);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Extensions.cs (1)
428case TypedConstantKind.Enum:
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (1)
Metadata\WinMdDumpTest.cs (1)
315case TypedConstantKind.Enum:
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
31case TypedConstantKind.Enum:
Microsoft.CodeAnalysis.VisualBasic (13)
Symbols\Attributes\AttributeData.vb (6)
438Debug.Assert(ctorArgument.Kind = TypedConstantKind.Enum OrElse ctorArgument.Kind = TypedConstantKind.Primitive) 440Dim interfaceType As ClassInterfaceType = If(ctorArgument.Kind = TypedConstantKind.Enum, 465Debug.Assert(ctorArgument.Kind = TypedConstantKind.Enum OrElse ctorArgument.Kind = TypedConstantKind.Primitive) 467interfaceType = If(ctorArgument.Kind = TypedConstantKind.Enum, 483Debug.Assert(ctorArgument.Kind = TypedConstantKind.Enum OrElse ctorArgument.Kind = TypedConstantKind.Primitive) 485Return If(ctorArgument.Kind = TypedConstantKind.Enum,
Symbols\Source\SourceAssemblySymbol.vb (1)
1606Dim typedConstantDebugMode = New TypedConstant(int32Type, TypedConstantKind.Enum, CInt(debuggingMode))
Symbols\Source\SourceNamedTypeSymbol.vb (1)
2512New TypedConstant(GetSpecialType(SpecialType.System_Int32), TypedConstantKind.Enum, CInt(ClassInterfaceType.None)))))
Symbols\Source\SourceParameterSymbol.vb (1)
421Dim specialType = If(arg.Kind = TypedConstantKind.Enum,
Symbols\TypedConstant.vb (2)
41If constant.Kind = TypedConstantKind.Enum Then 51Debug.Assert(constant.Kind = TypedConstantKind.Enum)
Symbols\WellKnownMembers.vb (2)
261TypedConstantKind.Enum, 277TypedConstantKind.Enum,
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (1)
20Case TypedConstantKind.Primitive, TypedConstantKind.Enum
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (20)
Attributes\AttributeTests.vb (5)
267Assert.Equal(TypedConstantKind.Enum, a.CommonConstructorArguments(0).Kind) 282Assert.Equal(TypedConstantKind.Enum, a.CommonConstructorArguments(0).Kind) 792attrs(0).VerifyValue(0, TypedConstantKind.Enum, CInt(FileMode.Open)) 793attrs(0).VerifyValue(1, TypedConstantKind.Enum, CInt(BindingFlags.DeclaredOnly Or BindingFlags.Public)) 1221Assert.Equal(tc.Kind, TypedConstantKind.Enum)
Attributes\AttributeTests_Synthesized.vb (1)
1041attribute.VerifyValue(0, TypedConstantKind.Enum, CInt(expectedDebuggingMode))
Attributes\AttributeTests_WellKnownAttributes.vb (8)
420attrSym.VerifyValue(0, TypedConstantKind.Enum, CInt(LayoutKind.Explicit)) 424attrSym.VerifyValue(2, "CharSet", TypedConstantKind.Enum, CInt(CharSet.Unicode)) 431attrSym.VerifyValue(0, TypedConstantKind.Enum, CInt(UnmanagedType.I8)) 1233Assert.Equal(TypedConstantKind.Enum, attrSym.CommonNamedArguments(0).Value.Kind) 1244Assert.Equal(TypedConstantKind.Enum, attrSym.CommonNamedArguments(0).Value.Kind) 1470Assert.Equal(TypedConstantKind.Enum, attrSym.CommonNamedArguments(0).Value.Kind) 3707Assert.Equal(TypedConstantKind.Enum, attrSym.CommonConstructorArguments(0).Kind) 3716Assert.Equal(TypedConstantKind.Enum, attrSym.CommonConstructorArguments(0).Kind)
Emit\CompilationEmitTests.vb (6)
3291typeAttribute.VerifyValue(0, TypedConstantKind.Enum, CInt(DeclarativeSecurityAction.RequestOptional)) 3301typeAttribute.VerifyValue(0, TypedConstantKind.Enum, CInt(DeclarativeSecurityAction.RequestMinimum)) 3321typeAttribute.VerifyValue(0, TypedConstantKind.Enum, CInt(DeclarativeSecurityAction.Demand)) 3331typeAttribute.VerifyValue(0, TypedConstantKind.Enum, CInt(DeclarativeSecurityAction.Assert)) 3346methodAttribute.VerifyValue(0, TypedConstantKind.Enum, CInt(DeclarativeSecurityAction.Demand)) 3356methodAttribute.VerifyValue(0, TypedConstantKind.Enum, CInt(DeclarativeSecurityAction.Assert))
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
Extensions.vb (1)
183Case TypedConstantKind.Enum
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (1)
20Case TypedConstantKind.Primitive, TypedConstantKind.Enum