129 references to DeclaredSymbolInfoKind
Microsoft.CodeAnalysis.CSharp.Workspaces (20)
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (20)
194
DeclaredSymbolInfoKind
.Method,
232
SyntaxKind.ClassDeclaration =>
DeclaredSymbolInfoKind
.Class,
233
SyntaxKind.InterfaceDeclaration =>
DeclaredSymbolInfoKind
.Interface,
234
SyntaxKind.StructDeclaration =>
DeclaredSymbolInfoKind
.Struct,
235
SyntaxKind.RecordDeclaration =>
DeclaredSymbolInfoKind
.Record,
236
SyntaxKind.RecordStructDeclaration =>
DeclaredSymbolInfoKind
.RecordStruct,
260
DeclaredSymbolInfoKind
.Enum,
288
DeclaredSymbolInfoKind
.Constructor,
304
DeclaredSymbolInfoKind
.Delegate,
318
DeclaredSymbolInfoKind
.EnumMember,
332
DeclaredSymbolInfoKind
.Event,
346
DeclaredSymbolInfoKind
.Indexer,
361
isExtensionMethod ?
DeclaredSymbolInfoKind
.ExtensionMethod :
DeclaredSymbolInfoKind
.Method,
377
DeclaredSymbolInfoKind
.Property,
387
var
kind = fieldDeclaration is EventFieldDeclarationSyntax
388
?
DeclaredSymbolInfoKind
.Event
390
?
DeclaredSymbolInfoKind
.Constant
391
:
DeclaredSymbolInfoKind
.Field;
450
DeclaredSymbolInfoKind
.Property,
Microsoft.CodeAnalysis.Features (65)
ExternalAccess\UnitTesting\API\UnitTestingSearchHelpers.cs (2)
216
if (info.Kind is not (
DeclaredSymbolInfoKind
.Method or
DeclaredSymbolInfoKind
.ExtensionMethod))
NavigateTo\AbstractNavigateToSearchService.InProcess.cs (38)
120
if (declaredSymbolInfo.Kind ==
DeclaredSymbolInfoKind
.Namespace)
232
case
DeclaredSymbolInfoKind
.Class:
233
case
DeclaredSymbolInfoKind
.Record:
235
case
DeclaredSymbolInfoKind
.RecordStruct:
237
case
DeclaredSymbolInfoKind
.Constant:
239
case
DeclaredSymbolInfoKind
.Delegate:
241
case
DeclaredSymbolInfoKind
.Enum:
243
case
DeclaredSymbolInfoKind
.EnumMember:
245
case
DeclaredSymbolInfoKind
.Event:
247
case
DeclaredSymbolInfoKind
.Field:
249
case
DeclaredSymbolInfoKind
.Interface:
251
case
DeclaredSymbolInfoKind
.Constructor:
252
case
DeclaredSymbolInfoKind
.ExtensionMethod:
253
case
DeclaredSymbolInfoKind
.Method:
255
case
DeclaredSymbolInfoKind
.Module:
257
case
DeclaredSymbolInfoKind
.Indexer:
258
case
DeclaredSymbolInfoKind
.Property:
260
case
DeclaredSymbolInfoKind
.Struct:
294
Debug.Assert(Enum.GetUnderlyingType(typeof(
DeclaredSymbolInfoKind
)) == typeof(byte));
296
var lookupTable = new bool[Enum.GetValues(typeof(
DeclaredSymbolInfoKind
)).Length];
302
lookupTable[(int)
DeclaredSymbolInfoKind
.Class] = true;
303
lookupTable[(int)
DeclaredSymbolInfoKind
.Record] = true;
306
lookupTable[(int)
DeclaredSymbolInfoKind
.Constant] = true;
310
lookupTable[(int)
DeclaredSymbolInfoKind
.Delegate] = true;
314
lookupTable[(int)
DeclaredSymbolInfoKind
.Enum] = true;
318
lookupTable[(int)
DeclaredSymbolInfoKind
.EnumMember] = true;
322
lookupTable[(int)
DeclaredSymbolInfoKind
.Event] = true;
326
lookupTable[(int)
DeclaredSymbolInfoKind
.Field] = true;
330
lookupTable[(int)
DeclaredSymbolInfoKind
.Interface] = true;
334
lookupTable[(int)
DeclaredSymbolInfoKind
.Constructor] = true;
335
lookupTable[(int)
DeclaredSymbolInfoKind
.ExtensionMethod] = true;
336
lookupTable[(int)
DeclaredSymbolInfoKind
.Method] = true;
340
lookupTable[(int)
DeclaredSymbolInfoKind
.Module] = true;
344
lookupTable[(int)
DeclaredSymbolInfoKind
.Indexer] = true;
345
lookupTable[(int)
DeclaredSymbolInfoKind
.Property] = true;
349
lookupTable[(int)
DeclaredSymbolInfoKind
.Struct] = true;
350
lookupTable[(int)
DeclaredSymbolInfoKind
.RecordStruct] = true;
362
public bool Contains(
DeclaredSymbolInfoKind
item)
NavigateTo\RoslynNavigateToItem.cs (25)
193
case
DeclaredSymbolInfoKind
.Class:
194
case
DeclaredSymbolInfoKind
.Record:
195
case
DeclaredSymbolInfoKind
.Enum:
196
case
DeclaredSymbolInfoKind
.Interface:
197
case
DeclaredSymbolInfoKind
.Module:
198
case
DeclaredSymbolInfoKind
.Struct:
199
case
DeclaredSymbolInfoKind
.RecordStruct:
294
private static Glyph GetPublicGlyph(
DeclaredSymbolInfoKind
kind)
297
DeclaredSymbolInfoKind
.Class => Glyph.ClassPublic,
298
DeclaredSymbolInfoKind
.Constant => Glyph.ConstantPublic,
299
DeclaredSymbolInfoKind
.Constructor => Glyph.MethodPublic,
300
DeclaredSymbolInfoKind
.Delegate => Glyph.DelegatePublic,
301
DeclaredSymbolInfoKind
.Enum => Glyph.EnumPublic,
302
DeclaredSymbolInfoKind
.EnumMember => Glyph.EnumMemberPublic,
303
DeclaredSymbolInfoKind
.Event => Glyph.EventPublic,
304
DeclaredSymbolInfoKind
.ExtensionMethod => Glyph.ExtensionMethodPublic,
305
DeclaredSymbolInfoKind
.Field => Glyph.FieldPublic,
306
DeclaredSymbolInfoKind
.Indexer => Glyph.PropertyPublic,
307
DeclaredSymbolInfoKind
.Interface => Glyph.InterfacePublic,
308
DeclaredSymbolInfoKind
.Method => Glyph.MethodPublic,
309
DeclaredSymbolInfoKind
.Module => Glyph.ModulePublic,
310
DeclaredSymbolInfoKind
.Property => Glyph.PropertyPublic,
311
DeclaredSymbolInfoKind
.Struct => Glyph.StructurePublic,
312
DeclaredSymbolInfoKind
.RecordStruct => Glyph.StructurePublic,
316
private static Glyph GetGlyph(
DeclaredSymbolInfoKind
kind, Accessibility accessibility)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (14)
FindSymbols\VisualBasicDeclaredSymbolInfoFactoryService.vb (14)
166
If(typeDeclaration.Kind() = SyntaxKind.ClassBlock,
DeclaredSymbolInfoKind
.Class,
167
If(typeDeclaration.Kind() = SyntaxKind.InterfaceBlock,
DeclaredSymbolInfoKind
.Interface,
168
If(typeDeclaration.Kind() = SyntaxKind.ModuleBlock,
DeclaredSymbolInfoKind
.Module,
DeclaredSymbolInfoKind
.Struct))),
192
DeclaredSymbolInfoKind
.Enum,
229
DeclaredSymbolInfoKind
.Constructor,
247
DeclaredSymbolInfoKind
.Delegate,
261
DeclaredSymbolInfoKind
.EnumMember,
275
DeclaredSymbolInfoKind
.Event,
291
If(isExtension,
DeclaredSymbolInfoKind
.ExtensionMethod,
DeclaredSymbolInfoKind
.Method),
309
DeclaredSymbolInfoKind
.Property,
326
DeclaredSymbolInfoKind
.Constant,
327
DeclaredSymbolInfoKind
.Field),
Microsoft.CodeAnalysis.Workspaces (30)
FindSymbols\FindReferences\DependentTypeFinder_ProjectIndex.cs (6)
66
case
DeclaredSymbolInfoKind
.Class:
67
case
DeclaredSymbolInfoKind
.Record:
70
case
DeclaredSymbolInfoKind
.Enum:
73
case
DeclaredSymbolInfoKind
.Struct:
74
case
DeclaredSymbolInfoKind
.RecordStruct:
77
case
DeclaredSymbolInfoKind
.Delegate:
FindSymbols\TopLevelSyntaxTree\DeclaredSymbolInfo.cs (4)
91
public
DeclaredSymbolInfoKind
Kind => GetKind(_flags);
126
DeclaredSymbolInfoKind
kind,
169
private static
DeclaredSymbolInfoKind
GetKind(uint flags)
170
=> (
DeclaredSymbolInfoKind
)(flags & Lower5BitMask);
LanguageServices\DeclaredSymbolFactoryService\AbstractDeclaredSymbolInfoFactoryService.cs (2)
276
declaredSymbolInfos.Last().Kind ==
DeclaredSymbolInfoKind
.ExtensionMethod &&
315
DeclaredSymbolInfoKind
.Namespace,
Workspace\Solution\Project.cs (18)
390
case
DeclaredSymbolInfoKind
.Namespace:
392
case
DeclaredSymbolInfoKind
.Class:
393
case
DeclaredSymbolInfoKind
.Delegate:
394
case
DeclaredSymbolInfoKind
.Enum:
395
case
DeclaredSymbolInfoKind
.Interface:
396
case
DeclaredSymbolInfoKind
.Module:
397
case
DeclaredSymbolInfoKind
.Record:
398
case
DeclaredSymbolInfoKind
.RecordStruct:
399
case
DeclaredSymbolInfoKind
.Struct:
401
case
DeclaredSymbolInfoKind
.Constant:
402
case
DeclaredSymbolInfoKind
.Constructor:
403
case
DeclaredSymbolInfoKind
.EnumMember:
404
case
DeclaredSymbolInfoKind
.Event:
405
case
DeclaredSymbolInfoKind
.ExtensionMethod:
406
case
DeclaredSymbolInfoKind
.Field:
407
case
DeclaredSymbolInfoKind
.Indexer:
408
case
DeclaredSymbolInfoKind
.Method:
409
case
DeclaredSymbolInfoKind
.Property: