281 references to WellKnownTags
Microsoft.CodeAnalysis.EditorFeatures (20)
IntelliSense\AsyncCompletion\FilterSet.cs (20)
74
NamespaceFilter = CreateCompletionFilterAndAddToBuilder(FeaturesResources.Namespaces, 'n',
WellKnownTags
.Namespace);
75
ClassFilter = CreateCompletionFilterAndAddToBuilder(FeaturesResources.Classes, 'c',
WellKnownTags
.Class);
76
ModuleFilter = CreateCompletionFilterAndAddToBuilder(FeaturesResources.Modules, 'u',
WellKnownTags
.Module);
77
StructureFilter = CreateCompletionFilterAndAddToBuilder(FeaturesResources.Structures, 's',
WellKnownTags
.Structure);
78
InterfaceFilter = CreateCompletionFilterAndAddToBuilder(FeaturesResources.Interfaces, 'i',
WellKnownTags
.Interface);
79
EnumFilter = CreateCompletionFilterAndAddToBuilder(FeaturesResources.Enums, 'e',
WellKnownTags
.Enum);
80
EnumMemberFilter = CreateCompletionFilterAndAddToBuilder(FeaturesResources.Enum_members, 'b',
WellKnownTags
.EnumMember);
81
DelegateFilter = CreateCompletionFilterAndAddToBuilder(FeaturesResources.Delegates, 'd',
WellKnownTags
.Delegate);
82
ConstantFilter = CreateCompletionFilterAndAddToBuilder(FeaturesResources.Constants, 'o',
WellKnownTags
.Constant);
83
FieldFilter = CreateCompletionFilterAndAddToBuilder(FeaturesResources.Fields, 'f',
WellKnownTags
.Field);
84
EventFilter = CreateCompletionFilterAndAddToBuilder(FeaturesResources.Events, 'v',
WellKnownTags
.Event);
85
PropertyFilter = CreateCompletionFilterAndAddToBuilder(FeaturesResources.Properties, 'p',
WellKnownTags
.Property);
86
MethodFilter = CreateCompletionFilterAndAddToBuilder(FeaturesResources.Methods, 'm',
WellKnownTags
.Method);
87
ExtensionMethodFilter = CreateCompletionFilterAndAddToBuilder(FeaturesResources.Extension_methods, 'x',
WellKnownTags
.ExtensionMethod);
88
OperatorFilter = CreateCompletionFilterAndAddToBuilder(FeaturesResources.Operators, 'r',
WellKnownTags
.Operator);
89
LocalAndParameterFilter = CreateCompletionFilterAndAddToBuilder(FeaturesResources.Locals_and_parameters, 'l',
WellKnownTags
.Local,
WellKnownTags
.Parameter);
90
KeywordFilter = CreateCompletionFilterAndAddToBuilder(FeaturesResources.Keywords, 'k',
WellKnownTags
.Keyword);
91
SnippetFilter = CreateCompletionFilterAndAddToBuilder(FeaturesResources.Snippets, 't',
WellKnownTags
.Snippet);
92
TargetTypedFilter = CreateCompletionFilterAndAddToBuilder(FeaturesResources.Target_type_matches, 'j',
WellKnownTags
.TargetTypeMatch);
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (12)
IntelliSense\CSharpCompletionCommandHandlerTests.vb (2)
4037
Assert.True(state.GetSelectedItem().Tags.Contains(
WellKnownTags
.Warning))
4046
Assert.False(state.GetSelectedItem().Tags.Contains(
WellKnownTags
.Warning))
IntelliSense\IntellisenseQuickInfoBuilderTests.vb (6)
27
ImmutableArray.Create(
WellKnownTags
.Method,
WellKnownTags
.Public),
119
ImmutableArray.Create(
WellKnownTags
.Method,
WellKnownTags
.Public),
204
ImmutableArray.Create(
WellKnownTags
.Method,
WellKnownTags
.Public),
IntelliSense\VisualBasicCompletionCommandHandlerTests.vb (4)
2191
Assert.True(doubleItem.Tags.Contains(
WellKnownTags
.Keyword))
2212
Assert.True(doubleItems.Any(Function(c) c.Tags.Contains(
WellKnownTags
.Keyword)))
2213
Assert.True(doubleItems.Any(Function(c) c.Tags.Contains(
WellKnownTags
.Class) AndAlso c.Tags.Contains(
WellKnownTags
.Internal)))
Microsoft.CodeAnalysis.Features (82)
Common\GlyphExtensions.cs (37)
43
case
WellKnownTags
.Assembly:
46
case
WellKnownTags
.File:
49
case
WellKnownTags
.Project:
52
case
WellKnownTags
.Class:
60
case
WellKnownTags
.Constant:
68
case
WellKnownTags
.Delegate:
76
case
WellKnownTags
.Enum:
84
case
WellKnownTags
.EnumMember:
92
case
WellKnownTags
.Error:
95
case
WellKnownTags
.Event:
103
case
WellKnownTags
.ExtensionMethod:
111
case
WellKnownTags
.Field:
119
case
WellKnownTags
.Interface:
127
case
WellKnownTags
.TargetTypeMatch:
130
case
WellKnownTags
.Intrinsic:
133
case
WellKnownTags
.Keyword:
136
case
WellKnownTags
.Label:
139
case
WellKnownTags
.Local:
142
case
WellKnownTags
.Namespace:
145
case
WellKnownTags
.Method:
153
case
WellKnownTags
.Module:
161
case
WellKnownTags
.Folder:
164
case
WellKnownTags
.Operator:
167
case
WellKnownTags
.Parameter:
170
case
WellKnownTags
.Property:
178
case
WellKnownTags
.RangeVariable:
181
case
WellKnownTags
.Reference:
184
case
WellKnownTags
.NuGet:
187
case
WellKnownTags
.Structure:
195
case
WellKnownTags
.TypeParameter:
198
case
WellKnownTags
.Snippet:
201
case
WellKnownTags
.Warning:
204
case
WellKnownTags
.StatusInformation:
217
case
WellKnownTags
.Public:
219
case
WellKnownTags
.Protected:
221
case
WellKnownTags
.Internal:
223
case
WellKnownTags
.Private:
Completion\CommonCompletionItem.cs (1)
41
tags = tags.Add(
WellKnownTags
.Warning);
Completion\CommonCompletionService.cs (2)
40
=> item.Tags.Contains(
WellKnownTags
.Keyword);
43
=> item.Tags.Contains(
WellKnownTags
.Snippet);
Completion\CompletionHelper.cs (1)
74
=> item.Tags.Contains(
WellKnownTags
.Keyword);
Completion\CompletionItem.cs (1)
93
/// Descriptive tags from <see cref="Tags.
WellKnownTags
"/>.
Completion\CompletionTags.cs (35)
20
public const string Public =
WellKnownTags
.Public;
21
public const string Protected =
WellKnownTags
.Protected;
22
public const string Private =
WellKnownTags
.Private;
23
public const string Internal =
WellKnownTags
.Internal;
26
public const string File =
WellKnownTags
.File;
27
public const string Project =
WellKnownTags
.Project;
28
public const string Folder =
WellKnownTags
.Folder;
29
public const string Assembly =
WellKnownTags
.Assembly;
32
public const string Class =
WellKnownTags
.Class;
33
public const string Constant =
WellKnownTags
.Constant;
34
public const string Delegate =
WellKnownTags
.Delegate;
35
public const string Enum =
WellKnownTags
.Enum;
36
public const string EnumMember =
WellKnownTags
.EnumMember;
37
public const string Event =
WellKnownTags
.Event;
38
public const string ExtensionMethod =
WellKnownTags
.ExtensionMethod;
39
public const string Field =
WellKnownTags
.Field;
40
public const string Interface =
WellKnownTags
.Interface;
41
public const string Intrinsic =
WellKnownTags
.Intrinsic;
42
public const string Keyword =
WellKnownTags
.Keyword;
43
public const string Label =
WellKnownTags
.Label;
44
public const string Local =
WellKnownTags
.Local;
45
public const string Namespace =
WellKnownTags
.Namespace;
46
public const string Method =
WellKnownTags
.Method;
47
public const string Module =
WellKnownTags
.Module;
48
public const string Operator =
WellKnownTags
.Operator;
49
public const string Parameter =
WellKnownTags
.Parameter;
50
public const string Property =
WellKnownTags
.Property;
51
public const string RangeVariable =
WellKnownTags
.RangeVariable;
52
public const string Reference =
WellKnownTags
.Reference;
53
public const string Structure =
WellKnownTags
.Structure;
54
public const string TypeParameter =
WellKnownTags
.TypeParameter;
57
public const string Snippet =
WellKnownTags
.Snippet;
58
public const string Error =
WellKnownTags
.Error;
59
public const string Warning =
WellKnownTags
.Warning;
60
internal const string StatusInformation =
WellKnownTags
.StatusInformation;
Completion\Providers\AbstractSymbolCompletionProvider.cs (1)
144
item = item.AddTag(
WellKnownTags
.TargetTypeMatch);
Completion\Providers\ImportCompletionProvider\ImportCompletionItem.cs (1)
84
item = item.AddTag(
WellKnownTags
.TargetTypeMatch);
FindUsages\DefinitionItem.cs (1)
61
/// Descriptive tags from <see cref="
WellKnownTags
"/>. These tags may influence how the
QuickInfo\QuickInfoItem.cs (1)
18
/// Descriptive tags from the <see cref="Tags.
WellKnownTags
"/> type.
QuickInfo\QuickInfoUtilities.cs (1)
153
tags = tags.Add(
WellKnownTags
.Warning);
Microsoft.CodeAnalysis.LanguageServer.Protocol (37)
Extensions\ProtocolConversions.cs (37)
45
{
WellKnownTags
.Public, LSP.CompletionItemKind.Keyword },
46
{
WellKnownTags
.Protected, LSP.CompletionItemKind.Keyword },
47
{
WellKnownTags
.Private, LSP.CompletionItemKind.Keyword },
48
{
WellKnownTags
.Internal, LSP.CompletionItemKind.Keyword },
49
{
WellKnownTags
.File, LSP.CompletionItemKind.File },
50
{
WellKnownTags
.Project, LSP.CompletionItemKind.File },
51
{
WellKnownTags
.Folder, LSP.CompletionItemKind.Folder },
52
{
WellKnownTags
.Assembly, LSP.CompletionItemKind.File },
53
{
WellKnownTags
.Class, LSP.CompletionItemKind.Class },
54
{
WellKnownTags
.Constant, LSP.CompletionItemKind.Constant },
55
{
WellKnownTags
.Delegate, LSP.CompletionItemKind.Delegate },
56
{
WellKnownTags
.Enum, LSP.CompletionItemKind.Enum },
57
{
WellKnownTags
.EnumMember, LSP.CompletionItemKind.EnumMember },
58
{
WellKnownTags
.Event, LSP.CompletionItemKind.Event },
59
{
WellKnownTags
.ExtensionMethod, LSP.CompletionItemKind.ExtensionMethod },
60
{
WellKnownTags
.Field, LSP.CompletionItemKind.Field },
61
{
WellKnownTags
.Interface, LSP.CompletionItemKind.Interface },
62
{
WellKnownTags
.Intrinsic, LSP.CompletionItemKind.Text },
63
{
WellKnownTags
.Keyword, LSP.CompletionItemKind.Keyword },
64
{
WellKnownTags
.Label, LSP.CompletionItemKind.Text },
65
{
WellKnownTags
.Local, LSP.CompletionItemKind.Variable },
66
{
WellKnownTags
.Namespace, LSP.CompletionItemKind.Namespace },
67
{
WellKnownTags
.Method, LSP.CompletionItemKind.Method },
68
{
WellKnownTags
.Module, LSP.CompletionItemKind.Module },
69
{
WellKnownTags
.Operator, LSP.CompletionItemKind.Operator },
70
{
WellKnownTags
.Parameter, LSP.CompletionItemKind.Value },
71
{
WellKnownTags
.Property, LSP.CompletionItemKind.Property },
72
{
WellKnownTags
.RangeVariable, LSP.CompletionItemKind.Variable },
73
{
WellKnownTags
.Reference, LSP.CompletionItemKind.Reference },
74
{
WellKnownTags
.Structure, LSP.CompletionItemKind.Struct },
75
{
WellKnownTags
.TypeParameter, LSP.CompletionItemKind.TypeParameter },
76
{
WellKnownTags
.Snippet, LSP.CompletionItemKind.Snippet },
77
{
WellKnownTags
.Error, LSP.CompletionItemKind.Text },
78
{
WellKnownTags
.Warning, LSP.CompletionItemKind.Text },
79
{
WellKnownTags
.StatusInformation, LSP.CompletionItemKind.Text },
80
{
WellKnownTags
.AddReference, LSP.CompletionItemKind.Text },
81
{
WellKnownTags
.NuGet, LSP.CompletionItemKind.Text }
Microsoft.CodeAnalysis.VisualBasic.Features (3)
Completion\CompletionProviders\EnumCompletionProvider.vb (1)
151
item = item.AddTag(
WellKnownTags
.TargetTypeMatch).WithAdditionalFilterTexts(ImmutableArray.Create(symbols(0).Symbol.Name))
Completion\CompletionProviders\KeywordCompletionProvider.vb (1)
23
Private Shared ReadOnly s_tags As ImmutableArray(Of String) = ImmutableArray.Create(
WellKnownTags
.Intrinsic)
Completion\VisualBasicCompletionService.vb (1)
98
If keywordCompletionItem IsNot Nothing AndAlso keywordCompletionItem.Tags.Contains(
WellKnownTags
.Intrinsic) Then
Microsoft.CodeAnalysis.Workspaces (127)
CodeActions\CodeAction.cs (1)
81
/// Descriptive tags from <see cref="
WellKnownTags
"/>.
Tags\WellKnownTags.cs (126)
62
internal static readonly ImmutableArray<string> Assembly = ImmutableArray.Create(
WellKnownTags
.Assembly);
63
internal static readonly ImmutableArray<string> ClassPublic = ImmutableArray.Create(
WellKnownTags
.Class,
WellKnownTags
.Public);
64
internal static readonly ImmutableArray<string> ClassProtected = ImmutableArray.Create(
WellKnownTags
.Class,
WellKnownTags
.Protected);
65
internal static readonly ImmutableArray<string> ClassPrivate = ImmutableArray.Create(
WellKnownTags
.Class,
WellKnownTags
.Private);
66
internal static readonly ImmutableArray<string> ClassInternal = ImmutableArray.Create(
WellKnownTags
.Class,
WellKnownTags
.Internal);
67
internal static readonly ImmutableArray<string> ConstantPublic = ImmutableArray.Create(
WellKnownTags
.Constant,
WellKnownTags
.Public);
68
internal static readonly ImmutableArray<string> ConstantProtected = ImmutableArray.Create(
WellKnownTags
.Constant,
WellKnownTags
.Protected);
69
internal static readonly ImmutableArray<string> ConstantPrivate = ImmutableArray.Create(
WellKnownTags
.Constant,
WellKnownTags
.Private);
70
internal static readonly ImmutableArray<string> ConstantInternal = ImmutableArray.Create(
WellKnownTags
.Constant,
WellKnownTags
.Internal);
71
internal static readonly ImmutableArray<string> DelegatePublic = ImmutableArray.Create(
WellKnownTags
.Delegate,
WellKnownTags
.Public);
72
internal static readonly ImmutableArray<string> DelegateProtected = ImmutableArray.Create(
WellKnownTags
.Delegate,
WellKnownTags
.Protected);
73
internal static readonly ImmutableArray<string> DelegatePrivate = ImmutableArray.Create(
WellKnownTags
.Delegate,
WellKnownTags
.Private);
74
internal static readonly ImmutableArray<string> DelegateInternal = ImmutableArray.Create(
WellKnownTags
.Delegate,
WellKnownTags
.Internal);
75
internal static readonly ImmutableArray<string> EnumPublic = ImmutableArray.Create(
WellKnownTags
.Enum,
WellKnownTags
.Public);
76
internal static readonly ImmutableArray<string> EnumProtected = ImmutableArray.Create(
WellKnownTags
.Enum,
WellKnownTags
.Protected);
77
internal static readonly ImmutableArray<string> EnumPrivate = ImmutableArray.Create(
WellKnownTags
.Enum,
WellKnownTags
.Private);
78
internal static readonly ImmutableArray<string> EnumInternal = ImmutableArray.Create(
WellKnownTags
.Enum,
WellKnownTags
.Internal);
79
internal static readonly ImmutableArray<string> EnumMemberPublic = ImmutableArray.Create(
WellKnownTags
.EnumMember,
WellKnownTags
.Public);
80
internal static readonly ImmutableArray<string> EnumMemberProtected = ImmutableArray.Create(
WellKnownTags
.EnumMember,
WellKnownTags
.Protected);
81
internal static readonly ImmutableArray<string> EnumMemberPrivate = ImmutableArray.Create(
WellKnownTags
.EnumMember,
WellKnownTags
.Private);
82
internal static readonly ImmutableArray<string> EnumMemberInternal = ImmutableArray.Create(
WellKnownTags
.EnumMember,
WellKnownTags
.Internal);
83
internal static readonly ImmutableArray<string> EventPublic = ImmutableArray.Create(
WellKnownTags
.Event,
WellKnownTags
.Public);
84
internal static readonly ImmutableArray<string> EventProtected = ImmutableArray.Create(
WellKnownTags
.Event,
WellKnownTags
.Protected);
85
internal static readonly ImmutableArray<string> EventPrivate = ImmutableArray.Create(
WellKnownTags
.Event,
WellKnownTags
.Private);
86
internal static readonly ImmutableArray<string> EventInternal = ImmutableArray.Create(
WellKnownTags
.Event,
WellKnownTags
.Internal);
87
internal static readonly ImmutableArray<string> ExtensionMethodPublic = ImmutableArray.Create(
WellKnownTags
.ExtensionMethod,
WellKnownTags
.Public);
88
internal static readonly ImmutableArray<string> ExtensionMethodProtected = ImmutableArray.Create(
WellKnownTags
.ExtensionMethod,
WellKnownTags
.Protected);
89
internal static readonly ImmutableArray<string> ExtensionMethodPrivate = ImmutableArray.Create(
WellKnownTags
.ExtensionMethod,
WellKnownTags
.Private);
90
internal static readonly ImmutableArray<string> ExtensionMethodInternal = ImmutableArray.Create(
WellKnownTags
.ExtensionMethod,
WellKnownTags
.Internal);
91
internal static readonly ImmutableArray<string> FieldPublic = ImmutableArray.Create(
WellKnownTags
.Field,
WellKnownTags
.Public);
92
internal static readonly ImmutableArray<string> FieldProtected = ImmutableArray.Create(
WellKnownTags
.Field,
WellKnownTags
.Protected);
93
internal static readonly ImmutableArray<string> FieldPrivate = ImmutableArray.Create(
WellKnownTags
.Field,
WellKnownTags
.Private);
94
internal static readonly ImmutableArray<string> FieldInternal = ImmutableArray.Create(
WellKnownTags
.Field,
WellKnownTags
.Internal);
95
internal static readonly ImmutableArray<string> InterfacePublic = ImmutableArray.Create(
WellKnownTags
.Interface,
WellKnownTags
.Public);
96
internal static readonly ImmutableArray<string> InterfaceProtected = ImmutableArray.Create(
WellKnownTags
.Interface,
WellKnownTags
.Protected);
97
internal static readonly ImmutableArray<string> InterfacePrivate = ImmutableArray.Create(
WellKnownTags
.Interface,
WellKnownTags
.Private);
98
internal static readonly ImmutableArray<string> InterfaceInternal = ImmutableArray.Create(
WellKnownTags
.Interface,
WellKnownTags
.Internal);
99
internal static readonly ImmutableArray<string> Intrinsic = ImmutableArray.Create(
WellKnownTags
.Intrinsic);
100
internal static readonly ImmutableArray<string> Keyword = ImmutableArray.Create(
WellKnownTags
.Keyword);
101
internal static readonly ImmutableArray<string> Label = ImmutableArray.Create(
WellKnownTags
.Label);
102
internal static readonly ImmutableArray<string> Local = ImmutableArray.Create(
WellKnownTags
.Local);
103
internal static readonly ImmutableArray<string> Namespace = ImmutableArray.Create(
WellKnownTags
.Namespace);
104
internal static readonly ImmutableArray<string> MethodPublic = ImmutableArray.Create(
WellKnownTags
.Method,
WellKnownTags
.Public);
105
internal static readonly ImmutableArray<string> MethodProtected = ImmutableArray.Create(
WellKnownTags
.Method,
WellKnownTags
.Protected);
106
internal static readonly ImmutableArray<string> MethodPrivate = ImmutableArray.Create(
WellKnownTags
.Method,
WellKnownTags
.Private);
107
internal static readonly ImmutableArray<string> MethodInternal = ImmutableArray.Create(
WellKnownTags
.Method,
WellKnownTags
.Internal);
108
internal static readonly ImmutableArray<string> ModulePublic = ImmutableArray.Create(
WellKnownTags
.Module,
WellKnownTags
.Public);
109
internal static readonly ImmutableArray<string> ModuleProtected = ImmutableArray.Create(
WellKnownTags
.Module,
WellKnownTags
.Protected);
110
internal static readonly ImmutableArray<string> ModulePrivate = ImmutableArray.Create(
WellKnownTags
.Module,
WellKnownTags
.Private);
111
internal static readonly ImmutableArray<string> ModuleInternal = ImmutableArray.Create(
WellKnownTags
.Module,
WellKnownTags
.Internal);
112
internal static readonly ImmutableArray<string> Folder = ImmutableArray.Create(
WellKnownTags
.Folder);
113
internal static readonly ImmutableArray<string> Operator = ImmutableArray.Create(
WellKnownTags
.Operator);
114
internal static readonly ImmutableArray<string> Parameter = ImmutableArray.Create(
WellKnownTags
.Parameter);
115
internal static readonly ImmutableArray<string> PropertyPublic = ImmutableArray.Create(
WellKnownTags
.Property,
WellKnownTags
.Public);
116
internal static readonly ImmutableArray<string> PropertyProtected = ImmutableArray.Create(
WellKnownTags
.Property,
WellKnownTags
.Protected);
117
internal static readonly ImmutableArray<string> PropertyPrivate = ImmutableArray.Create(
WellKnownTags
.Property,
WellKnownTags
.Private);
118
internal static readonly ImmutableArray<string> PropertyInternal = ImmutableArray.Create(
WellKnownTags
.Property,
WellKnownTags
.Internal);
119
internal static readonly ImmutableArray<string> RangeVariable = ImmutableArray.Create(
WellKnownTags
.RangeVariable);
120
internal static readonly ImmutableArray<string> Reference = ImmutableArray.Create(
WellKnownTags
.Reference);
121
internal static readonly ImmutableArray<string> StructurePublic = ImmutableArray.Create(
WellKnownTags
.Structure,
WellKnownTags
.Public);
122
internal static readonly ImmutableArray<string> StructureProtected = ImmutableArray.Create(
WellKnownTags
.Structure,
WellKnownTags
.Protected);
123
internal static readonly ImmutableArray<string> StructurePrivate = ImmutableArray.Create(
WellKnownTags
.Structure,
WellKnownTags
.Private);
124
internal static readonly ImmutableArray<string> StructureInternal = ImmutableArray.Create(
WellKnownTags
.Structure,
WellKnownTags
.Internal);
125
internal static readonly ImmutableArray<string> TypeParameter = ImmutableArray.Create(
WellKnownTags
.TypeParameter);
126
internal static readonly ImmutableArray<string> Snippet = ImmutableArray.Create(
WellKnownTags
.Snippet);
128
internal static readonly ImmutableArray<string> Error = ImmutableArray.Create(
WellKnownTags
.Error);
129
internal static readonly ImmutableArray<string> Warning = ImmutableArray.Create(
WellKnownTags
.Warning);
130
internal static readonly ImmutableArray<string> StatusInformation = ImmutableArray.Create(
WellKnownTags
.StatusInformation);
132
internal static readonly ImmutableArray<string> AddReference = ImmutableArray.Create(
WellKnownTags
.AddReference);
133
internal static readonly ImmutableArray<string> TargetTypeMatch = ImmutableArray.Create(
WellKnownTags
.TargetTypeMatch);
135
internal static readonly ImmutableArray<string> CSharpFile = ImmutableArray.Create(
WellKnownTags
.File, LanguageNames.CSharp);
136
internal static readonly ImmutableArray<string> VisualBasicFile = ImmutableArray.Create(
WellKnownTags
.File, LanguageNames.VisualBasic);
138
internal static readonly ImmutableArray<string> CSharpProject = ImmutableArray.Create(
WellKnownTags
.Project, LanguageNames.CSharp);
139
internal static readonly ImmutableArray<string> VisualBasicProject = ImmutableArray.Create(
WellKnownTags
.Project, LanguageNames.VisualBasic);