Common\GlyphExtensions.cs (82)
14public static ImmutableArray<Glyph> GetGlyphs(this ImmutableArray<string> tags)
16var builder = ImmutableArray.CreateBuilder<Glyph>(initialCapacity: tags.Length);
20var glyph = GetGlyph(tag, tags);
21if (glyph != Glyph.None)
30public static Glyph GetFirstGlyph(this ImmutableArray<string> tags)
36: Glyph.None;
39private static Glyph GetGlyph(string tag, ImmutableArray<string> allTags)
44return Glyph.Assembly;
47return allTags.Contains(LanguageNames.VisualBasic) ? Glyph.BasicFile : Glyph.CSharpFile;
50return allTags.Contains(LanguageNames.VisualBasic) ? Glyph.BasicProject : Glyph.CSharpProject;
55Accessibility.Protected => Glyph.ClassProtected,
56Accessibility.Private => Glyph.ClassPrivate,
57Accessibility.Internal => Glyph.ClassInternal,
58_ => Glyph.ClassPublic,
63Accessibility.Protected => Glyph.ConstantProtected,
64Accessibility.Private => Glyph.ConstantPrivate,
65Accessibility.Internal => Glyph.ConstantInternal,
66_ => Glyph.ConstantPublic,
71Accessibility.Protected => Glyph.DelegateProtected,
72Accessibility.Private => Glyph.DelegatePrivate,
73Accessibility.Internal => Glyph.DelegateInternal,
74_ => Glyph.DelegatePublic,
79Accessibility.Protected => Glyph.EnumProtected,
80Accessibility.Private => Glyph.EnumPrivate,
81Accessibility.Internal => Glyph.EnumInternal,
82_ => Glyph.EnumPublic,
87Accessibility.Protected => Glyph.EnumMemberProtected,
88Accessibility.Private => Glyph.EnumMemberPrivate,
89Accessibility.Internal => Glyph.EnumMemberInternal,
90_ => Glyph.EnumMemberPublic,
93return Glyph.Error;
98Accessibility.Protected => Glyph.EventProtected,
99Accessibility.Private => Glyph.EventPrivate,
100Accessibility.Internal => Glyph.EventInternal,
101_ => Glyph.EventPublic,
106Accessibility.Protected => Glyph.ExtensionMethodProtected,
107Accessibility.Private => Glyph.ExtensionMethodPrivate,
108Accessibility.Internal => Glyph.ExtensionMethodInternal,
109_ => Glyph.ExtensionMethodPublic,
114Accessibility.Protected => Glyph.FieldProtected,
115Accessibility.Private => Glyph.FieldPrivate,
116Accessibility.Internal => Glyph.FieldInternal,
117_ => Glyph.FieldPublic,
122Accessibility.Protected => Glyph.InterfaceProtected,
123Accessibility.Private => Glyph.InterfacePrivate,
124Accessibility.Internal => Glyph.InterfaceInternal,
125_ => Glyph.InterfacePublic,
128return Glyph.TargetTypeMatch;
131return Glyph.Intrinsic;
134return Glyph.Keyword;
137return Glyph.Label;
140return Glyph.Local;
143return Glyph.Namespace;
148Accessibility.Protected => Glyph.MethodProtected,
149Accessibility.Private => Glyph.MethodPrivate,
150Accessibility.Internal => Glyph.MethodInternal,
151_ => Glyph.MethodPublic,
156Accessibility.Protected => Glyph.ModulePublic,
157Accessibility.Private => Glyph.ModulePrivate,
158Accessibility.Internal => Glyph.ModuleInternal,
159_ => Glyph.ModulePublic,
162return Glyph.OpenFolder;
165return Glyph.Operator;
168return Glyph.Parameter;
173Accessibility.Protected => Glyph.PropertyProtected,
174Accessibility.Private => Glyph.PropertyPrivate,
175Accessibility.Internal => Glyph.PropertyInternal,
176_ => Glyph.PropertyPublic,
179return Glyph.RangeVariable;
182return Glyph.Reference;
185return Glyph.NuGet;
190Accessibility.Protected => Glyph.StructureProtected,
191Accessibility.Private => Glyph.StructurePrivate,
192Accessibility.Internal => Glyph.StructureInternal,
193_ => Glyph.StructurePublic,
196return Glyph.TypeParameter;
199return Glyph.Snippet;
202return Glyph.CompletionWarning;
205return Glyph.StatusInformation;
208return Glyph.None;
Common\GlyphTags.cs (73)
14public static ImmutableArray<string> GetTags(Glyph glyph)
17Glyph.Assembly => WellKnownTagArrays.Assembly,
18Glyph.BasicFile => WellKnownTagArrays.VisualBasicFile,
19Glyph.BasicProject => WellKnownTagArrays.VisualBasicProject,
20Glyph.ClassPublic => WellKnownTagArrays.ClassPublic,
21Glyph.ClassProtected => WellKnownTagArrays.ClassProtected,
22Glyph.ClassPrivate => WellKnownTagArrays.ClassPrivate,
23Glyph.ClassInternal => WellKnownTagArrays.ClassInternal,
24Glyph.CSharpFile => WellKnownTagArrays.CSharpFile,
25Glyph.CSharpProject => WellKnownTagArrays.CSharpProject,
26Glyph.ConstantPublic => WellKnownTagArrays.ConstantPublic,
27Glyph.ConstantProtected => WellKnownTagArrays.ConstantProtected,
28Glyph.ConstantPrivate => WellKnownTagArrays.ConstantPrivate,
29Glyph.ConstantInternal => WellKnownTagArrays.ConstantInternal,
30Glyph.DelegatePublic => WellKnownTagArrays.DelegatePublic,
31Glyph.DelegateProtected => WellKnownTagArrays.DelegateProtected,
32Glyph.DelegatePrivate => WellKnownTagArrays.DelegatePrivate,
33Glyph.DelegateInternal => WellKnownTagArrays.DelegateInternal,
34Glyph.EnumPublic => WellKnownTagArrays.EnumPublic,
35Glyph.EnumProtected => WellKnownTagArrays.EnumProtected,
36Glyph.EnumPrivate => WellKnownTagArrays.EnumPrivate,
37Glyph.EnumInternal => WellKnownTagArrays.EnumInternal,
38Glyph.EnumMemberPublic => WellKnownTagArrays.EnumMemberPublic,
39Glyph.EnumMemberProtected => WellKnownTagArrays.EnumMemberProtected,
40Glyph.EnumMemberPrivate => WellKnownTagArrays.EnumMemberPrivate,
41Glyph.EnumMemberInternal => WellKnownTagArrays.EnumMemberInternal,
42Glyph.Error => WellKnownTagArrays.Error,
43Glyph.EventPublic => WellKnownTagArrays.EventPublic,
44Glyph.EventProtected => WellKnownTagArrays.EventProtected,
45Glyph.EventPrivate => WellKnownTagArrays.EventPrivate,
46Glyph.EventInternal => WellKnownTagArrays.EventInternal,
47Glyph.ExtensionMethodPublic => WellKnownTagArrays.ExtensionMethodPublic,
48Glyph.ExtensionMethodProtected => WellKnownTagArrays.ExtensionMethodProtected,
49Glyph.ExtensionMethodPrivate => WellKnownTagArrays.ExtensionMethodPrivate,
50Glyph.ExtensionMethodInternal => WellKnownTagArrays.ExtensionMethodInternal,
51Glyph.FieldPublic => WellKnownTagArrays.FieldPublic,
52Glyph.FieldProtected => WellKnownTagArrays.FieldProtected,
53Glyph.FieldPrivate => WellKnownTagArrays.FieldPrivate,
54Glyph.FieldInternal => WellKnownTagArrays.FieldInternal,
55Glyph.InterfacePublic => WellKnownTagArrays.InterfacePublic,
56Glyph.InterfaceProtected => WellKnownTagArrays.InterfaceProtected,
57Glyph.InterfacePrivate => WellKnownTagArrays.InterfacePrivate,
58Glyph.InterfaceInternal => WellKnownTagArrays.InterfaceInternal,
59Glyph.Intrinsic => WellKnownTagArrays.Intrinsic,
60Glyph.Keyword => WellKnownTagArrays.Keyword,
61Glyph.Label => WellKnownTagArrays.Label,
62Glyph.Local => WellKnownTagArrays.Local,
63Glyph.Namespace => WellKnownTagArrays.Namespace,
64Glyph.MethodPublic => WellKnownTagArrays.MethodPublic,
65Glyph.MethodProtected => WellKnownTagArrays.MethodProtected,
66Glyph.MethodPrivate => WellKnownTagArrays.MethodPrivate,
67Glyph.MethodInternal => WellKnownTagArrays.MethodInternal,
68Glyph.ModulePublic => WellKnownTagArrays.ModulePublic,
69Glyph.ModuleProtected => WellKnownTagArrays.ModuleProtected,
70Glyph.ModulePrivate => WellKnownTagArrays.ModulePrivate,
71Glyph.ModuleInternal => WellKnownTagArrays.ModuleInternal,
72Glyph.OpenFolder => WellKnownTagArrays.Folder,
73Glyph.Operator => WellKnownTagArrays.Operator,
74Glyph.Parameter => WellKnownTagArrays.Parameter,
75Glyph.PropertyPublic => WellKnownTagArrays.PropertyPublic,
76Glyph.PropertyProtected => WellKnownTagArrays.PropertyProtected,
77Glyph.PropertyPrivate => WellKnownTagArrays.PropertyPrivate,
78Glyph.PropertyInternal => WellKnownTagArrays.PropertyInternal,
79Glyph.RangeVariable => WellKnownTagArrays.RangeVariable,
80Glyph.Reference => WellKnownTagArrays.Reference,
81Glyph.StructurePublic => WellKnownTagArrays.StructurePublic,
82Glyph.StructureProtected => WellKnownTagArrays.StructureProtected,
83Glyph.StructurePrivate => WellKnownTagArrays.StructurePrivate,
84Glyph.StructureInternal => WellKnownTagArrays.StructureInternal,
85Glyph.TypeParameter => WellKnownTagArrays.TypeParameter,
86Glyph.Snippet => WellKnownTagArrays.Snippet,
87Glyph.CompletionWarning => WellKnownTagArrays.Warning,
88Glyph.StatusInformation => WellKnownTagArrays.StatusInformation,
Completion\Providers\ImportCompletionProvider\ImportCompletionItem.cs (1)
36Glyph glyph,
Completion\Providers\Scripting\AbstractReferenceDirectiveCompletionProvider.cs (3)
56context.AddItem(CommonCompletionItem.Create(name, displayTextSuffix: "", glyph: Glyph.Assembly, rules: s_rules));
57context.AddItem(CommonCompletionItem.Create(PathUtilities.GetFileName(path, includeExtension: true), displayTextSuffix: "", glyph: Glyph.Assembly, rules: s_rules));
69var helper = GetFileSystemCompletionHelper(context.Document, Glyph.Assembly, RuntimeMetadataReferenceResolver.AssemblyExtensions, s_rules);
Completion\Providers\Snippets\SnippetCompletionItem.cs (1)
20Glyph glyph,
ExternalAccess\Pythia\Api\PythiaCompletionProviderBase.cs (1)
33=> CommonCompletionItem.Create(displayText, displayTextSuffix, rules, (Glyph?)glyph, description, sortText, filterText, showsWarningIcon, properties.AsImmutableOrNull(), tags, inlineDescription);
ExternalAccess\VSTypeScript\VSTypeScriptGlyphHelpers.cs (154)
14public static VSTypeScriptGlyph ConvertFrom(Glyph glyph)
18Glyph.None => VSTypeScriptGlyph.None,
19Glyph.Assembly => VSTypeScriptGlyph.Assembly,
20Glyph.BasicFile => VSTypeScriptGlyph.BasicFile,
21Glyph.BasicProject => VSTypeScriptGlyph.BasicProject,
22Glyph.ClassPublic => VSTypeScriptGlyph.ClassPublic,
23Glyph.ClassProtected => VSTypeScriptGlyph.ClassProtected,
24Glyph.ClassPrivate => VSTypeScriptGlyph.ClassPrivate,
25Glyph.ClassInternal => VSTypeScriptGlyph.ClassInternal,
26Glyph.CSharpFile => VSTypeScriptGlyph.CSharpFile,
27Glyph.CSharpProject => VSTypeScriptGlyph.CSharpProject,
28Glyph.ConstantPublic => VSTypeScriptGlyph.ConstantPublic,
29Glyph.ConstantProtected => VSTypeScriptGlyph.ConstantProtected,
30Glyph.ConstantPrivate => VSTypeScriptGlyph.ConstantPrivate,
31Glyph.ConstantInternal => VSTypeScriptGlyph.ConstantInternal,
32Glyph.DelegatePublic => VSTypeScriptGlyph.DelegatePublic,
33Glyph.DelegateProtected => VSTypeScriptGlyph.DelegateProtected,
34Glyph.DelegatePrivate => VSTypeScriptGlyph.DelegatePrivate,
35Glyph.DelegateInternal => VSTypeScriptGlyph.DelegateInternal,
36Glyph.EnumPublic => VSTypeScriptGlyph.EnumPublic,
37Glyph.EnumProtected => VSTypeScriptGlyph.EnumProtected,
38Glyph.EnumPrivate => VSTypeScriptGlyph.EnumPrivate,
39Glyph.EnumInternal => VSTypeScriptGlyph.EnumInternal,
40Glyph.EnumMemberPublic => VSTypeScriptGlyph.EnumMemberPublic,
41Glyph.EnumMemberProtected => VSTypeScriptGlyph.EnumMemberProtected,
42Glyph.EnumMemberPrivate => VSTypeScriptGlyph.EnumMemberPrivate,
43Glyph.EnumMemberInternal => VSTypeScriptGlyph.EnumMemberInternal,
44Glyph.Error => VSTypeScriptGlyph.Error,
45Glyph.StatusInformation => VSTypeScriptGlyph.StatusInformation,
46Glyph.EventPublic => VSTypeScriptGlyph.EventPublic,
47Glyph.EventProtected => VSTypeScriptGlyph.EventProtected,
48Glyph.EventPrivate => VSTypeScriptGlyph.EventPrivate,
49Glyph.EventInternal => VSTypeScriptGlyph.EventInternal,
50Glyph.ExtensionMethodPublic => VSTypeScriptGlyph.ExtensionMethodPublic,
51Glyph.ExtensionMethodProtected => VSTypeScriptGlyph.ExtensionMethodProtected,
52Glyph.ExtensionMethodPrivate => VSTypeScriptGlyph.ExtensionMethodPrivate,
53Glyph.ExtensionMethodInternal => VSTypeScriptGlyph.ExtensionMethodInternal,
54Glyph.FieldPublic => VSTypeScriptGlyph.FieldPublic,
55Glyph.FieldProtected => VSTypeScriptGlyph.FieldProtected,
56Glyph.FieldPrivate => VSTypeScriptGlyph.FieldPrivate,
57Glyph.FieldInternal => VSTypeScriptGlyph.FieldInternal,
58Glyph.InterfacePublic => VSTypeScriptGlyph.InterfacePublic,
59Glyph.InterfaceProtected => VSTypeScriptGlyph.InterfaceProtected,
60Glyph.InterfacePrivate => VSTypeScriptGlyph.InterfacePrivate,
61Glyph.InterfaceInternal => VSTypeScriptGlyph.InterfaceInternal,
62Glyph.Intrinsic => VSTypeScriptGlyph.Intrinsic,
63Glyph.Keyword => VSTypeScriptGlyph.Keyword,
64Glyph.Label => VSTypeScriptGlyph.Label,
65Glyph.Local => VSTypeScriptGlyph.Local,
66Glyph.Namespace => VSTypeScriptGlyph.Namespace,
67Glyph.MethodPublic => VSTypeScriptGlyph.MethodPublic,
68Glyph.MethodProtected => VSTypeScriptGlyph.MethodProtected,
69Glyph.MethodPrivate => VSTypeScriptGlyph.MethodPrivate,
70Glyph.MethodInternal => VSTypeScriptGlyph.MethodInternal,
71Glyph.ModulePublic => VSTypeScriptGlyph.ModulePublic,
72Glyph.ModuleProtected => VSTypeScriptGlyph.ModuleProtected,
73Glyph.ModulePrivate => VSTypeScriptGlyph.ModulePrivate,
74Glyph.ModuleInternal => VSTypeScriptGlyph.ModuleInternal,
75Glyph.OpenFolder => VSTypeScriptGlyph.OpenFolder,
76Glyph.Operator => VSTypeScriptGlyph.Operator,
77Glyph.Parameter => VSTypeScriptGlyph.Parameter,
78Glyph.PropertyPublic => VSTypeScriptGlyph.PropertyPublic,
79Glyph.PropertyProtected => VSTypeScriptGlyph.PropertyProtected,
80Glyph.PropertyPrivate => VSTypeScriptGlyph.PropertyPrivate,
81Glyph.PropertyInternal => VSTypeScriptGlyph.PropertyInternal,
82Glyph.RangeVariable => VSTypeScriptGlyph.RangeVariable,
83Glyph.Reference => VSTypeScriptGlyph.Reference,
84Glyph.StructurePublic => VSTypeScriptGlyph.StructurePublic,
85Glyph.StructureProtected => VSTypeScriptGlyph.StructureProtected,
86Glyph.StructurePrivate => VSTypeScriptGlyph.StructurePrivate,
87Glyph.StructureInternal => VSTypeScriptGlyph.StructureInternal,
88Glyph.TypeParameter => VSTypeScriptGlyph.TypeParameter,
89Glyph.Snippet => VSTypeScriptGlyph.Snippet,
90Glyph.CompletionWarning => VSTypeScriptGlyph.CompletionWarning,
91Glyph.AddReference => VSTypeScriptGlyph.AddReference,
92Glyph.NuGet => VSTypeScriptGlyph.NuGet,
93Glyph.TargetTypeMatch => VSTypeScriptGlyph.TargetTypeMatch,
98public static Glyph ConvertTo(VSTypeScriptGlyph glyph)
102VSTypeScriptGlyph.None => Glyph.None,
103VSTypeScriptGlyph.Assembly => Glyph.Assembly,
104VSTypeScriptGlyph.BasicFile => Glyph.BasicFile,
105VSTypeScriptGlyph.BasicProject => Glyph.BasicProject,
106VSTypeScriptGlyph.ClassPublic => Glyph.ClassPublic,
107VSTypeScriptGlyph.ClassProtected => Glyph.ClassProtected,
108VSTypeScriptGlyph.ClassPrivate => Glyph.ClassPrivate,
109VSTypeScriptGlyph.ClassInternal => Glyph.ClassInternal,
110VSTypeScriptGlyph.CSharpFile => Glyph.CSharpFile,
111VSTypeScriptGlyph.CSharpProject => Glyph.CSharpProject,
112VSTypeScriptGlyph.ConstantPublic => Glyph.ConstantPublic,
113VSTypeScriptGlyph.ConstantProtected => Glyph.ConstantProtected,
114VSTypeScriptGlyph.ConstantPrivate => Glyph.ConstantPrivate,
115VSTypeScriptGlyph.ConstantInternal => Glyph.ConstantInternal,
116VSTypeScriptGlyph.DelegatePublic => Glyph.DelegatePublic,
117VSTypeScriptGlyph.DelegateProtected => Glyph.DelegateProtected,
118VSTypeScriptGlyph.DelegatePrivate => Glyph.DelegatePrivate,
119VSTypeScriptGlyph.DelegateInternal => Glyph.DelegateInternal,
120VSTypeScriptGlyph.EnumPublic => Glyph.EnumPublic,
121VSTypeScriptGlyph.EnumProtected => Glyph.EnumProtected,
122VSTypeScriptGlyph.EnumPrivate => Glyph.EnumPrivate,
123VSTypeScriptGlyph.EnumInternal => Glyph.EnumInternal,
124VSTypeScriptGlyph.EnumMemberPublic => Glyph.EnumMemberPublic,
125VSTypeScriptGlyph.EnumMemberProtected => Glyph.EnumMemberProtected,
126VSTypeScriptGlyph.EnumMemberPrivate => Glyph.EnumMemberPrivate,
127VSTypeScriptGlyph.EnumMemberInternal => Glyph.EnumMemberInternal,
128VSTypeScriptGlyph.Error => Glyph.Error,
129VSTypeScriptGlyph.StatusInformation => Glyph.StatusInformation,
130VSTypeScriptGlyph.EventPublic => Glyph.EventPublic,
131VSTypeScriptGlyph.EventProtected => Glyph.EventProtected,
132VSTypeScriptGlyph.EventPrivate => Glyph.EventPrivate,
133VSTypeScriptGlyph.EventInternal => Glyph.EventInternal,
134VSTypeScriptGlyph.ExtensionMethodPublic => Glyph.ExtensionMethodPublic,
135VSTypeScriptGlyph.ExtensionMethodProtected => Glyph.ExtensionMethodProtected,
136VSTypeScriptGlyph.ExtensionMethodPrivate => Glyph.ExtensionMethodPrivate,
137VSTypeScriptGlyph.ExtensionMethodInternal => Glyph.ExtensionMethodInternal,
138VSTypeScriptGlyph.FieldPublic => Glyph.FieldPublic,
139VSTypeScriptGlyph.FieldProtected => Glyph.FieldProtected,
140VSTypeScriptGlyph.FieldPrivate => Glyph.FieldPrivate,
141VSTypeScriptGlyph.FieldInternal => Glyph.FieldInternal,
142VSTypeScriptGlyph.InterfacePublic => Glyph.InterfacePublic,
143VSTypeScriptGlyph.InterfaceProtected => Glyph.InterfaceProtected,
144VSTypeScriptGlyph.InterfacePrivate => Glyph.InterfacePrivate,
145VSTypeScriptGlyph.InterfaceInternal => Glyph.InterfaceInternal,
146VSTypeScriptGlyph.Intrinsic => Glyph.Intrinsic,
147VSTypeScriptGlyph.Keyword => Glyph.Keyword,
148VSTypeScriptGlyph.Label => Glyph.Label,
149VSTypeScriptGlyph.Local => Glyph.Local,
150VSTypeScriptGlyph.Namespace => Glyph.Namespace,
151VSTypeScriptGlyph.MethodPublic => Glyph.MethodPublic,
152VSTypeScriptGlyph.MethodProtected => Glyph.MethodProtected,
153VSTypeScriptGlyph.MethodPrivate => Glyph.MethodPrivate,
154VSTypeScriptGlyph.MethodInternal => Glyph.MethodInternal,
155VSTypeScriptGlyph.ModulePublic => Glyph.ModulePublic,
156VSTypeScriptGlyph.ModuleProtected => Glyph.ModuleProtected,
157VSTypeScriptGlyph.ModulePrivate => Glyph.ModulePrivate,
158VSTypeScriptGlyph.ModuleInternal => Glyph.ModuleInternal,
159VSTypeScriptGlyph.OpenFolder => Glyph.OpenFolder,
160VSTypeScriptGlyph.Operator => Glyph.Operator,
161VSTypeScriptGlyph.Parameter => Glyph.Parameter,
162VSTypeScriptGlyph.PropertyPublic => Glyph.PropertyPublic,
163VSTypeScriptGlyph.PropertyProtected => Glyph.PropertyProtected,
164VSTypeScriptGlyph.PropertyPrivate => Glyph.PropertyPrivate,
165VSTypeScriptGlyph.PropertyInternal => Glyph.PropertyInternal,
166VSTypeScriptGlyph.RangeVariable => Glyph.RangeVariable,
167VSTypeScriptGlyph.Reference => Glyph.Reference,
168VSTypeScriptGlyph.StructurePublic => Glyph.StructurePublic,
169VSTypeScriptGlyph.StructureProtected => Glyph.StructureProtected,
170VSTypeScriptGlyph.StructurePrivate => Glyph.StructurePrivate,
171VSTypeScriptGlyph.StructureInternal => Glyph.StructureInternal,
172VSTypeScriptGlyph.TypeParameter => Glyph.TypeParameter,
173VSTypeScriptGlyph.Snippet => Glyph.Snippet,
174VSTypeScriptGlyph.CompletionWarning => Glyph.CompletionWarning,
175VSTypeScriptGlyph.AddReference => Glyph.AddReference,
176VSTypeScriptGlyph.NuGet => Glyph.NuGet,
177VSTypeScriptGlyph.TargetTypeMatch => Glyph.TargetTypeMatch,
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (8)
219LanguageNames.CSharp => Glyph.CSharpFile,
220LanguageNames.VisualBasic => Glyph.BasicFile,
237InheritanceRelationship.InheritedImport, item.Detach(), Glyph.None, languageGlyph,
243Glyph.Namespace, targetItems.ToImmutable()));
265InheritanceRelationship.InheritedImport, item.Detach(), Glyph.None, languageGlyph,
274lineNumber, this.GlobalImportsTitle, [taggedText], Glyph.Namespace, targetItems.ToImmutable()));
570LanguageNames.CSharp => Glyph.CSharpFile,
571LanguageNames.VisualBasic => Glyph.BasicFile,
NavigateTo\RoslynNavigateToItem.cs (27)
283Glyph INavigableItem.Glyph => GetGlyph(_item.DeclaredSymbolInfo.Kind, _item.DeclaredSymbolInfo.Accessibility);
285private static Glyph GetPublicGlyph(DeclaredSymbolInfoKind kind)
288DeclaredSymbolInfoKind.Class => Glyph.ClassPublic,
289DeclaredSymbolInfoKind.Constant => Glyph.ConstantPublic,
290DeclaredSymbolInfoKind.Constructor => Glyph.MethodPublic,
291DeclaredSymbolInfoKind.Delegate => Glyph.DelegatePublic,
292DeclaredSymbolInfoKind.Enum => Glyph.EnumPublic,
293DeclaredSymbolInfoKind.EnumMember => Glyph.EnumMemberPublic,
294DeclaredSymbolInfoKind.Event => Glyph.EventPublic,
295DeclaredSymbolInfoKind.ExtensionMethod => Glyph.ExtensionMethodPublic,
296DeclaredSymbolInfoKind.Field => Glyph.FieldPublic,
297DeclaredSymbolInfoKind.Indexer => Glyph.PropertyPublic,
298DeclaredSymbolInfoKind.Interface => Glyph.InterfacePublic,
299DeclaredSymbolInfoKind.Method => Glyph.MethodPublic,
300DeclaredSymbolInfoKind.Module => Glyph.ModulePublic,
301DeclaredSymbolInfoKind.Property => Glyph.PropertyPublic,
302DeclaredSymbolInfoKind.Struct => Glyph.StructurePublic,
303DeclaredSymbolInfoKind.RecordStruct => Glyph.StructurePublic,
304_ => Glyph.ClassPublic,
307private static Glyph GetGlyph(DeclaredSymbolInfoKind kind, Accessibility accessibility)
315var rawGlyph = GetPublicGlyph(kind);
320rawGlyph += (Glyph.ClassPrivate - Glyph.ClassPublic);
323rawGlyph += (Glyph.ClassInternal - Glyph.ClassPublic);
328rawGlyph += (Glyph.ClassProtected - Glyph.ClassPublic);
NavigationBar\IRemoteNavigationBarItemService.cs (8)
29public readonly Glyph Glyph;
68Glyph glyph,
112public static SerializableNavigationBarItem ActionlessItem(string text, Glyph glyph, ImmutableArray<SerializableNavigationBarItem> childItems = default, int indent = 0, bool bolded = false, bool grayed = false)
115public static SerializableNavigationBarItem SymbolItem(string text, Glyph glyph, string name, bool isObsolete, SymbolItemLocation location, ImmutableArray<SerializableNavigationBarItem> childItems = default, int indent = 0, bool bolded = false, bool grayed = false)
119=> new(RoslynNavigationBarItemKind.GenerateFinalizer, text, Glyph.MethodProtected, bolded: false, grayed: false, indent: 0, default, null, false, null, destinationTypeSymbolKey, null, null, null);
121public static SerializableNavigationBarItem GenerateEventHandler(string eventName, Glyph glyph, string containerName, SymbolKey eventSymbolKey, SymbolKey destinationTypeSymbolKey)
124public static SerializableNavigationBarItem GenerateMethod(string text, Glyph glyph, SymbolKey destinationTypeSymbolId, SymbolKey methodToReplicateSymbolId)
128=> new(RoslynNavigationBarItemKind.GenerateDefaultConstructor, text, Glyph.MethodPublic, bolded: false, grayed: false, indent: 0, default, null, false, null, destinationTypeSymbolKey, null, null, null);
NavigationBar\NavigationBarItems\RoslynNavigationBarItem.ActionlessItem.cs (1)
18Glyph glyph,
NavigationBar\NavigationBarItems\RoslynNavigationBarItem.SymbolItem.cs (1)
19Glyph glyph,