132 references to DeclaredSymbolInfoKind
Microsoft.CodeAnalysis.CSharp.Features (13)
SolutionExplorer\CSharpSolutionExplorerSymbolTreeItemProvider.cs (13)
100DeclaredSymbolInfoKind.Enum, GetAccessibility(enumDeclaration.GetRequiredParent(), enumDeclaration.Modifiers)); 121DeclaredSymbolInfoKind.Delegate, GetAccessibility(delegateDeclaration.GetRequiredParent(), delegateDeclaration.Modifiers)); 187isExtension ? DeclaredSymbolInfoKind.ExtensionMethod : DeclaredSymbolInfoKind.Method, accessibility); 207var kind = fieldDeclaration is EventFieldDeclarationSyntax 208? DeclaredSymbolInfoKind.Event 209: DeclaredSymbolInfoKind.Field; 230var glyph = GlyphExtensions.GetGlyph(DeclaredSymbolInfoKind.Operator, accessibility); 250var glyph = GlyphExtensions.GetGlyph(DeclaredSymbolInfoKind.Operator, accessibility); 270var glyph = GlyphExtensions.GetGlyph(DeclaredSymbolInfoKind.Constructor, accessibility); 288var glyph = GlyphExtensions.GetGlyph(DeclaredSymbolInfoKind.Property, accessibility); 306var glyph = GlyphExtensions.GetGlyph(DeclaredSymbolInfoKind.Event, accessibility); 328var glyph = GlyphExtensions.GetGlyph(DeclaredSymbolInfoKind.Indexer, accessibility);
Microsoft.CodeAnalysis.CSharp.Workspaces (21)
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (15)
195DeclaredSymbolInfoKind.Method, 259DeclaredSymbolInfoKind.Enum, 287DeclaredSymbolInfoKind.Constructor, 303DeclaredSymbolInfoKind.Delegate, 317DeclaredSymbolInfoKind.EnumMember, 331DeclaredSymbolInfoKind.Event, 345DeclaredSymbolInfoKind.Indexer, 360isExtensionMethod ? DeclaredSymbolInfoKind.ExtensionMethod : DeclaredSymbolInfoKind.Method, 376DeclaredSymbolInfoKind.Property, 386var kind = fieldDeclaration is EventFieldDeclarationSyntax 387? DeclaredSymbolInfoKind.Event 389? DeclaredSymbolInfoKind.Constant 390: DeclaredSymbolInfoKind.Field; 449DeclaredSymbolInfoKind.Property,
FindSymbols\FindSymbolsUtilities.cs (6)
57public static DeclaredSymbolInfoKind GetDeclaredSymbolInfoKind(TypeDeclarationSyntax typeDeclaration) 61SyntaxKind.ClassDeclaration => DeclaredSymbolInfoKind.Class, 62SyntaxKind.InterfaceDeclaration => DeclaredSymbolInfoKind.Interface, 63SyntaxKind.StructDeclaration => DeclaredSymbolInfoKind.Struct, 64SyntaxKind.RecordDeclaration => DeclaredSymbolInfoKind.Record, 65SyntaxKind.RecordStructDeclaration => DeclaredSymbolInfoKind.RecordStruct,
Microsoft.CodeAnalysis.Features (67)
Common\GlyphExtensions.cs (19)
249public static Glyph GetGlyph(DeclaredSymbolInfoKind kind, Accessibility accessibility) 277private static Glyph GetPublicGlyph(DeclaredSymbolInfoKind kind) 280DeclaredSymbolInfoKind.Class => Glyph.ClassPublic, 281DeclaredSymbolInfoKind.Constant => Glyph.ConstantPublic, 282DeclaredSymbolInfoKind.Constructor => Glyph.MethodPublic, 283DeclaredSymbolInfoKind.Delegate => Glyph.DelegatePublic, 284DeclaredSymbolInfoKind.Enum => Glyph.EnumPublic, 285DeclaredSymbolInfoKind.EnumMember => Glyph.EnumMemberPublic, 286DeclaredSymbolInfoKind.Event => Glyph.EventPublic, 287DeclaredSymbolInfoKind.ExtensionMethod => Glyph.ExtensionMethodPublic, 288DeclaredSymbolInfoKind.Field => Glyph.FieldPublic, 289DeclaredSymbolInfoKind.Indexer => Glyph.PropertyPublic, 290DeclaredSymbolInfoKind.Interface => Glyph.InterfacePublic, 291DeclaredSymbolInfoKind.Method => Glyph.MethodPublic, 292DeclaredSymbolInfoKind.Module => Glyph.ModulePublic, 293DeclaredSymbolInfoKind.Operator => Glyph.OperatorPublic, 294DeclaredSymbolInfoKind.Property => Glyph.PropertyPublic, 295DeclaredSymbolInfoKind.Struct => Glyph.StructurePublic, 296DeclaredSymbolInfoKind.RecordStruct => Glyph.StructurePublic,
ExternalAccess\UnitTesting\API\UnitTestingSearchHelpers.cs (2)
215if (info.Kind is not (DeclaredSymbolInfoKind.Method or DeclaredSymbolInfoKind.ExtensionMethod))
NavigateTo\AbstractNavigateToSearchService.InProcess.cs (39)
96if (declaredSymbolInfo.Kind == DeclaredSymbolInfoKind.Namespace) 189case DeclaredSymbolInfoKind.Class: 190case DeclaredSymbolInfoKind.Record: 192case DeclaredSymbolInfoKind.RecordStruct: 194case DeclaredSymbolInfoKind.Constant: 196case DeclaredSymbolInfoKind.Delegate: 198case DeclaredSymbolInfoKind.Enum: 200case DeclaredSymbolInfoKind.EnumMember: 202case DeclaredSymbolInfoKind.Event: 204case DeclaredSymbolInfoKind.Field: 206case DeclaredSymbolInfoKind.Interface: 208case DeclaredSymbolInfoKind.Constructor: 209case DeclaredSymbolInfoKind.ExtensionMethod: 210case DeclaredSymbolInfoKind.Method: 212case DeclaredSymbolInfoKind.Module: 214case DeclaredSymbolInfoKind.Indexer: 215case DeclaredSymbolInfoKind.Property: 217case DeclaredSymbolInfoKind.Struct: 219case DeclaredSymbolInfoKind.Operator: 253Debug.Assert(Enum.GetUnderlyingType(typeof(DeclaredSymbolInfoKind)) == typeof(byte)); 255var lookupTable = new bool[Enum.GetValues<DeclaredSymbolInfoKind>().Length]; 261lookupTable[(int)DeclaredSymbolInfoKind.Class] = true; 262lookupTable[(int)DeclaredSymbolInfoKind.Record] = true; 265lookupTable[(int)DeclaredSymbolInfoKind.Constant] = true; 269lookupTable[(int)DeclaredSymbolInfoKind.Delegate] = true; 273lookupTable[(int)DeclaredSymbolInfoKind.Enum] = true; 277lookupTable[(int)DeclaredSymbolInfoKind.EnumMember] = true; 281lookupTable[(int)DeclaredSymbolInfoKind.Event] = true; 285lookupTable[(int)DeclaredSymbolInfoKind.Field] = true; 289lookupTable[(int)DeclaredSymbolInfoKind.Interface] = true; 293lookupTable[(int)DeclaredSymbolInfoKind.Constructor] = true; 294lookupTable[(int)DeclaredSymbolInfoKind.ExtensionMethod] = true; 295lookupTable[(int)DeclaredSymbolInfoKind.Method] = true; 299lookupTable[(int)DeclaredSymbolInfoKind.Module] = true; 303lookupTable[(int)DeclaredSymbolInfoKind.Indexer] = true; 304lookupTable[(int)DeclaredSymbolInfoKind.Property] = true; 308lookupTable[(int)DeclaredSymbolInfoKind.Struct] = true; 309lookupTable[(int)DeclaredSymbolInfoKind.RecordStruct] = true; 321public bool Contains(DeclaredSymbolInfoKind item)
NavigateTo\RoslynNavigateToItem.cs (7)
184case DeclaredSymbolInfoKind.Class: 185case DeclaredSymbolInfoKind.Record: 186case DeclaredSymbolInfoKind.Enum: 187case DeclaredSymbolInfoKind.Interface: 188case DeclaredSymbolInfoKind.Module: 189case DeclaredSymbolInfoKind.Struct: 190case DeclaredSymbolInfoKind.RecordStruct:
Microsoft.CodeAnalysis.Workspaces (31)
FindSymbols\FindReferences\DependentTypeFinder_ProjectIndex.cs (6)
96case DeclaredSymbolInfoKind.Class: 97case DeclaredSymbolInfoKind.Record: 100case DeclaredSymbolInfoKind.Enum: 103case DeclaredSymbolInfoKind.Struct: 104case DeclaredSymbolInfoKind.RecordStruct: 107case DeclaredSymbolInfoKind.Delegate:
FindSymbols\TopLevelSyntaxTree\DeclaredSymbolInfo.cs (4)
101public DeclaredSymbolInfoKind Kind => GetKind(_flags); 117DeclaredSymbolInfoKind kind, 160private static DeclaredSymbolInfoKind GetKind(uint flags) 161=> (DeclaredSymbolInfoKind)(flags & Lower5BitMask);
LanguageServices\DeclaredSymbolFactoryService\AbstractDeclaredSymbolInfoFactoryService.cs (2)
275declaredSymbolInfos.Last().Kind == DeclaredSymbolInfoKind.ExtensionMethod && 314DeclaredSymbolInfoKind.Namespace,
Workspace\Solution\Project.cs (19)
439case DeclaredSymbolInfoKind.Namespace: 441case DeclaredSymbolInfoKind.Class: 442case DeclaredSymbolInfoKind.Delegate: 443case DeclaredSymbolInfoKind.Enum: 444case DeclaredSymbolInfoKind.Interface: 445case DeclaredSymbolInfoKind.Module: 446case DeclaredSymbolInfoKind.Record: 447case DeclaredSymbolInfoKind.RecordStruct: 448case DeclaredSymbolInfoKind.Struct: 450case DeclaredSymbolInfoKind.Constant: 451case DeclaredSymbolInfoKind.Constructor: 452case DeclaredSymbolInfoKind.EnumMember: 453case DeclaredSymbolInfoKind.Event: 454case DeclaredSymbolInfoKind.ExtensionMethod: 455case DeclaredSymbolInfoKind.Field: 456case DeclaredSymbolInfoKind.Indexer: 457case DeclaredSymbolInfoKind.Method: 458case DeclaredSymbolInfoKind.Property: 459case DeclaredSymbolInfoKind.Operator: