143 references to DeclaredSymbolInfoKind
IdeCoreBenchmarks (2)
NavigateToFuzzyPreFilterBenchmarks.cs (1)
172
DeclaredSymbolInfoKind
.Method, Accessibility.Public,
NavigateToPreFilterBenchmarks.cs (1)
406
DeclaredSymbolInfoKind
.Method, Accessibility.Public,
Microsoft.CodeAnalysis.CSharp.Features (14)
SolutionExplorer\CSharpSolutionExplorerSymbolTreeItemProvider.cs (14)
118
DeclaredSymbolInfoKind
.Enum, GetAccessibility(enumDeclaration.GetRequiredParent(), enumDeclaration.Modifiers));
139
DeclaredSymbolInfoKind
.Delegate, GetAccessibility(delegateDeclaration.GetRequiredParent(), delegateDeclaration.Modifiers));
205
isExtension ?
DeclaredSymbolInfoKind
.ExtensionMethod :
DeclaredSymbolInfoKind
.Method, accessibility);
228
DeclaredSymbolInfoKind
kind;
231
kind =
DeclaredSymbolInfoKind
.Event;
235
kind =
DeclaredSymbolInfoKind
.Constant;
239
kind =
DeclaredSymbolInfoKind
.Field;
261
var glyph = GlyphExtensions.GetGlyph(
DeclaredSymbolInfoKind
.Operator, accessibility);
281
var glyph = GlyphExtensions.GetGlyph(
DeclaredSymbolInfoKind
.Operator, accessibility);
301
var glyph = GlyphExtensions.GetGlyph(
DeclaredSymbolInfoKind
.Constructor, accessibility);
319
var glyph = GlyphExtensions.GetGlyph(
DeclaredSymbolInfoKind
.Property, accessibility);
337
var glyph = GlyphExtensions.GetGlyph(
DeclaredSymbolInfoKind
.Event, accessibility);
359
var glyph = GlyphExtensions.GetGlyph(
DeclaredSymbolInfoKind
.Indexer, accessibility);
Microsoft.CodeAnalysis.CSharp.Workspaces (22)
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (15)
189
DeclaredSymbolInfoKind
.Method,
253
DeclaredSymbolInfoKind
.Enum,
281
DeclaredSymbolInfoKind
.Constructor,
297
DeclaredSymbolInfoKind
.Delegate,
311
DeclaredSymbolInfoKind
.EnumMember,
325
DeclaredSymbolInfoKind
.Event,
339
DeclaredSymbolInfoKind
.Indexer,
354
isExtensionMethod ?
DeclaredSymbolInfoKind
.ExtensionMethod :
DeclaredSymbolInfoKind
.Method,
370
DeclaredSymbolInfoKind
.Property,
380
var
kind = fieldDeclaration is EventFieldDeclarationSyntax
381
?
DeclaredSymbolInfoKind
.Event
383
?
DeclaredSymbolInfoKind
.Constant
384
:
DeclaredSymbolInfoKind
.Field;
443
DeclaredSymbolInfoKind
.Property,
FindSymbols\FindSymbolsUtilities.cs (7)
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,
66
SyntaxKind.UnionDeclaration =>
DeclaredSymbolInfoKind
.Union,
Microsoft.CodeAnalysis.Features (71)
Common\GlyphExtensions.cs (20)
252
public static Glyph GetGlyph(
DeclaredSymbolInfoKind
kind, Accessibility accessibility)
280
private static Glyph GetPublicGlyph(
DeclaredSymbolInfoKind
kind)
283
DeclaredSymbolInfoKind
.Class => Glyph.ClassPublic,
284
DeclaredSymbolInfoKind
.Constant => Glyph.ConstantPublic,
285
DeclaredSymbolInfoKind
.Constructor => Glyph.MethodPublic,
286
DeclaredSymbolInfoKind
.Delegate => Glyph.DelegatePublic,
287
DeclaredSymbolInfoKind
.Enum => Glyph.EnumPublic,
288
DeclaredSymbolInfoKind
.EnumMember => Glyph.EnumMemberPublic,
289
DeclaredSymbolInfoKind
.Event => Glyph.EventPublic,
290
DeclaredSymbolInfoKind
.ExtensionMethod => Glyph.ExtensionMethodPublic,
291
DeclaredSymbolInfoKind
.Field => Glyph.FieldPublic,
292
DeclaredSymbolInfoKind
.Indexer => Glyph.PropertyPublic,
293
DeclaredSymbolInfoKind
.Interface => Glyph.InterfacePublic,
294
DeclaredSymbolInfoKind
.Method => Glyph.MethodPublic,
295
DeclaredSymbolInfoKind
.Module => Glyph.ModulePublic,
296
DeclaredSymbolInfoKind
.Operator => Glyph.OperatorPublic,
297
DeclaredSymbolInfoKind
.Property => Glyph.PropertyPublic,
298
DeclaredSymbolInfoKind
.Struct => Glyph.StructurePublic,
299
DeclaredSymbolInfoKind
.RecordStruct => Glyph.StructurePublic,
300
DeclaredSymbolInfoKind
.Union => Glyph.StructurePublic,
ExternalAccess\UnitTesting\API\UnitTestingSearchHelpers.cs (2)
215
if (info.Kind is not (
DeclaredSymbolInfoKind
.Method or
DeclaredSymbolInfoKind
.ExtensionMethod))
NavigateTo\AbstractNavigateToSearchService.InProcess.cs (41)
103
if (declaredSymbolInfo.Kind ==
DeclaredSymbolInfoKind
.Namespace)
196
case
DeclaredSymbolInfoKind
.Class:
197
case
DeclaredSymbolInfoKind
.Record:
199
case
DeclaredSymbolInfoKind
.RecordStruct:
201
case
DeclaredSymbolInfoKind
.Constant:
203
case
DeclaredSymbolInfoKind
.Delegate:
205
case
DeclaredSymbolInfoKind
.Enum:
207
case
DeclaredSymbolInfoKind
.EnumMember:
209
case
DeclaredSymbolInfoKind
.Event:
211
case
DeclaredSymbolInfoKind
.Field:
213
case
DeclaredSymbolInfoKind
.Interface:
215
case
DeclaredSymbolInfoKind
.Constructor:
216
case
DeclaredSymbolInfoKind
.ExtensionMethod:
217
case
DeclaredSymbolInfoKind
.Method:
219
case
DeclaredSymbolInfoKind
.Module:
221
case
DeclaredSymbolInfoKind
.Indexer:
222
case
DeclaredSymbolInfoKind
.Property:
224
case
DeclaredSymbolInfoKind
.Struct:
227
case
DeclaredSymbolInfoKind
.Union:
229
case
DeclaredSymbolInfoKind
.Operator:
263
Debug.Assert(Enum.GetUnderlyingType(typeof(
DeclaredSymbolInfoKind
)) == typeof(byte));
265
var lookupTable = new bool[Enum.GetValues<
DeclaredSymbolInfoKind
>().Length];
271
lookupTable[(int)
DeclaredSymbolInfoKind
.Class] = true;
272
lookupTable[(int)
DeclaredSymbolInfoKind
.Record] = true;
275
lookupTable[(int)
DeclaredSymbolInfoKind
.Constant] = true;
279
lookupTable[(int)
DeclaredSymbolInfoKind
.Delegate] = true;
283
lookupTable[(int)
DeclaredSymbolInfoKind
.Enum] = true;
287
lookupTable[(int)
DeclaredSymbolInfoKind
.EnumMember] = true;
291
lookupTable[(int)
DeclaredSymbolInfoKind
.Event] = true;
295
lookupTable[(int)
DeclaredSymbolInfoKind
.Field] = true;
299
lookupTable[(int)
DeclaredSymbolInfoKind
.Interface] = true;
303
lookupTable[(int)
DeclaredSymbolInfoKind
.Constructor] = true;
304
lookupTable[(int)
DeclaredSymbolInfoKind
.ExtensionMethod] = true;
305
lookupTable[(int)
DeclaredSymbolInfoKind
.Method] = true;
309
lookupTable[(int)
DeclaredSymbolInfoKind
.Module] = true;
313
lookupTable[(int)
DeclaredSymbolInfoKind
.Indexer] = true;
314
lookupTable[(int)
DeclaredSymbolInfoKind
.Property] = true;
318
lookupTable[(int)
DeclaredSymbolInfoKind
.Struct] = true;
319
lookupTable[(int)
DeclaredSymbolInfoKind
.RecordStruct] = true;
320
lookupTable[(int)
DeclaredSymbolInfoKind
.Union] = true;
332
public bool Contains(
DeclaredSymbolInfoKind
item)
NavigateTo\RoslynNavigateToItem.cs (8)
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:
191
case
DeclaredSymbolInfoKind
.Union:
Microsoft.CodeAnalysis.Workspaces (33)
FindSymbols\FindReferences\DependentTypeFinder_ProjectIndex.cs (7)
96
case
DeclaredSymbolInfoKind
.Class:
97
case
DeclaredSymbolInfoKind
.Record:
100
case
DeclaredSymbolInfoKind
.Enum:
103
case
DeclaredSymbolInfoKind
.Struct:
104
case
DeclaredSymbolInfoKind
.RecordStruct:
105
case
DeclaredSymbolInfoKind
.Union:
108
case
DeclaredSymbolInfoKind
.Delegate:
FindSymbols\TopLevelSyntaxTree\DeclaredSymbolInfo.cs (4)
105
public
DeclaredSymbolInfoKind
Kind => GetKind(_flags);
121
DeclaredSymbolInfoKind
kind,
164
private static
DeclaredSymbolInfoKind
GetKind(uint flags)
165
=> (
DeclaredSymbolInfoKind
)(flags & Lower5BitMask);
LanguageServices\DeclaredSymbolFactoryService\AbstractDeclaredSymbolInfoFactoryService.cs (2)
287
if (declaredSymbolInfos.Last().Kind ==
DeclaredSymbolInfoKind
.ExtensionMethod &&
331
DeclaredSymbolInfoKind
.Namespace,
Workspace\Solution\Project.cs (20)
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:
449
case
DeclaredSymbolInfoKind
.Union:
451
case
DeclaredSymbolInfoKind
.Constant:
452
case
DeclaredSymbolInfoKind
.Constructor:
453
case
DeclaredSymbolInfoKind
.EnumMember:
454
case
DeclaredSymbolInfoKind
.Event:
455
case
DeclaredSymbolInfoKind
.ExtensionMethod:
456
case
DeclaredSymbolInfoKind
.Field:
457
case
DeclaredSymbolInfoKind
.Indexer:
458
case
DeclaredSymbolInfoKind
.Method:
459
case
DeclaredSymbolInfoKind
.Property:
460
case
DeclaredSymbolInfoKind
.Operator:
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
FindSymbols\NavigateToSearchIndexTests.cs (1)
26
DeclaredSymbolInfoKind
.Class, Accessibility.Public,