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