1515 references to Glyph
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (267)
Completion\CompletionProviders\AbstractCSharpCompletionProviderTests.cs (5)
57Glyph? glyph, int? matchPriority, bool? hasSuggestionItem, string displayTextSuffix, 83bool checkForAbsence, Glyph? glyph, int? matchPriority, 108SourceCodeKind sourceCodeKind, bool checkForAbsence, Glyph? glyph, 127SourceCodeKind sourceCodeKind, bool checkForAbsence, Glyph? glyph, 140SourceCodeKind sourceCodeKind, bool checkForAbsence, Glyph? glyph,
Completion\CompletionProviders\AwaitCompletionProviderTests.cs (2)
49await VerifyItemExistsAsync(GetMarkup(code, languageVersion), CompletionDisplayTextAwait, glyph: Glyph.Keyword, expectedDescriptionOrNull: expectedDescription, inlineDescription: inlineDescription); 54await VerifyItemExistsAsync(GetMarkup(code, languageVersion), CompletionDisplayTextAwaitAndConfigureAwait, glyph: Glyph.Keyword, expectedDescriptionOrNull: expectedDescription, inlineDescription: inlineDescription);
Completion\CompletionProviders\ConversionCompletionProviderTests.cs (12)
104""", "float", displayTextPrefix: "(", displayTextSuffix: ")", glyph: Glyph.OperatorPublic, matchingFilters: [FilterSet.OperatorFilter]); 123""", "float", displayTextPrefix: "(", displayTextSuffix: ")", glyph: Glyph.OperatorPublic, matchingFilters: [FilterSet.OperatorFilter]); 343""", "int?", displayTextPrefix: "(", displayTextSuffix: ")", glyph: Glyph.OperatorPublic, matchingFilters: [FilterSet.OperatorFilter]); 365glyph: Glyph.OperatorPublic, 393glyph: Glyph.OperatorPublic, 443glyph: Glyph.OperatorPublic, 463glyph: Glyph.OperatorPublic, 504glyph: Glyph.OperatorPublic, 525glyph: Glyph.OperatorPublic, 552glyph: Glyph.OperatorPublic, 601""", "int", displayTextPrefix: "(", displayTextSuffix: ")", glyph: Glyph.OperatorPublic, matchingFilters: [FilterSet.OperatorFilter]); 617""", expected, displayTextPrefix: "(", displayTextSuffix: ")", glyph: Glyph.OperatorPublic, matchingFilters: [FilterSet.OperatorFilter]);
Completion\CompletionProviders\CrefCompletionProviderTests.cs (1)
30bool checkForAbsence, Glyph? glyph, int? matchPriority, bool? hasSuggestionItem, string displayTextSuffix,
Completion\CompletionProviders\DeclarationNameCompletionProviderTests.cs (59)
345""", "MyClass", glyph: Glyph.PropertyPublic); 368await VerifyItemExistsAsync(markup, "myClass", glyph: Glyph.FieldPublic); 369await VerifyItemExistsAsync(markup, "MyClass", glyph: Glyph.PropertyPublic); 370await VerifyItemExistsAsync(markup, "GetMyClass", glyph: Glyph.MethodPublic); 481""", "cancellationToken", glyph: Glyph.Parameter); 491""", "cancellationToken", glyph: Glyph.Parameter); 501""", "cancellationToken", glyph: Glyph.Parameter); 512""", "cancellationToken", glyph: Glyph.Parameter); 522""", "cancellationToken1", glyph: Glyph.Parameter); 531""", "cancellationToken", glyph: Glyph.Parameter); 539""", "cancellationToken1", glyph: Glyph.Parameter); 550""", "cancellationToken", glyph: Glyph.Parameter); 561""", "cancellationToken1", glyph: Glyph.Parameter); 580await VerifyItemExistsAsync(markup, "dbContext", glyph: Glyph.Parameter); 581await VerifyItemExistsAsync(markup, "db", glyph: Glyph.Parameter); 585await VerifyItemExistsAsync(markup, "context", glyph: Glyph.Parameter); 589await VerifyItemExistsAsync(markup, "context1", glyph: Glyph.Parameter); 611await VerifyItemExistsAsync(markup, "dbContext", glyph: Glyph.Parameter); 612await VerifyItemExistsAsync(markup, "db", glyph: Glyph.Parameter); 616await VerifyItemExistsAsync(markup, "context", glyph: Glyph.Parameter); 620await VerifyItemExistsAsync(markup, "context1", glyph: Glyph.Parameter); 642await VerifyItemExistsAsync(markup, "dbContext", glyph: Glyph.Parameter); 643await VerifyItemExistsAsync(markup, "db", glyph: Glyph.Parameter); 647await VerifyItemExistsAsync(markup, "context", glyph: Glyph.Parameter); 651await VerifyItemExistsAsync(markup, "context1", glyph: Glyph.Parameter); 673await VerifyItemExistsAsync(markup, "cancellationToken", glyph: Glyph.Parameter); 689await VerifyItemExistsAsync(markup, "myTok", glyph: Glyph.Parameter); 690await VerifyItemExistsAsync(markup, "cancellationToken", glyph: Glyph.Parameter); 705await VerifyItemExistsAsync(markup, "middleName", glyph: Glyph.Parameter); 706await VerifyItemExistsAsync(markup, "lastName", glyph: Glyph.Parameter); 732await VerifyItemExistsAsync(markup, "cancellationToken", glyph: Glyph.Parameter); 770await VerifyItemExistsAsync(markup, "stringBuilder", glyph: Glyph.Parameter); 771await VerifyItemExistsAsync(markup, "@string", glyph: Glyph.Parameter); 772await VerifyItemExistsAsync(markup, "builder", glyph: Glyph.Parameter); 783""", "@for", glyph: Glyph.Parameter); 1073await VerifyItemExistsAsync(markup, "myClass", glyph: Glyph.FieldPublic, expectedDescriptionOrNull: CSharpFeaturesResources.Suggested_name); 1074await VerifyItemExistsAsync(markup, "MyClass", glyph: Glyph.PropertyPublic, expectedDescriptionOrNull: CSharpFeaturesResources.Suggested_name); 1075await VerifyItemExistsAsync(markup, "GetMyClass", glyph: Glyph.MethodPublic, expectedDescriptionOrNull: CSharpFeaturesResources.Suggested_name); 1090await VerifyItemExistsAsync(markup, "myClass", glyph: Glyph.Local, expectedDescriptionOrNull: CSharpFeaturesResources.Suggested_name); 2091await VerifyItemExistsAsync(markup, "ConfigurationField", glyph: Glyph.FieldPublic, 2093await VerifyItemExistsAsync(markup, "ConfigurationProperty", glyph: Glyph.PropertyPublic, 2095await VerifyItemExistsAsync(markup, "ConfigurationMethod", glyph: Glyph.MethodPublic, 2122await VerifyItemExistsAsync(markup, "ConfigurationLocal", glyph: Glyph.Local, 2124await VerifyItemExistsAsync(markup, "ConfigurationLocalFunction", glyph: Glyph.MethodPublic, 2151await VerifyItemExistsAsync(markup, "classB1", glyph: Glyph.Local, 2170await VerifyItemExistsAsync(markup, "classB1", glyph: Glyph.Local, 2188""", "classB", glyph: Glyph.Local, 2205""", "classB", glyph: Glyph.Local, 2224await VerifyItemExistsAsync(markup, "classB1", glyph: Glyph.Local, 2246await VerifyItemExistsAsync(markup, "classB2", glyph: Glyph.Local, 2269await VerifyItemExistsAsync(markup, "classB1", glyph: Glyph.Local, 2283""", "classA", glyph: Glyph.Local, 2303""", "classB", glyph: Glyph.Local, 2328await VerifyItemExistsAsync(markup, "classB", glyph: Glyph.Parameter, 2413""", "classB", glyph: Glyph.Parameter, 2431""", "classB", glyph: Glyph.Parameter, 2449""", "classB", glyph: Glyph.Local, 2470""", "classB", glyph: Glyph.Local, 2507""", "myClass1", glyph: Glyph.Local);
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProviderTests.cs (1)
535""", "string", glyph: Glyph.ClassPublic);
Completion\CompletionProviders\ExtensionMethodImportCompletionProviderTests.cs (42)
98[StringSyntax(PredefinedEmbeddedLanguageNames.CSharpTest)] string markup, string expectedItem, string inlineDescription, Glyph? glyph = null, string displayTextSuffix = null, string expectedDescriptionOrNull = null, List<CompletionFilter> expectedFilters = null) 140glyph: Glyph.ExtensionMethodPublic, 179glyph: Glyph.ExtensionMethodPublic, 218glyph: Glyph.ExtensionMethodPublic, 257glyph: Glyph.ExtensionMethodPublic, 296glyph: Glyph.ExtensionMethodPublic, 334glyph: Glyph.ExtensionMethodPublic, 374glyph: Glyph.ExtensionMethodPublic, 413glyph: Glyph.ExtensionMethodPublic, 452glyph: Glyph.ExtensionMethodPublic, 491glyph: Glyph.ExtensionMethodPublic, 536glyph: Glyph.ExtensionMethodPublic, 580glyph: Glyph.ExtensionMethodPublic, 627glyph: Glyph.ExtensionMethodPublic, 676glyph: Glyph.ExtensionMethodPublic, 753glyph: Glyph.ExtensionMethodInternal, // This is based on declared accessibility 792glyph: Glyph.ExtensionMethodInternal, 834glyph: Glyph.ExtensionMethodPublic, 874glyph: Glyph.ExtensionMethodPublic, 942glyph: Glyph.ExtensionMethodPublic, 979glyph: Glyph.ExtensionMethodPublic, 1054glyph: Glyph.ExtensionMethodInternal, // This is based on declared accessibility 1105glyph: Glyph.ExtensionMethodInternal, 1148glyph: Glyph.ExtensionMethodPublic, 1232glyph: Glyph.ExtensionMethodPublic, 1238glyph: Glyph.ExtensionMethodPublic, 1294glyph: Glyph.ExtensionMethodPublic, 1300glyph: Glyph.ExtensionMethodPublic, 1351glyph: Glyph.ExtensionMethodPublic, 1357glyph: Glyph.ExtensionMethodPublic, 1403glyph: Glyph.ExtensionMethodPublic, 1473glyph: Glyph.ExtensionMethodPublic, 1536glyph: Glyph.ExtensionMethodPublic, 1584glyph: Glyph.ExtensionMethodPublic, 1629glyph: Glyph.ExtensionMethodPublic, 1674glyph: Glyph.ExtensionMethodPublic, 1718glyph: Glyph.ExtensionMethodPublic, 1767glyph: Glyph.ExtensionMethodPublic, 1775glyph: Glyph.ExtensionMethodPublic, 1822glyph: Glyph.ExtensionMethodPublic, 1870glyph: Glyph.ExtensionMethodPublic, 1931glyph: Glyph.ExtensionMethodPublic,
Completion\CompletionProviders\FunctionPointerUnmanagedCallingConventionCompletionProviderTests.cs (1)
65""", callingConvention, glyph: Glyph.Keyword);
Completion\CompletionProviders\LoadDirectiveCompletionProviderTests.cs (1)
34Glyph? glyph, int? matchPriority, bool? hasSuggestionItem, string displayTextSuffix,
Completion\CompletionProviders\OperatorCompletionProviderTests.cs (3)
104""", "+", inlineDescription: "x + y", glyph: Glyph.OperatorPublic, matchingFilters: [FilterSet.OperatorFilter]); 739""", "+", inlineDescription: "x + y", glyph: Glyph.OperatorPublic, matchingFilters: [FilterSet.OperatorFilter]); 755""", "==", inlineDescription: "x == y", glyph: Glyph.OperatorPublic, matchingFilters: [FilterSet.OperatorFilter]);
Completion\CompletionProviders\ReferenceDirectiveCompletionProviderTests.cs (1)
37Glyph? glyph, int? matchPriority, bool? hasSuggestionItem, string displayTextSuffix,
Completion\CompletionProviders\SymbolCompletionProviderTests.cs (1)
13605glyph: Glyph.ExtensionMethodPublic);
Completion\CompletionProviders\SymbolCompletionProviderTests_NoInteractive.cs (1)
33Glyph? glyph, int? matchPriority, bool? hasSuggestionItem, string displayTextSuffix,
Completion\CompletionProviders\TypeImportCompletionProviderTests.cs (54)
59[InlineData("class", (int)Glyph.ClassPublic)] 60[InlineData("record", (int)Glyph.ClassPublic)] 61[InlineData("struct", (int)Glyph.StructurePublic)] 62[InlineData("enum", (int)Glyph.EnumPublic)] 63[InlineData("interface", (int)Glyph.InterfacePublic)] 86[InlineData("class", (int)Glyph.ClassPublic)] 87[InlineData("record", (int)Glyph.ClassPublic)] 88[InlineData("struct", (int)Glyph.StructurePublic)] 89[InlineData("enum", (int)Glyph.EnumPublic)] 90[InlineData("interface", (int)Glyph.InterfacePublic)] 133[InlineData("class", (int)Glyph.ClassPublic)] 134[InlineData("record", (int)Glyph.ClassPublic)] 135[InlineData("struct", (int)Glyph.StructurePublic)] 136[InlineData("interface", (int)Glyph.InterfacePublic)] 254await VerifyTypeImportItemExistsAsync(markup, "Bar", glyph: (int)Glyph.ClassPublic, inlineDescription: "Foo"); 255await VerifyTypeImportItemExistsAsync(markup, "Bar2", glyph: (int)Glyph.ClassPublic, inlineDescription: "Foo"); 337await VerifyTypeImportItemExistsAsync(markup, "Bar", displayTextSuffix: "<>", glyph: (int)Glyph.ClassPublic, inlineDescription: "Foo"); 393await VerifyTypeImportItemExistsAsync(markup, "Bar", glyph: (int)Glyph.ClassInternal, inlineDescription: "Foo"); 394await VerifyTypeImportItemExistsAsync(markup, "Bar", displayTextSuffix: "<>", glyph: (int)Glyph.ClassPublic, inlineDescription: "Foo"); 453await VerifyTypeImportItemExistsAsync(markup, "Bar", glyph: (int)Glyph.ClassPublic, inlineDescription: "Foo"); 454await VerifyTypeImportItemExistsAsync(markup, "Bar", displayTextSuffix: "<>", glyph: (int)Glyph.ClassPublic, inlineDescription: "Foo"); 515await VerifyTypeImportItemExistsAsync(markup, "Bar", glyph: (int)Glyph.ClassInternal, inlineDescription: "Foo"); 516await VerifyTypeImportItemExistsAsync(markup, "Bar", displayTextSuffix: "<>", glyph: (int)Glyph.ClassInternal, inlineDescription: "Foo"); 541await VerifyTypeImportItemExistsAsync(markup, "Bar", glyph: (int)Glyph.ClassInternal, inlineDescription: "Foo"); 563await VerifyTypeImportItemExistsAsync(markup, "Barr", glyph: (int)Glyph.ClassPublic, inlineDescription: "Foo.Bar"); 590await VerifyTypeImportItemExistsAsync(markup, "Bar", glyph: (int)Glyph.ClassPublic, inlineDescription: "Na"); 591await VerifyTypeImportItemExistsAsync(markup, "Foo", glyph: (int)Glyph.ClassPublic, inlineDescription: "Na"); 703await VerifyTypeImportItemExistsAsync(markup, "Bar", glyph: (int)Glyph.ClassPublic, inlineDescription: "Foo"); 704await VerifyTypeImportItemExistsAsync(markup, "Bar", displayTextSuffix: "<>", glyph: (int)Glyph.ClassPublic, inlineDescription: "Foo"); 705await VerifyTypeImportItemExistsAsync(markup, "Bar", glyph: (int)Glyph.ClassPublic, inlineDescription: "Baz"); 706await VerifyTypeImportItemExistsAsync(markup, "Bar", displayTextSuffix: "<>", glyph: (int)Glyph.ClassPublic, inlineDescription: "Baz"); 834await VerifyTypeImportItemExistsAsync(markup, "Foo4", (int)Glyph.ClassPublic, "Foo1.Foo2.Foo3", displayTextSuffix: "<>"); 835await VerifyTypeImportItemExistsAsync(markup, "Foo5", (int)Glyph.ClassPublic, "Foo1.Foo2.Foo3", displayTextSuffix: "<>"); 1033await VerifyTypeImportItemExistsAsync(markup, "Bar", glyph: (int)Glyph.ClassPublic, inlineDescription: "Foo"); 1106await VerifyTypeImportItemExistsAsync(markup, "My", glyph: (int)Glyph.ClassPublic, inlineDescription: "Foo", expectedDescriptionOrNull: "class Foo.MyAttribute", flags: CompletionItemFlags.Expanded); 1167await VerifyTypeImportItemExistsAsync(markup, "MyAttribute", glyph: (int)Glyph.ClassPublic, inlineDescription: "Foo", expectedDescriptionOrNull: "class Foo.MyAttribute", flags: CompletionItemFlags.CachedAndExpanded); 1168await VerifyTypeImportItemExistsAsync(markup, "MyAttributeWithoutSuffix", glyph: (int)Glyph.ClassPublic, inlineDescription: "Foo", expectedDescriptionOrNull: "class Foo.MyAttributeWithoutSuffix", flags: CompletionItemFlags.CachedAndExpanded); 1170await VerifyTypeImportItemExistsAsync(markup, "MyClass", glyph: (int)Glyph.ClassPublic, inlineDescription: "Foo", expectedDescriptionOrNull: "class Foo.MyClass", flags: CompletionItemFlags.CachedAndExpanded); 1230await VerifyTypeImportItemExistsAsync(markup, "Myattribute", glyph: (int)Glyph.ClassPublic, inlineDescription: "Foo", expectedDescriptionOrNull: "class Foo.Myattribute", flags: CompletionItemFlags.CachedAndExpanded); 1291await VerifyTypeImportItemExistsAsync(markup, "Myattribute", glyph: (int)Glyph.ClassPublic, inlineDescription: "Foo", expectedDescriptionOrNull: "class Foo.Myattribute", flags: CompletionItemFlags.Expanded); 1293await VerifyTypeImportItemExistsAsync(markup, "MyClass", glyph: (int)Glyph.ClassPublic, inlineDescription: "Foo", expectedDescriptionOrNull: "class Foo.MyClass", flags: CompletionItemFlags.CachedAndExpanded); 1358await VerifyTypeImportItemExistsAsync(markup, "Myattribute", glyph: (int)Glyph.ClassPublic, inlineDescription: "Foo", expectedDescriptionOrNull: "class Foo.Myattribute", flags: CompletionItemFlags.Expanded); 1527glyph: (int)Glyph.ClassPublic, 1565glyph: (int)Glyph.ClassPublic, 1617glyph: (int)Glyph.ClassPublic, 1868await VerifyTypeImportItemExistsAsync(source, "Byte", glyph: (int)Glyph.StructurePublic, inlineDescription: "System"); 1869await VerifyTypeImportItemExistsAsync(source, "SByte", glyph: (int)Glyph.StructurePublic, inlineDescription: "System"); 1870await VerifyTypeImportItemExistsAsync(source, "Int16", glyph: (int)Glyph.StructurePublic, inlineDescription: "System"); 1871await VerifyTypeImportItemExistsAsync(source, "UInt16", glyph: (int)Glyph.StructurePublic, inlineDescription: "System"); 1872await VerifyTypeImportItemExistsAsync(source, "Int32", glyph: (int)Glyph.StructurePublic, inlineDescription: "System"); 1873await VerifyTypeImportItemExistsAsync(source, "UInt32", glyph: (int)Glyph.StructurePublic, inlineDescription: "System"); 1874await VerifyTypeImportItemExistsAsync(source, "Int64", glyph: (int)Glyph.StructurePublic, inlineDescription: "System"); 1875await VerifyTypeImportItemExistsAsync(source, "UInt64", glyph: (int)Glyph.StructurePublic, inlineDescription: "System"); 1897=> VerifyItemExistsAsync(markup, expectedItem, displayTextSuffix: displayTextSuffix, glyph: (Glyph)glyph, inlineDescription: inlineDescription, expectedDescriptionOrNull: expectedDescriptionOrNull, isComplexTextEdit: true, flags: flags);
Completion\CompletionProviders\XmlDocumentationCommentCompletionProviderTests.cs (2)
45Glyph? glyph, int? matchPriority, bool? hasSuggestionItem, string displayTextSuffix, 785await VerifyItemExistsAsync(source, keywordText, glyph: Glyph.Keyword);
Interactive\NavigateTo\InteractiveNavigateToTests.cs (24)
47VerifyNavigateToResultItem(item, "Goo", "[|Goo|]", PatternMatchKind.Exact, NavigateToItemKind.Class, Glyph.ClassPrivate); 67VerifyNavigateToResultItem(item, "DogBed", "[|DogBed|]", PatternMatchKind.Exact, NavigateToItemKind.Class, Glyph.ClassInternal); 90VerifyNavigateToResultItem(item, "Method", "[|Method|]()", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPublic, string.Format(FeaturesResources.in_0_project_1, "Goo.Bar.DogBed", "Test")); 106VerifyNavigateToResultItem(item, "Goo", "[|Goo|]<T>", PatternMatchKind.Exact, NavigateToItemKind.Class, Glyph.ClassPrivate); 125VerifyNavigateToResultItem(item, "Bar", "[|Bar|]<T>(T)", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPublic, string.Format(FeaturesResources.in_0_project_1, "Goo<U>", "Test")); 180VerifyNavigateToResultItem(item, "Goo", "[|Goo|]", PatternMatchKind.Exact, NavigateToItemKind.Class, Glyph.ClassInternal); 194VerifyNavigateToResultItem(item, "Bar", "[|B|]ar", PatternMatchKind.Prefix, NavigateToItemKind.Structure, Glyph.StructurePrivate); 211VerifyNavigateToResultItem(item, "Colors", "[|Colors|]", PatternMatchKind.Exact, NavigateToItemKind.Enum, Glyph.EnumPrivate); 228VerifyNavigateToResultItem(item, "Red", "[|R|]ed", PatternMatchKind.Prefix, NavigateToItemKind.EnumItem, Glyph.EnumMemberPublic); 243VerifyNavigateToResultItem(item, "bar", "[|ba|]r", PatternMatchKind.Prefix, NavigateToItemKind.Constant, Glyph.ConstantPrivate); 258VerifyNavigateToResultItem(item, "string", "[|string|]", PatternMatchKind.Exact, NavigateToItemKind.Field, Glyph.FieldPrivate, additionalInfo: string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 267VerifyNavigateToResultItem(item, "this", "[|this|][int]", PatternMatchKind.Exact, NavigateToItemKind.Property, Glyph.PropertyPublic, additionalInfo: string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 276VerifyNavigateToResultItem(item, "ChangedEventHandler", "[|C|]hanged[|E|]vent[|H|]andler", PatternMatchKind.CamelCaseExact, NavigateToItemKind.Event, Glyph.EventPublic, additionalInfo: string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 291VerifyNavigateToResultItem(item, "Bar", "[|B|]ar", PatternMatchKind.Prefix, NavigateToItemKind.Property, Glyph.PropertyPrivate, additionalInfo: string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 306VerifyNavigateToResultItem(item, "DoSomething", "[|D|]o[|S|]omething()", PatternMatchKind.CamelCaseExact, NavigateToItemKind.Method, Glyph.MethodPrivate, string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 323VerifyNavigateToResultItem(item, "DoSomething", "[|D|]o[|S|]omething(int, string)", PatternMatchKind.CamelCaseExact, NavigateToItemKind.Method, Glyph.MethodPrivate, string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 340VerifyNavigateToResultItem(item, "Goo", "[|Goo|]()", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPublic, string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 357VerifyNavigateToResultItem(item, "Goo", "[|Goo|](int)", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPublic, string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 374VerifyNavigateToResultItem(item, "Goo", "[|Goo|].static Goo()", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPrivate, string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 402VerifyNavigateToResultItem(item, "Bar", "[|Bar|]()", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPrivate, string.Format(FeaturesResources.in_0_1_2, "Goo", "test1.cs", "Test")); 443VerifyNavigateToResultItem(item, "IGoo", "[|IG|]oo", PatternMatchKind.Prefix, NavigateToItemKind.Interface, Glyph.InterfacePublic); 458VerifyNavigateToResultItem(item, "DoStuff", "[|DoStuff|]", PatternMatchKind.Exact, NavigateToItemKind.Delegate, Glyph.DelegateInternal); 475VerifyNavigateToResultItem(item, "sqr", "[|sqr|]", PatternMatchKind.Exact, NavigateToItemKind.Field, Glyph.FieldPrivate, string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 623VerifyNavigateToResultItem(item, "get_key_word", "[|g|]et[|_k|]ey[|_w|]ord", PatternMatchKind.CamelCaseExact, NavigateToItemKind.Field, Glyph.FieldPrivate);
NavigateTo\NavigateToSearcherTests.cs (1)
555public Glyph Glyph => throw new NotImplementedException();
NavigateTo\NavigateToTests.cs (55)
46VerifyNavigateToResultItem(item, "Goo", "[|Goo|]", PatternMatchKind.Exact, NavigateToItemKind.Class, Glyph.ClassInternal); 59VerifyNavigateToResultItem(item, "Goo", "[|Goo|]", PatternMatchKind.Exact, NavigateToItemKind.Class, Glyph.ClassInternal); 72VerifyNavigateToResultItem(item, "Goo", "[|Goo|]", PatternMatchKind.Exact, NavigateToItemKind.Class, Glyph.ClassInternal); 92VerifyNavigateToResultItem(item, "Goo", "[|Goo|]", PatternMatchKind.Exact, NavigateToItemKind.Structure, Glyph.StructureInternal); 112VerifyNavigateToResultItem(item, "Goo", "[|Goo|]", PatternMatchKind.Exact, NavigateToItemKind.Class, Glyph.ClassInternal); 126VerifyNavigateToResultItem(item, "static", "[|static|]", PatternMatchKind.Exact, NavigateToItemKind.Class, Glyph.ClassInternal); 130VerifyNavigateToResultItem(item, "static", "[|static|]", PatternMatchKind.Exact, NavigateToItemKind.Class, Glyph.ClassInternal); 149VerifyNavigateToResultItem(item, "DogBed", "[|DogBed|]", PatternMatchKind.Exact, NavigateToItemKind.Class, Glyph.ClassInternal); 171VerifyNavigateToResultItem(item, "Method", "[|Method|]()", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPublic, string.Format(FeaturesResources.in_0_project_1, "Goo.Bar.DogBed", "Test")); 186VerifyNavigateToResultItem(item, "Goo", "[|Goo|]<T>", PatternMatchKind.Exact, NavigateToItemKind.Class, Glyph.ClassInternal); 204VerifyNavigateToResultItem(item, "Bar", "[|Bar|]<T>(T)", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPublic, string.Format(FeaturesResources.in_0_project_1, "Goo<U>", "Test")); 254VerifyNavigateToResultItem(item, "Goo", "[|Goo|]", PatternMatchKind.Exact, NavigateToItemKind.Class, Glyph.ClassInternal); 267VerifyNavigateToResultItem(item, "Bar", "[|B|]ar", PatternMatchKind.Prefix, NavigateToItemKind.Structure, Glyph.StructureInternal); 283VerifyNavigateToResultItem(item, "Colors", "[|Colors|]", PatternMatchKind.Exact, NavigateToItemKind.Enum, Glyph.EnumInternal); 299VerifyNavigateToResultItem(item, "Red", "[|R|]ed", PatternMatchKind.Prefix, NavigateToItemKind.EnumItem, Glyph.EnumMemberPublic); 313VerifyNavigateToResultItem(item, "bar", "[|b|]ar", PatternMatchKind.Prefix, NavigateToItemKind.Field, Glyph.FieldPrivate, additionalInfo: string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 327VerifyNavigateToResultItem(item, "bar", "[|ba|]r", PatternMatchKind.Prefix, NavigateToItemKind.Field, Glyph.FieldPrivate, additionalInfo: string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 354VerifyNavigateToResultItem(item, "string", "[|string|]", PatternMatchKind.Exact, NavigateToItemKind.Field, Glyph.FieldPrivate, additionalInfo: string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 358VerifyNavigateToResultItem(item, "string", "[|string|]", PatternMatchKind.Exact, NavigateToItemKind.Field, Glyph.FieldPrivate, additionalInfo: string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 385VerifyNavigateToResultItem(item, "bar", "[|b|]ar", PatternMatchKind.Prefix, NavigateToItemKind.Field, Glyph.FieldPrivate); 399VerifyNavigateToResultItem(item, "bar", "[|ba|]r", PatternMatchKind.Prefix, NavigateToItemKind.Constant, Glyph.ConstantPrivate); 407VerifyNavigateToResultItem(item, "this", "[|this|][int]", PatternMatchKind.Exact, NavigateToItemKind.Property, Glyph.PropertyPublic, additionalInfo: string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 415VerifyNavigateToResultItem(item, "ChangedEventHandler", "[|C|]hanged[|E|]vent[|H|]andler", PatternMatchKind.CamelCaseExact, NavigateToItemKind.Event, Glyph.EventPublic, additionalInfo: string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 429VerifyNavigateToResultItem(item, "Bar", "[|B|]ar", PatternMatchKind.Prefix, NavigateToItemKind.Property, Glyph.PropertyPrivate, additionalInfo: string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 443VerifyNavigateToResultItem(item, "DoSomething", "[|D|]o[|S|]omething()", PatternMatchKind.CamelCaseExact, NavigateToItemKind.Method, Glyph.MethodPrivate, string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 457VerifyNavigateToResultItem(item, "static", "[|static|]()", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPrivate, string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 461VerifyNavigateToResultItem(item, "static", "[|static|]()", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPrivate, string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 477VerifyNavigateToResultItem(item, "DoSomething", "[|D|]o[|S|]omething(int, string)", PatternMatchKind.CamelCaseExact, NavigateToItemKind.Method, Glyph.MethodPrivate, string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 493VerifyNavigateToResultItem(item, "Goo", "[|Goo|]()", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPublic, string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 509VerifyNavigateToResultItem(item, "Goo", "[|Goo|](int)", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPublic, string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 525VerifyNavigateToResultItem(item, "Goo", "[|Goo|].static Goo()", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPrivate, string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 593VerifyNavigateToResultItem(item, "Bar", "[|Bar|]()", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPrivate, string.Format(FeaturesResources.in_0_1_2, "Goo", "test1.cs", "Test")); 609VerifyNavigateToResultItem(item, "Bar", "[|Bar|]()", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPrivate, string.Format(FeaturesResources.in_0_1_2, "Goo", "test1.cs", "Test")); 647VerifyNavigateToResultItem(item, "IGoo", "[|IG|]oo", PatternMatchKind.Prefix, NavigateToItemKind.Interface, Glyph.InterfacePublic); 660VerifyNavigateToResultItem(item, "Goo", "[|Goo|]()", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPrivate); 673VerifyNavigateToResultItem(item, "Goo", "[|Goo|](int)", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPrivate); 686VerifyNavigateToResultItem(item, "Goo", "[|Goo|]<T>(int)", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPrivate); 702VerifyNavigateToResultItem(item, "Bar", "[|Bar|]()", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPrivate); 724VerifyNavigateToResultItem(item, "Goo", "[|Goo|]()", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPrivate); 746VerifyNavigateToResultItem(item, "Bar", "[|Bar|]()", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPrivate); 760VerifyNavigateToResultItem(item, "DoStuff", "[|DoStuff|]", PatternMatchKind.Exact, NavigateToItemKind.Delegate, Glyph.DelegateInternal); 776VerifyNavigateToResultItem(item, "sqr", "[|sqr|]", PatternMatchKind.Exact, NavigateToItemKind.Field, Glyph.FieldPrivate, string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 790VerifyNavigateToResultItem(item, "itemArray", "[|itemArray|]", PatternMatchKind.Exact, NavigateToItemKind.Field, Glyph.FieldPrivate, string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 834VerifyNavigateToResultItem(item, "M", "[|M|]()", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPrivate, additionalInfo: string.Format(FeaturesResources.in_0_project_1, "A<T>.B.C<U>", "Test")); 883VerifyNavigateToResultItem(item, "M", "[|M|](object?)", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPrivate); 982VerifyNavigateToResultItem(item, "get_key_word", "[|g|]et[|_k|]ey[|_w|]ord", PatternMatchKind.CamelCaseExact, NavigateToItemKind.Field, Glyph.FieldPrivate); 1160VerifyNavigateToResultItem(item, "ToError", "ToError()", PatternMatchKind.Fuzzy, NavigateToItemKind.Method, Glyph.MethodPublic); 1177VerifyNavigateToResultItem(item, "ToError", "[|ToError|](__arglist)", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPublic); 1465VerifyNavigateToResultItem(item, "Method", "[|Method|]((int x, Dictionary<int,string> y), (bool b, global::System.Int32 c))", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPublic, string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 1479VerifyNavigateToResultItem(item, "Member", "[|Member|]", PatternMatchKind.Exact, NavigateToItemKind.Property, Glyph.PropertyPublic); 1494VerifyNavigateToResultItem(item, "Member", "[|Member|]", PatternMatchKind.Exact, NavigateToItemKind.Property, Glyph.PropertyPublic); 1509VerifyNavigateToResultItem(item, "Member", "[|Member|]", PatternMatchKind.Exact, NavigateToItemKind.Field, Glyph.FieldPublic); 1740VerifyNavigateToResultItem(item, "Goo", "[|Goo|]()", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPublic); 1767VerifyNavigateToResultItem(item, "Goo", "[|Goo|]()", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPublic); 1792VerifyNavigateToResultItem(item, "Goo", "[|Goo|]", PatternMatchKind.Exact, NavigateToItemKind.Property, Glyph.PropertyPublic);
QuickInfo\SemanticQuickInfoSourceTests.cs (1)
6906SymbolGlyph(Glyph.OperatorPublic));
Microsoft.CodeAnalysis.CSharp.Features (39)
Completion\CompletionProviders\DeclarationName\DeclarationNameCompletionProvider.cs (1)
102private static CompletionItem CreateCompletionItem(string name, Glyph glyph, string sortText)
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (15)
645public static Glyph GetGlyph(SymbolKind kind, Accessibility? declaredAccessibility) 647var publicIcon = kind switch 649SymbolKind.Field => Glyph.FieldPublic, 650SymbolKind.Local => Glyph.Local, 651SymbolKind.Method => Glyph.MethodPublic, 652SymbolKind.Parameter => Glyph.Parameter, 653SymbolKind.Property => Glyph.PropertyPublic, 654SymbolKind.RangeVariable => Glyph.RangeVariable, 655SymbolKind.TypeParameter => Glyph.TypeParameter, 662publicIcon += Glyph.ClassPrivate - Glyph.ClassPublic; 668publicIcon += Glyph.ClassProtected - Glyph.ClassPublic; 672publicIcon += Glyph.ClassInternal - Glyph.ClassPublic;
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.cs (4)
36public async Task<ImmutableArray<(string name, Glyph glyph)>> ProvideRecommendedNamesAsync( 43using var _ = ArrayBuilder<(string, Glyph)>.GetInstance(out var result); 204ArrayBuilder<(string, Glyph)> result, 271CSharpSyntaxContext context, NameDeclarationInfo declarationInfo, ArrayBuilder<(string, Glyph)> result, CancellationToken cancellationToken)
Completion\CompletionProviders\DeclarationName\IDeclarationNameRecommender.cs (1)
15Task<ImmutableArray<(string name, Glyph glyph)>> ProvideRecommendedNamesAsync(
Completion\CompletionProviders\ExternAliasCompletionProvider.cs (1)
85alias, displayTextSuffix: "", CompletionItemRules.Default, glyph: Glyph.Namespace));
Completion\CompletionProviders\FunctionPointerUnmanagedCallingConventionCompletionProvider.cs (1)
81completionItems.Add(CompletionItem.Create(callingConvention, tags: GlyphTags.GetTags(Glyph.Keyword)));
Completion\CompletionProviders\KeywordCompletionProvider.cs (1)
191glyph: Glyph.Keyword,
Completion\CompletionProviders\SnippetCompletionProvider.cs (1)
194glyph: Glyph.Snippet,
Completion\CompletionProviders\SpeculativeTCompletionProvider.cs (1)
55T, displayTextSuffix: "", CompletionItemRules.Default, glyph: Glyph.TypeParameter));
ExternalAccess\Pythia\PythiaDeclarationNameRecommender.cs (1)
26public async Task<ImmutableArray<(string name, Glyph glyph)>> ProvideRecommendedNamesAsync(
SolutionExplorer\CSharpSolutionExplorerSymbolTreeItemProvider.cs (12)
74Glyph.ClassPublic, 85var glyph = GlyphExtensions.GetGlyph( 99var glyph = GlyphExtensions.GetGlyph( 120var glyph = GlyphExtensions.GetGlyph( 186var glyph = GlyphExtensions.GetGlyph( 230var glyph = GlyphExtensions.GetGlyph(DeclaredSymbolInfoKind.Operator, accessibility); 250var glyph = GlyphExtensions.GetGlyph(DeclaredSymbolInfoKind.Operator, accessibility); 270var glyph = GlyphExtensions.GetGlyph(DeclaredSymbolInfoKind.Constructor, accessibility); 288var glyph = GlyphExtensions.GetGlyph(DeclaredSymbolInfoKind.Property, accessibility); 306var glyph = GlyphExtensions.GetGlyph(DeclaredSymbolInfoKind.Event, accessibility); 328var glyph = GlyphExtensions.GetGlyph(DeclaredSymbolInfoKind.Indexer, accessibility); 352Glyph.EnumMemberPublic,
Microsoft.CodeAnalysis.EditorFeatures (21)
Extensibility\NavigationBar\NavigationBarItem.cs (2)
19Glyph glyph, 27public Glyph Glyph { get; } = glyph;
Extensibility\NavigationBar\NavigationBarProjectItem.cs (1)
11Glyph glyph,
Extensibility\NavigationBar\SimpleNavigationBarItem.cs (1)
12internal sealed class SimpleNavigationBarItem(ITextVersion textVersion, string text, Glyph glyph, ImmutableArray<TextSpan> spans, ImmutableArray<NavigationBarItem> childItems, int indent, bool bolded, bool grayed) : NavigationBarItem(textVersion, text, glyph, spans, childItems, indent, bolded, grayed), IEquatable<SimpleNavigationBarItem>
Extensions\GlyphExtensions.cs (1)
12public static ImageMoniker GetImageMoniker(this Glyph glyph)
ExternalAccess\VSTypeScript\Api\VSTypeScriptInlineRenameInfo.cs (1)
34Glyph IInlineRenameInfo.Glyph
Host\IPreviewDialogService.cs (2)
22/// <param name="topLevelGlyph">The <see cref="Glyph"/> of the root item in the treeview.</param> 33Glyph topLevelGlyph,
InlineRename\AbstractEditorInlineRenameService.FailureInlineRenameInfo.cs (2)
36public Glyph Glyph => Glyph.None;
InlineRename\AbstractEditorInlineRenameService.SymbolRenameInfo.cs (1)
126public Glyph Glyph => RenameSymbol.GetGlyph();
InlineRename\IEditorInlineRenameService.cs (1)
193Glyph Glyph { get; }
IntelliSense\AsyncCompletion\CompletionSource.cs (1)
49[new ImageElement(Glyph.CompletionWarning.GetImageId(), EditorFeaturesResources.Warning_image_element)];
Interactive\AbstractInteractiveWindowCommandCompletionProvider.cs (1)
49completion, displayTextSuffix: "", CompletionItemRules.Default, description: command.Description.ToSymbolDisplayParts(), glyph: Glyph.Intrinsic));
Shared\Extensions\GlyphExtensions.cs (2)
22public static ImageId GetImageId(this Glyph glyph) 29public static ImageElement GetImageElement(this Glyph glyph)
Suggestions\FixAll\FixAllGetFixesService.cs (1)
18protected override Solution? GetChangedSolution(Workspace workspace, Solution currentSolution, Solution newSolution, string fixAllPreviewChangesTitle, string fixAllTopLevelHeader, Glyph glyph)
Suggestions\PreviewChanges\PreviewChangesCodeAction.cs (1)
54CodeAnalysis.Glyph.OpenFolder,
Tags\DefaultImageIdService.cs (3)
29var glyph = tags.GetFirstGlyph(); 35case Glyph.AddReference: 36glyph = Glyph.Reference;
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (19)
Completion\AbstractCompletionProviderTests.cs (12)
123Glyph? glyph, int? matchPriority, bool? hasSuggestionItem, string displayTextSuffix, 145bool checkForAbsence, Glyph? glyph, int? matchPriority, 277Glyph? Glyph = null, 315Glyph? glyph, int? matchPriority, bool? hasSuggestionModeItem, string displayTextSuffix, 433Glyph? glyph = null, int? matchPriority = null, bool? hasSuggestionModeItem = null, 499Glyph? glyph, int? matchPriority, bool? hasSuggestionModeItem, 1101Glyph? glyph, int? matchPriority, bool? hasSuggestionItem, 1118SourceCodeKind sourceCodeKind, bool checkForAbsence, Glyph? glyph, 1131SourceCodeKind sourceCodeKind, bool checkForAbsence, Glyph? glyph, 1181SourceCodeKind sourceCodeKind, bool checkForAbsence, Glyph? glyph, 1206SourceCodeKind sourceCodeKind, bool checkForAbsence, Glyph? glyph, 1228SourceCodeKind sourceCodeKind, bool checkForAbsence, Glyph? glyph,
NavigateTo\AbstractNavigateToTests.cs (1)
189Glyph glyph, string additionalInfo = null)
QuickInfo\AbstractSemanticQuickInfoSourceTests.cs (4)
38internal static Action<QuickInfoItem> SymbolGlyph(Glyph expectedGlyph) 41internal static Action<QuickInfoItem> WarningGlyph(Glyph expectedGlyph) 133WarningGlyph(Glyph.CompletionWarning)(item); 137Assert.DoesNotContain(Glyph.CompletionWarning, item.Tags.GetGlyphs());
RenameTracking\MockPreviewDialogService.cs (2)
24public Glyph TopLevelGlyph; 33public Solution PreviewChanges(string title, string helpString, string description, string topLevelName, Glyph topLevelGlyph, Solution newSolution, Solution oldSolution, bool showCheckBoxes = true)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (10)
Completion\TestFileSystemCompletionHelper.cs (2)
31: base(Glyph.OpenFolder, Glyph.CSharpFile, searchPaths, baseDirectoryOpt, allowableExtensions, CompletionRules)
InheritanceMargin\InheritanceMarginTests.cs (8)
252public readonly Glyph? LanguageGlyph; 259Glyph? languageGlyph = null, 298public readonly Glyph? LanguageGlyph; 306Glyph? languageGlyph, 2323languageGlyph: Glyph.CSharpFile, 2329languageGlyph: Glyph.BasicFile, 2388languageGlyph: Glyph.CSharpFile, 2394languageGlyph: Glyph.CSharpFile,
Microsoft.CodeAnalysis.ExternalAccess.FSharp (161)
Completion\FSharpCommonCompletionItem.cs (1)
28var roslynGlyph = glyph.HasValue ? FSharpGlyphHelpers.ConvertTo(glyph.Value) : (Glyph?)null;
Editor\InlineRename\FSharpInlineRenameInfo.cs (1)
34Glyph IInlineRenameInfo.Glyph
Internal\Editor\FSharpEditorInlineRenameService.cs (1)
136public Glyph Glyph => FSharpGlyphHelpers.ConvertTo(_info.Glyph);
Internal\FSharpGlyphHelpers.cs (157)
11public static FSharpGlyph ConvertFrom(Microsoft.CodeAnalysis.Glyph glyph) 15case Microsoft.CodeAnalysis.Glyph.None: 19case Microsoft.CodeAnalysis.Glyph.Assembly: 23case Microsoft.CodeAnalysis.Glyph.BasicFile: 27case Microsoft.CodeAnalysis.Glyph.BasicProject: 31case Microsoft.CodeAnalysis.Glyph.ClassPublic: 35case Microsoft.CodeAnalysis.Glyph.ClassProtected: 39case Microsoft.CodeAnalysis.Glyph.ClassPrivate: 43case Microsoft.CodeAnalysis.Glyph.ClassInternal: 47case Microsoft.CodeAnalysis.Glyph.CSharpFile: 51case Microsoft.CodeAnalysis.Glyph.CSharpProject: 55case Microsoft.CodeAnalysis.Glyph.ConstantPublic: 59case Microsoft.CodeAnalysis.Glyph.ConstantProtected: 63case Microsoft.CodeAnalysis.Glyph.ConstantPrivate: 67case Microsoft.CodeAnalysis.Glyph.ConstantInternal: 71case Microsoft.CodeAnalysis.Glyph.DelegatePublic: 75case Microsoft.CodeAnalysis.Glyph.DelegateProtected: 79case Microsoft.CodeAnalysis.Glyph.DelegatePrivate: 83case Microsoft.CodeAnalysis.Glyph.DelegateInternal: 87case Microsoft.CodeAnalysis.Glyph.EnumPublic: 91case Microsoft.CodeAnalysis.Glyph.EnumProtected: 95case Microsoft.CodeAnalysis.Glyph.EnumPrivate: 99case Microsoft.CodeAnalysis.Glyph.EnumInternal: 103case Microsoft.CodeAnalysis.Glyph.EnumMemberPublic: 107case Microsoft.CodeAnalysis.Glyph.EnumMemberProtected: 111case Microsoft.CodeAnalysis.Glyph.EnumMemberPrivate: 115case Microsoft.CodeAnalysis.Glyph.EnumMemberInternal: 119case Microsoft.CodeAnalysis.Glyph.Error: 123case Microsoft.CodeAnalysis.Glyph.StatusInformation: 127case Microsoft.CodeAnalysis.Glyph.EventPublic: 131case Microsoft.CodeAnalysis.Glyph.EventProtected: 135case Microsoft.CodeAnalysis.Glyph.EventPrivate: 139case Microsoft.CodeAnalysis.Glyph.EventInternal: 143case Microsoft.CodeAnalysis.Glyph.ExtensionMethodPublic: 147case Microsoft.CodeAnalysis.Glyph.ExtensionMethodProtected: 151case Microsoft.CodeAnalysis.Glyph.ExtensionMethodPrivate: 155case Microsoft.CodeAnalysis.Glyph.ExtensionMethodInternal: 159case Microsoft.CodeAnalysis.Glyph.FieldPublic: 163case Microsoft.CodeAnalysis.Glyph.FieldProtected: 167case Microsoft.CodeAnalysis.Glyph.FieldPrivate: 171case Microsoft.CodeAnalysis.Glyph.FieldInternal: 175case Microsoft.CodeAnalysis.Glyph.InterfacePublic: 179case Microsoft.CodeAnalysis.Glyph.InterfaceProtected: 183case Microsoft.CodeAnalysis.Glyph.InterfacePrivate: 187case Microsoft.CodeAnalysis.Glyph.InterfaceInternal: 191case Microsoft.CodeAnalysis.Glyph.Intrinsic: 195case Microsoft.CodeAnalysis.Glyph.Keyword: 199case Microsoft.CodeAnalysis.Glyph.Label: 203case Microsoft.CodeAnalysis.Glyph.Local: 207case Microsoft.CodeAnalysis.Glyph.Namespace: 211case Microsoft.CodeAnalysis.Glyph.MethodPublic: 215case Microsoft.CodeAnalysis.Glyph.MethodProtected: 219case Microsoft.CodeAnalysis.Glyph.MethodPrivate: 223case Microsoft.CodeAnalysis.Glyph.MethodInternal: 227case Microsoft.CodeAnalysis.Glyph.ModulePublic: 231case Microsoft.CodeAnalysis.Glyph.ModuleProtected: 235case Microsoft.CodeAnalysis.Glyph.ModulePrivate: 239case Microsoft.CodeAnalysis.Glyph.ModuleInternal: 243case Microsoft.CodeAnalysis.Glyph.OpenFolder: 247case Microsoft.CodeAnalysis.Glyph.OperatorPublic: 248case Microsoft.CodeAnalysis.Glyph.OperatorProtected: 249case Microsoft.CodeAnalysis.Glyph.OperatorPrivate: 250case Microsoft.CodeAnalysis.Glyph.OperatorInternal: 254case Microsoft.CodeAnalysis.Glyph.Parameter: 258case Microsoft.CodeAnalysis.Glyph.PropertyPublic: 262case Microsoft.CodeAnalysis.Glyph.PropertyProtected: 266case Microsoft.CodeAnalysis.Glyph.PropertyPrivate: 270case Microsoft.CodeAnalysis.Glyph.PropertyInternal: 274case Microsoft.CodeAnalysis.Glyph.RangeVariable: 278case Microsoft.CodeAnalysis.Glyph.Reference: 282case Microsoft.CodeAnalysis.Glyph.StructurePublic: 286case Microsoft.CodeAnalysis.Glyph.StructureProtected: 290case Microsoft.CodeAnalysis.Glyph.StructurePrivate: 294case Microsoft.CodeAnalysis.Glyph.StructureInternal: 298case Microsoft.CodeAnalysis.Glyph.TypeParameter: 302case Microsoft.CodeAnalysis.Glyph.Snippet: 306case Microsoft.CodeAnalysis.Glyph.CompletionWarning: 310case Microsoft.CodeAnalysis.Glyph.AddReference: 314case Microsoft.CodeAnalysis.Glyph.NuGet: 318case Microsoft.CodeAnalysis.Glyph.TargetTypeMatch: 329public static Microsoft.CodeAnalysis.Glyph ConvertTo(FSharpGlyph glyph) 335return Microsoft.CodeAnalysis.Glyph.None; 339return Microsoft.CodeAnalysis.Glyph.Assembly; 343return Microsoft.CodeAnalysis.Glyph.BasicFile; 347return Microsoft.CodeAnalysis.Glyph.BasicProject; 351return Microsoft.CodeAnalysis.Glyph.ClassPublic; 355return Microsoft.CodeAnalysis.Glyph.ClassProtected; 359return Microsoft.CodeAnalysis.Glyph.ClassPrivate; 363return Microsoft.CodeAnalysis.Glyph.ClassInternal; 367return Microsoft.CodeAnalysis.Glyph.CSharpFile; 371return Microsoft.CodeAnalysis.Glyph.CSharpProject; 375return Microsoft.CodeAnalysis.Glyph.ConstantPublic; 379return Microsoft.CodeAnalysis.Glyph.ConstantProtected; 383return Microsoft.CodeAnalysis.Glyph.ConstantPrivate; 387return Microsoft.CodeAnalysis.Glyph.ConstantInternal; 391return Microsoft.CodeAnalysis.Glyph.DelegatePublic; 395return Microsoft.CodeAnalysis.Glyph.DelegateProtected; 399return Microsoft.CodeAnalysis.Glyph.DelegatePrivate; 403return Microsoft.CodeAnalysis.Glyph.DelegateInternal; 407return Microsoft.CodeAnalysis.Glyph.EnumPublic; 411return Microsoft.CodeAnalysis.Glyph.EnumProtected; 415return Microsoft.CodeAnalysis.Glyph.EnumPrivate; 419return Microsoft.CodeAnalysis.Glyph.EnumInternal; 423return Microsoft.CodeAnalysis.Glyph.EnumMemberPublic; 427return Microsoft.CodeAnalysis.Glyph.EnumMemberProtected; 431return Microsoft.CodeAnalysis.Glyph.EnumMemberPrivate; 435return Microsoft.CodeAnalysis.Glyph.EnumMemberInternal; 439return Microsoft.CodeAnalysis.Glyph.Error; 443return Microsoft.CodeAnalysis.Glyph.StatusInformation; 447return Microsoft.CodeAnalysis.Glyph.EventPublic; 451return Microsoft.CodeAnalysis.Glyph.EventProtected; 455return Microsoft.CodeAnalysis.Glyph.EventPrivate; 459return Microsoft.CodeAnalysis.Glyph.EventInternal; 463return Microsoft.CodeAnalysis.Glyph.ExtensionMethodPublic; 467return Microsoft.CodeAnalysis.Glyph.ExtensionMethodProtected; 471return Microsoft.CodeAnalysis.Glyph.ExtensionMethodPrivate; 475return Microsoft.CodeAnalysis.Glyph.ExtensionMethodInternal; 479return Microsoft.CodeAnalysis.Glyph.FieldPublic; 483return Microsoft.CodeAnalysis.Glyph.FieldProtected; 487return Microsoft.CodeAnalysis.Glyph.FieldPrivate; 491return Microsoft.CodeAnalysis.Glyph.FieldInternal; 495return Microsoft.CodeAnalysis.Glyph.InterfacePublic; 499return Microsoft.CodeAnalysis.Glyph.InterfaceProtected; 503return Microsoft.CodeAnalysis.Glyph.InterfacePrivate; 507return Microsoft.CodeAnalysis.Glyph.InterfaceInternal; 511return Microsoft.CodeAnalysis.Glyph.Intrinsic; 515return Microsoft.CodeAnalysis.Glyph.Keyword; 519return Microsoft.CodeAnalysis.Glyph.Label; 523return Microsoft.CodeAnalysis.Glyph.Local; 527return Microsoft.CodeAnalysis.Glyph.Namespace; 531return Microsoft.CodeAnalysis.Glyph.MethodPublic; 535return Microsoft.CodeAnalysis.Glyph.MethodProtected; 539return Microsoft.CodeAnalysis.Glyph.MethodPrivate; 543return Microsoft.CodeAnalysis.Glyph.MethodInternal; 547return Microsoft.CodeAnalysis.Glyph.ModulePublic; 551return Microsoft.CodeAnalysis.Glyph.ModuleProtected; 555return Microsoft.CodeAnalysis.Glyph.ModulePrivate; 559return Microsoft.CodeAnalysis.Glyph.ModuleInternal; 563return Microsoft.CodeAnalysis.Glyph.OpenFolder; 567return Microsoft.CodeAnalysis.Glyph.OperatorPublic; 571return Microsoft.CodeAnalysis.Glyph.Parameter; 575return Microsoft.CodeAnalysis.Glyph.PropertyPublic; 579return Microsoft.CodeAnalysis.Glyph.PropertyProtected; 583return Microsoft.CodeAnalysis.Glyph.PropertyPrivate; 587return Microsoft.CodeAnalysis.Glyph.PropertyInternal; 591return Microsoft.CodeAnalysis.Glyph.RangeVariable; 595return Microsoft.CodeAnalysis.Glyph.Reference; 599return Microsoft.CodeAnalysis.Glyph.StructurePublic; 603return Microsoft.CodeAnalysis.Glyph.StructureProtected; 607return Microsoft.CodeAnalysis.Glyph.StructurePrivate; 611return Microsoft.CodeAnalysis.Glyph.StructureInternal; 615return Microsoft.CodeAnalysis.Glyph.TypeParameter; 619return Microsoft.CodeAnalysis.Glyph.Snippet; 623return Microsoft.CodeAnalysis.Glyph.CompletionWarning; 627return Microsoft.CodeAnalysis.Glyph.AddReference; 631return Microsoft.CodeAnalysis.Glyph.NuGet; 635return Microsoft.CodeAnalysis.Glyph.TargetTypeMatch;
Internal\Navigation\InternalFSharpNavigableItem.cs (1)
27public Glyph Glyph { get; }
Microsoft.CodeAnalysis.ExternalAccess.FSharp.UnitTests (161)
FSharpGlyphTests.cs (161)
26foreach (var number in Enum.GetValues(typeof(Glyph))) 32internal static FSharpGlyph GetExpectedFSharpGlyph(Microsoft.CodeAnalysis.Glyph glyph) 36case Microsoft.CodeAnalysis.Glyph.None: 40case Microsoft.CodeAnalysis.Glyph.Assembly: 44case Microsoft.CodeAnalysis.Glyph.BasicFile: 48case Microsoft.CodeAnalysis.Glyph.BasicProject: 52case Microsoft.CodeAnalysis.Glyph.ClassPublic: 56case Microsoft.CodeAnalysis.Glyph.ClassProtected: 60case Microsoft.CodeAnalysis.Glyph.ClassPrivate: 64case Microsoft.CodeAnalysis.Glyph.ClassInternal: 68case Microsoft.CodeAnalysis.Glyph.CSharpFile: 72case Microsoft.CodeAnalysis.Glyph.CSharpProject: 76case Microsoft.CodeAnalysis.Glyph.ConstantPublic: 80case Microsoft.CodeAnalysis.Glyph.ConstantProtected: 84case Microsoft.CodeAnalysis.Glyph.ConstantPrivate: 88case Microsoft.CodeAnalysis.Glyph.ConstantInternal: 92case Microsoft.CodeAnalysis.Glyph.DelegatePublic: 96case Microsoft.CodeAnalysis.Glyph.DelegateProtected: 100case Microsoft.CodeAnalysis.Glyph.DelegatePrivate: 104case Microsoft.CodeAnalysis.Glyph.DelegateInternal: 108case Microsoft.CodeAnalysis.Glyph.EnumPublic: 112case Microsoft.CodeAnalysis.Glyph.EnumProtected: 116case Microsoft.CodeAnalysis.Glyph.EnumPrivate: 120case Microsoft.CodeAnalysis.Glyph.EnumInternal: 124case Microsoft.CodeAnalysis.Glyph.EnumMemberPublic: 128case Microsoft.CodeAnalysis.Glyph.EnumMemberProtected: 132case Microsoft.CodeAnalysis.Glyph.EnumMemberPrivate: 136case Microsoft.CodeAnalysis.Glyph.EnumMemberInternal: 140case Microsoft.CodeAnalysis.Glyph.Error: 144case Microsoft.CodeAnalysis.Glyph.StatusInformation: 148case Microsoft.CodeAnalysis.Glyph.EventPublic: 152case Microsoft.CodeAnalysis.Glyph.EventProtected: 156case Microsoft.CodeAnalysis.Glyph.EventPrivate: 160case Microsoft.CodeAnalysis.Glyph.EventInternal: 164case Microsoft.CodeAnalysis.Glyph.ExtensionMethodPublic: 168case Microsoft.CodeAnalysis.Glyph.ExtensionMethodProtected: 172case Microsoft.CodeAnalysis.Glyph.ExtensionMethodPrivate: 176case Microsoft.CodeAnalysis.Glyph.ExtensionMethodInternal: 180case Microsoft.CodeAnalysis.Glyph.FieldPublic: 184case Microsoft.CodeAnalysis.Glyph.FieldProtected: 188case Microsoft.CodeAnalysis.Glyph.FieldPrivate: 192case Microsoft.CodeAnalysis.Glyph.FieldInternal: 196case Microsoft.CodeAnalysis.Glyph.InterfacePublic: 200case Microsoft.CodeAnalysis.Glyph.InterfaceProtected: 204case Microsoft.CodeAnalysis.Glyph.InterfacePrivate: 208case Microsoft.CodeAnalysis.Glyph.InterfaceInternal: 212case Microsoft.CodeAnalysis.Glyph.Intrinsic: 216case Microsoft.CodeAnalysis.Glyph.Keyword: 220case Microsoft.CodeAnalysis.Glyph.Label: 224case Microsoft.CodeAnalysis.Glyph.Local: 228case Microsoft.CodeAnalysis.Glyph.Namespace: 232case Microsoft.CodeAnalysis.Glyph.MethodPublic: 236case Microsoft.CodeAnalysis.Glyph.MethodProtected: 240case Microsoft.CodeAnalysis.Glyph.MethodPrivate: 244case Microsoft.CodeAnalysis.Glyph.MethodInternal: 248case Microsoft.CodeAnalysis.Glyph.ModulePublic: 252case Microsoft.CodeAnalysis.Glyph.ModuleProtected: 256case Microsoft.CodeAnalysis.Glyph.ModulePrivate: 260case Microsoft.CodeAnalysis.Glyph.ModuleInternal: 264case Microsoft.CodeAnalysis.Glyph.OpenFolder: 268case Microsoft.CodeAnalysis.Glyph.OperatorPublic: 269case Microsoft.CodeAnalysis.Glyph.OperatorProtected: 270case Microsoft.CodeAnalysis.Glyph.OperatorPrivate: 271case Microsoft.CodeAnalysis.Glyph.OperatorInternal: 275case Microsoft.CodeAnalysis.Glyph.Parameter: 279case Microsoft.CodeAnalysis.Glyph.PropertyPublic: 283case Microsoft.CodeAnalysis.Glyph.PropertyProtected: 287case Microsoft.CodeAnalysis.Glyph.PropertyPrivate: 291case Microsoft.CodeAnalysis.Glyph.PropertyInternal: 295case Microsoft.CodeAnalysis.Glyph.RangeVariable: 299case Microsoft.CodeAnalysis.Glyph.Reference: 303case Microsoft.CodeAnalysis.Glyph.StructurePublic: 307case Microsoft.CodeAnalysis.Glyph.StructureProtected: 311case Microsoft.CodeAnalysis.Glyph.StructurePrivate: 315case Microsoft.CodeAnalysis.Glyph.StructureInternal: 319case Microsoft.CodeAnalysis.Glyph.TypeParameter: 323case Microsoft.CodeAnalysis.Glyph.Snippet: 327case Microsoft.CodeAnalysis.Glyph.CompletionWarning: 331case Microsoft.CodeAnalysis.Glyph.AddReference: 335case Microsoft.CodeAnalysis.Glyph.NuGet: 339case Microsoft.CodeAnalysis.Glyph.TargetTypeMatch: 350internal static Microsoft.CodeAnalysis.Glyph GetExpectedGlyph(FSharpGlyph glyph) 356return Microsoft.CodeAnalysis.Glyph.None; 360return Microsoft.CodeAnalysis.Glyph.Assembly; 364return Microsoft.CodeAnalysis.Glyph.BasicFile; 368return Microsoft.CodeAnalysis.Glyph.BasicProject; 372return Microsoft.CodeAnalysis.Glyph.ClassPublic; 376return Microsoft.CodeAnalysis.Glyph.ClassProtected; 380return Microsoft.CodeAnalysis.Glyph.ClassPrivate; 384return Microsoft.CodeAnalysis.Glyph.ClassInternal; 388return Microsoft.CodeAnalysis.Glyph.CSharpFile; 392return Microsoft.CodeAnalysis.Glyph.CSharpProject; 396return Microsoft.CodeAnalysis.Glyph.ConstantPublic; 400return Microsoft.CodeAnalysis.Glyph.ConstantProtected; 404return Microsoft.CodeAnalysis.Glyph.ConstantPrivate; 408return Microsoft.CodeAnalysis.Glyph.ConstantInternal; 412return Microsoft.CodeAnalysis.Glyph.DelegatePublic; 416return Microsoft.CodeAnalysis.Glyph.DelegateProtected; 420return Microsoft.CodeAnalysis.Glyph.DelegatePrivate; 424return Microsoft.CodeAnalysis.Glyph.DelegateInternal; 428return Microsoft.CodeAnalysis.Glyph.EnumPublic; 432return Microsoft.CodeAnalysis.Glyph.EnumProtected; 436return Microsoft.CodeAnalysis.Glyph.EnumPrivate; 440return Microsoft.CodeAnalysis.Glyph.EnumInternal; 444return Microsoft.CodeAnalysis.Glyph.EnumMemberPublic; 448return Microsoft.CodeAnalysis.Glyph.EnumMemberProtected; 452return Microsoft.CodeAnalysis.Glyph.EnumMemberPrivate; 456return Microsoft.CodeAnalysis.Glyph.EnumMemberInternal; 460return Microsoft.CodeAnalysis.Glyph.Error; 464return Microsoft.CodeAnalysis.Glyph.StatusInformation; 468return Microsoft.CodeAnalysis.Glyph.EventPublic; 472return Microsoft.CodeAnalysis.Glyph.EventProtected; 476return Microsoft.CodeAnalysis.Glyph.EventPrivate; 480return Microsoft.CodeAnalysis.Glyph.EventInternal; 484return Microsoft.CodeAnalysis.Glyph.ExtensionMethodPublic; 488return Microsoft.CodeAnalysis.Glyph.ExtensionMethodProtected; 492return Microsoft.CodeAnalysis.Glyph.ExtensionMethodPrivate; 496return Microsoft.CodeAnalysis.Glyph.ExtensionMethodInternal; 500return Microsoft.CodeAnalysis.Glyph.FieldPublic; 504return Microsoft.CodeAnalysis.Glyph.FieldProtected; 508return Microsoft.CodeAnalysis.Glyph.FieldPrivate; 512return Microsoft.CodeAnalysis.Glyph.FieldInternal; 516return Microsoft.CodeAnalysis.Glyph.InterfacePublic; 520return Microsoft.CodeAnalysis.Glyph.InterfaceProtected; 524return Microsoft.CodeAnalysis.Glyph.InterfacePrivate; 528return Microsoft.CodeAnalysis.Glyph.InterfaceInternal; 532return Microsoft.CodeAnalysis.Glyph.Intrinsic; 536return Microsoft.CodeAnalysis.Glyph.Keyword; 540return Microsoft.CodeAnalysis.Glyph.Label; 544return Microsoft.CodeAnalysis.Glyph.Local; 548return Microsoft.CodeAnalysis.Glyph.Namespace; 552return Microsoft.CodeAnalysis.Glyph.MethodPublic; 556return Microsoft.CodeAnalysis.Glyph.MethodProtected; 560return Microsoft.CodeAnalysis.Glyph.MethodPrivate; 564return Microsoft.CodeAnalysis.Glyph.MethodInternal; 568return Microsoft.CodeAnalysis.Glyph.ModulePublic; 572return Microsoft.CodeAnalysis.Glyph.ModuleProtected; 576return Microsoft.CodeAnalysis.Glyph.ModulePrivate; 580return Microsoft.CodeAnalysis.Glyph.ModuleInternal; 584return Microsoft.CodeAnalysis.Glyph.OpenFolder; 588return Microsoft.CodeAnalysis.Glyph.OperatorPublic; 592return Microsoft.CodeAnalysis.Glyph.Parameter; 596return Microsoft.CodeAnalysis.Glyph.PropertyPublic; 600return Microsoft.CodeAnalysis.Glyph.PropertyProtected; 604return Microsoft.CodeAnalysis.Glyph.PropertyPrivate; 608return Microsoft.CodeAnalysis.Glyph.PropertyInternal; 612return Microsoft.CodeAnalysis.Glyph.RangeVariable; 616return Microsoft.CodeAnalysis.Glyph.Reference; 620return Microsoft.CodeAnalysis.Glyph.StructurePublic; 624return Microsoft.CodeAnalysis.Glyph.StructureProtected; 628return Microsoft.CodeAnalysis.Glyph.StructurePrivate; 632return Microsoft.CodeAnalysis.Glyph.StructureInternal; 636return Microsoft.CodeAnalysis.Glyph.TypeParameter; 640return Microsoft.CodeAnalysis.Glyph.Snippet; 644return Microsoft.CodeAnalysis.Glyph.CompletionWarning; 648return Microsoft.CodeAnalysis.Glyph.AddReference; 652return Microsoft.CodeAnalysis.Glyph.NuGet; 656return Microsoft.CodeAnalysis.Glyph.TargetTypeMatch; 669var actual = FSharpGlyphHelpers.ConvertTo(glyph); 670var expected = GetExpectedGlyph(glyph); 676internal void MapsCorrectlyOpposite(Glyph glyph)
Microsoft.CodeAnalysis.Features (492)
ChangeSignature\ChangeSignatureResult.cs (2)
13Glyph? glyph = null, 21public Glyph? Glyph { get; } = glyph;
CodeFixesAndRefactorings\AbstractFixAllGetFixesService.cs (5)
23Glyph glyph); 135var glyph = language == null 136? Glyph.Assembly 138? Glyph.CSharpProject 139: Glyph.BasicProject;
CodeFixesAndRefactorings\FeaturesFixAllGetFixesService.cs (1)
17protected override Solution? GetChangedSolution(Workspace workspace, Solution currentSolution, Solution newSolution, string fixAllPreviewChangesTitle, string fixAllTopLevelHeader, Glyph glyph)
CodeLens\ReferenceLocationDescriptor.cs (2)
17Glyph? glyph, 49public Glyph? Glyph { get; } = glyph;
Common\GlyphExtensions.cs (116)
16public static ImmutableArray<Glyph> GetGlyphs(this ImmutableArray<string> tags) 19public static ImmutableArray<Glyph> GetGlyphs(this ReadOnlySpan<string> tags) 21using var _ = ArrayBuilder<Glyph>.GetInstance(tags.Length, out var builder); 25var glyph = GetGlyph(tag, tags); 26if (glyph != Glyph.None) 33public static Glyph GetFirstGlyph(this ImmutableArray<string> tags) 36public static Glyph GetFirstGlyph(this ReadOnlySpan<string> tags) 40var glyph = GetGlyph(tag, tags); 41if (glyph != Glyph.None) 45return Glyph.None; 48private static Glyph GetGlyph(string tag, ReadOnlySpan<string> allTags) 53return Glyph.Assembly; 56return allTags.Contains(LanguageNames.VisualBasic) ? Glyph.BasicFile : Glyph.CSharpFile; 59return allTags.Contains(LanguageNames.VisualBasic) ? Glyph.BasicProject : Glyph.CSharpProject; 64Accessibility.Protected => Glyph.ClassProtected, 65Accessibility.Private => Glyph.ClassPrivate, 66Accessibility.Internal => Glyph.ClassInternal, 67_ => Glyph.ClassPublic, 72Accessibility.Protected => Glyph.ConstantProtected, 73Accessibility.Private => Glyph.ConstantPrivate, 74Accessibility.Internal => Glyph.ConstantInternal, 75_ => Glyph.ConstantPublic, 80Accessibility.Protected => Glyph.DelegateProtected, 81Accessibility.Private => Glyph.DelegatePrivate, 82Accessibility.Internal => Glyph.DelegateInternal, 83_ => Glyph.DelegatePublic, 88Accessibility.Protected => Glyph.EnumProtected, 89Accessibility.Private => Glyph.EnumPrivate, 90Accessibility.Internal => Glyph.EnumInternal, 91_ => Glyph.EnumPublic, 96Accessibility.Protected => Glyph.EnumMemberProtected, 97Accessibility.Private => Glyph.EnumMemberPrivate, 98Accessibility.Internal => Glyph.EnumMemberInternal, 99_ => Glyph.EnumMemberPublic, 102return Glyph.Error; 107Accessibility.Protected => Glyph.EventProtected, 108Accessibility.Private => Glyph.EventPrivate, 109Accessibility.Internal => Glyph.EventInternal, 110_ => Glyph.EventPublic, 115Accessibility.Protected => Glyph.ExtensionMethodProtected, 116Accessibility.Private => Glyph.ExtensionMethodPrivate, 117Accessibility.Internal => Glyph.ExtensionMethodInternal, 118_ => Glyph.ExtensionMethodPublic, 123Accessibility.Protected => Glyph.FieldProtected, 124Accessibility.Private => Glyph.FieldPrivate, 125Accessibility.Internal => Glyph.FieldInternal, 126_ => Glyph.FieldPublic, 131Accessibility.Protected => Glyph.InterfaceProtected, 132Accessibility.Private => Glyph.InterfacePrivate, 133Accessibility.Internal => Glyph.InterfaceInternal, 134_ => Glyph.InterfacePublic, 137return Glyph.TargetTypeMatch; 140return Glyph.Intrinsic; 143return Glyph.Keyword; 146return Glyph.Label; 149return Glyph.Local; 152return Glyph.Namespace; 157Accessibility.Protected => Glyph.MethodProtected, 158Accessibility.Private => Glyph.MethodPrivate, 159Accessibility.Internal => Glyph.MethodInternal, 160_ => Glyph.MethodPublic, 165Accessibility.Protected => Glyph.ModuleProtected, 166Accessibility.Private => Glyph.ModulePrivate, 167Accessibility.Internal => Glyph.ModuleInternal, 168_ => Glyph.ModulePublic, 171return Glyph.OpenFolder; 176Accessibility.Protected => Glyph.OperatorProtected, 177Accessibility.Private => Glyph.OperatorPrivate, 178Accessibility.Internal => Glyph.OperatorInternal, 179_ => Glyph.OperatorPublic, 183return Glyph.Parameter; 188Accessibility.Protected => Glyph.PropertyProtected, 189Accessibility.Private => Glyph.PropertyPrivate, 190Accessibility.Internal => Glyph.PropertyInternal, 191_ => Glyph.PropertyPublic, 194return Glyph.RangeVariable; 197return Glyph.Reference; 200return Glyph.NuGet; 205Accessibility.Protected => Glyph.StructureProtected, 206Accessibility.Private => Glyph.StructurePrivate, 207Accessibility.Internal => Glyph.StructureInternal, 208_ => Glyph.StructurePublic, 211return Glyph.TypeParameter; 214return Glyph.Snippet; 217return Glyph.CompletionWarning; 220return Glyph.StatusInformation; 223return Glyph.None; 249public static Glyph GetGlyph(DeclaredSymbolInfoKind kind, Accessibility accessibility) 257var rawGlyph = GetPublicGlyph(kind); 262rawGlyph += (Glyph.ClassPrivate - Glyph.ClassPublic); 265rawGlyph += (Glyph.ClassInternal - Glyph.ClassPublic); 270rawGlyph += (Glyph.ClassProtected - Glyph.ClassPublic); 277private static Glyph GetPublicGlyph(DeclaredSymbolInfoKind kind) 280DeclaredSymbolInfoKind.Class => Glyph.ClassPublic, 281DeclaredSymbolInfoKind.Constant => Glyph.ConstantPublic, 282DeclaredSymbolInfoKind.Constructor => Glyph.MethodPublic, 283DeclaredSymbolInfoKind.Delegate => Glyph.DelegatePublic, 284DeclaredSymbolInfoKind.Enum => Glyph.EnumPublic, 285DeclaredSymbolInfoKind.EnumMember => Glyph.EnumMemberPublic, 286DeclaredSymbolInfoKind.Event => Glyph.EventPublic, 287DeclaredSymbolInfoKind.ExtensionMethod => Glyph.ExtensionMethodPublic, 288DeclaredSymbolInfoKind.Field => Glyph.FieldPublic, 289DeclaredSymbolInfoKind.Indexer => Glyph.PropertyPublic, 290DeclaredSymbolInfoKind.Interface => Glyph.InterfacePublic, 291DeclaredSymbolInfoKind.Method => Glyph.MethodPublic, 292DeclaredSymbolInfoKind.Module => Glyph.ModulePublic, 293DeclaredSymbolInfoKind.Operator => Glyph.OperatorPublic, 294DeclaredSymbolInfoKind.Property => Glyph.PropertyPublic, 295DeclaredSymbolInfoKind.Struct => Glyph.StructurePublic, 296DeclaredSymbolInfoKind.RecordStruct => Glyph.StructurePublic, 297_ => Glyph.ClassPublic,
Common\GlyphTags.cs (76)
12public static ImmutableArray<string> GetTags(Glyph glyph) 15Glyph.Assembly => WellKnownTagArrays.Assembly, 16Glyph.BasicFile => WellKnownTagArrays.VisualBasicFile, 17Glyph.BasicProject => WellKnownTagArrays.VisualBasicProject, 18Glyph.ClassPublic => WellKnownTagArrays.ClassPublic, 19Glyph.ClassProtected => WellKnownTagArrays.ClassProtected, 20Glyph.ClassPrivate => WellKnownTagArrays.ClassPrivate, 21Glyph.ClassInternal => WellKnownTagArrays.ClassInternal, 22Glyph.CSharpFile => WellKnownTagArrays.CSharpFile, 23Glyph.CSharpProject => WellKnownTagArrays.CSharpProject, 24Glyph.ConstantPublic => WellKnownTagArrays.ConstantPublic, 25Glyph.ConstantProtected => WellKnownTagArrays.ConstantProtected, 26Glyph.ConstantPrivate => WellKnownTagArrays.ConstantPrivate, 27Glyph.ConstantInternal => WellKnownTagArrays.ConstantInternal, 28Glyph.DelegatePublic => WellKnownTagArrays.DelegatePublic, 29Glyph.DelegateProtected => WellKnownTagArrays.DelegateProtected, 30Glyph.DelegatePrivate => WellKnownTagArrays.DelegatePrivate, 31Glyph.DelegateInternal => WellKnownTagArrays.DelegateInternal, 32Glyph.EnumPublic => WellKnownTagArrays.EnumPublic, 33Glyph.EnumProtected => WellKnownTagArrays.EnumProtected, 34Glyph.EnumPrivate => WellKnownTagArrays.EnumPrivate, 35Glyph.EnumInternal => WellKnownTagArrays.EnumInternal, 36Glyph.EnumMemberPublic => WellKnownTagArrays.EnumMemberPublic, 37Glyph.EnumMemberProtected => WellKnownTagArrays.EnumMemberProtected, 38Glyph.EnumMemberPrivate => WellKnownTagArrays.EnumMemberPrivate, 39Glyph.EnumMemberInternal => WellKnownTagArrays.EnumMemberInternal, 40Glyph.Error => WellKnownTagArrays.Error, 41Glyph.EventPublic => WellKnownTagArrays.EventPublic, 42Glyph.EventProtected => WellKnownTagArrays.EventProtected, 43Glyph.EventPrivate => WellKnownTagArrays.EventPrivate, 44Glyph.EventInternal => WellKnownTagArrays.EventInternal, 45Glyph.ExtensionMethodPublic => WellKnownTagArrays.ExtensionMethodPublic, 46Glyph.ExtensionMethodProtected => WellKnownTagArrays.ExtensionMethodProtected, 47Glyph.ExtensionMethodPrivate => WellKnownTagArrays.ExtensionMethodPrivate, 48Glyph.ExtensionMethodInternal => WellKnownTagArrays.ExtensionMethodInternal, 49Glyph.FieldPublic => WellKnownTagArrays.FieldPublic, 50Glyph.FieldProtected => WellKnownTagArrays.FieldProtected, 51Glyph.FieldPrivate => WellKnownTagArrays.FieldPrivate, 52Glyph.FieldInternal => WellKnownTagArrays.FieldInternal, 53Glyph.InterfacePublic => WellKnownTagArrays.InterfacePublic, 54Glyph.InterfaceProtected => WellKnownTagArrays.InterfaceProtected, 55Glyph.InterfacePrivate => WellKnownTagArrays.InterfacePrivate, 56Glyph.InterfaceInternal => WellKnownTagArrays.InterfaceInternal, 57Glyph.Intrinsic => WellKnownTagArrays.Intrinsic, 58Glyph.Keyword => WellKnownTagArrays.Keyword, 59Glyph.Label => WellKnownTagArrays.Label, 60Glyph.Local => WellKnownTagArrays.Local, 61Glyph.Namespace => WellKnownTagArrays.Namespace, 62Glyph.MethodPublic => WellKnownTagArrays.MethodPublic, 63Glyph.MethodProtected => WellKnownTagArrays.MethodProtected, 64Glyph.MethodPrivate => WellKnownTagArrays.MethodPrivate, 65Glyph.MethodInternal => WellKnownTagArrays.MethodInternal, 66Glyph.ModulePublic => WellKnownTagArrays.ModulePublic, 67Glyph.ModuleProtected => WellKnownTagArrays.ModuleProtected, 68Glyph.ModulePrivate => WellKnownTagArrays.ModulePrivate, 69Glyph.ModuleInternal => WellKnownTagArrays.ModuleInternal, 70Glyph.OpenFolder => WellKnownTagArrays.Folder, 71Glyph.OperatorPublic => WellKnownTagArrays.OperatorPublic, 72Glyph.OperatorProtected => WellKnownTagArrays.OperatorProtected, 73Glyph.OperatorPrivate => WellKnownTagArrays.OperatorPrivate, 74Glyph.OperatorInternal => WellKnownTagArrays.OperatorInternal, 75Glyph.Parameter => WellKnownTagArrays.Parameter, 76Glyph.PropertyPublic => WellKnownTagArrays.PropertyPublic, 77Glyph.PropertyProtected => WellKnownTagArrays.PropertyProtected, 78Glyph.PropertyPrivate => WellKnownTagArrays.PropertyPrivate, 79Glyph.PropertyInternal => WellKnownTagArrays.PropertyInternal, 80Glyph.RangeVariable => WellKnownTagArrays.RangeVariable, 81Glyph.Reference => WellKnownTagArrays.Reference, 82Glyph.StructurePublic => WellKnownTagArrays.StructurePublic, 83Glyph.StructureProtected => WellKnownTagArrays.StructureProtected, 84Glyph.StructurePrivate => WellKnownTagArrays.StructurePrivate, 85Glyph.StructureInternal => WellKnownTagArrays.StructureInternal, 86Glyph.TypeParameter => WellKnownTagArrays.TypeParameter, 87Glyph.Snippet => WellKnownTagArrays.Snippet, 88Glyph.CompletionWarning => WellKnownTagArrays.Warning, 89Glyph.StatusInformation => WellKnownTagArrays.StatusInformation,
Completion\CommonCompletionItem.cs (1)
22Glyph? glyph = null,
Completion\FileSystemCompletionHelper.cs (4)
25private readonly Glyph _folderGlyph; 26private readonly Glyph _fileGlyph; 36Glyph folderGlyph, 37Glyph fileGlyph,
Completion\Providers\AbstractAwaitCompletionProvider.cs (1)
157glyph: Glyph.Keyword,
Completion\Providers\AbstractPreprocessorCompletionProvider.cs (1)
48glyph: Glyph.Keyword,
Completion\Providers\ImportCompletionProvider\ImportCompletionItem.cs (1)
36Glyph glyph,
Completion\Providers\ImportCompletionProvider\SerializableImportCompletionItem.cs (2)
10internal readonly struct SerializableImportCompletionItem(string symbolKeyData, string name, int arity, Glyph glyph, string containingNamespace, int additionalOverloadCount, bool includedInTargetTypeCompletion) 22public readonly Glyph Glyph = glyph;
Completion\Providers\RecommendedKeyword.cs (4)
14Glyph glyph, 20public Glyph Glyph { get; } = glyph; 27public RecommendedKeyword(string keyword, string toolTip = "", Glyph glyph = Glyph.Keyword, bool isIntrinsic = false, bool shouldFormatOnCommit = false, int? matchPriority = null)
Completion\Providers\Scripting\AbstractDirectivePathCompletionProvider.cs (2)
161Glyph itemGlyph, 179Glyph.OpenFolder,
Completion\Providers\Scripting\AbstractLoadDirectiveCompletionProvider.cs (1)
40var helper = GetFileSystemCompletionHelper(context.Document, Glyph.CSharpFile, [".csx"], s_rules);
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\Scripting\GlobalAssemblyCacheCompletionHelper.cs (2)
44identity.GetDisplayName(), displayTextSuffix: "", glyph: Glyph.Assembly, rules: _itemRules)); 53displayName, displayTextSuffix: "", glyph: Glyph.Assembly, rules: _itemRules));
Completion\Providers\Snippets\AbstractSnippetCompletionProvider.cs (1)
94glyph: Glyph.Snippet,
Completion\Providers\Snippets\SnippetCompletionItem.cs (1)
20Glyph glyph,
Completion\Providers\SymbolCompletionItem.cs (3)
43Glyph? glyph = null, 342Glyph? glyph = null, 366Glyph? glyph = null,
Completion\Providers\XmlDocCommentCompletionItem.cs (1)
24glyph: Glyph.Keyword,
EncapsulateField\EncapsulateFieldResult.cs (2)
12internal sealed class EncapsulateFieldResult(string name, Glyph glyph, Func<CancellationToken, Task<Solution>> getSolutionAsync) 15public readonly Glyph Glyph = glyph;
ExternalAccess\Pythia\Api\PythiaCompletionProviderBase.cs (1)
32=> CommonCompletionItem.Create(displayText, displayTextSuffix, rules, (Glyph?)glyph, description, sortText, filterText, showsWarningIcon, properties.AsImmutableOrNull(), tags, inlineDescription);
ExternalAccess\Pythia\Api\PythiaGlyph.cs (1)
9Keyword = Glyph.Keyword
ExternalAccess\VSTypeScript\Api\IVSTypeScriptNavigableItem.cs (1)
12Glyph Glyph { get; }
ExternalAccess\VSTypeScript\VSTypeScriptGlyphHelpers.cs (157)
11public static VSTypeScriptGlyph ConvertFrom(Glyph glyph) 15Glyph.None => VSTypeScriptGlyph.None, 16Glyph.Assembly => VSTypeScriptGlyph.Assembly, 17Glyph.BasicFile => VSTypeScriptGlyph.BasicFile, 18Glyph.BasicProject => VSTypeScriptGlyph.BasicProject, 19Glyph.ClassPublic => VSTypeScriptGlyph.ClassPublic, 20Glyph.ClassProtected => VSTypeScriptGlyph.ClassProtected, 21Glyph.ClassPrivate => VSTypeScriptGlyph.ClassPrivate, 22Glyph.ClassInternal => VSTypeScriptGlyph.ClassInternal, 23Glyph.CSharpFile => VSTypeScriptGlyph.CSharpFile, 24Glyph.CSharpProject => VSTypeScriptGlyph.CSharpProject, 25Glyph.ConstantPublic => VSTypeScriptGlyph.ConstantPublic, 26Glyph.ConstantProtected => VSTypeScriptGlyph.ConstantProtected, 27Glyph.ConstantPrivate => VSTypeScriptGlyph.ConstantPrivate, 28Glyph.ConstantInternal => VSTypeScriptGlyph.ConstantInternal, 29Glyph.DelegatePublic => VSTypeScriptGlyph.DelegatePublic, 30Glyph.DelegateProtected => VSTypeScriptGlyph.DelegateProtected, 31Glyph.DelegatePrivate => VSTypeScriptGlyph.DelegatePrivate, 32Glyph.DelegateInternal => VSTypeScriptGlyph.DelegateInternal, 33Glyph.EnumPublic => VSTypeScriptGlyph.EnumPublic, 34Glyph.EnumProtected => VSTypeScriptGlyph.EnumProtected, 35Glyph.EnumPrivate => VSTypeScriptGlyph.EnumPrivate, 36Glyph.EnumInternal => VSTypeScriptGlyph.EnumInternal, 37Glyph.EnumMemberPublic => VSTypeScriptGlyph.EnumMemberPublic, 38Glyph.EnumMemberProtected => VSTypeScriptGlyph.EnumMemberProtected, 39Glyph.EnumMemberPrivate => VSTypeScriptGlyph.EnumMemberPrivate, 40Glyph.EnumMemberInternal => VSTypeScriptGlyph.EnumMemberInternal, 41Glyph.Error => VSTypeScriptGlyph.Error, 42Glyph.StatusInformation => VSTypeScriptGlyph.StatusInformation, 43Glyph.EventPublic => VSTypeScriptGlyph.EventPublic, 44Glyph.EventProtected => VSTypeScriptGlyph.EventProtected, 45Glyph.EventPrivate => VSTypeScriptGlyph.EventPrivate, 46Glyph.EventInternal => VSTypeScriptGlyph.EventInternal, 47Glyph.ExtensionMethodPublic => VSTypeScriptGlyph.ExtensionMethodPublic, 48Glyph.ExtensionMethodProtected => VSTypeScriptGlyph.ExtensionMethodProtected, 49Glyph.ExtensionMethodPrivate => VSTypeScriptGlyph.ExtensionMethodPrivate, 50Glyph.ExtensionMethodInternal => VSTypeScriptGlyph.ExtensionMethodInternal, 51Glyph.FieldPublic => VSTypeScriptGlyph.FieldPublic, 52Glyph.FieldProtected => VSTypeScriptGlyph.FieldProtected, 53Glyph.FieldPrivate => VSTypeScriptGlyph.FieldPrivate, 54Glyph.FieldInternal => VSTypeScriptGlyph.FieldInternal, 55Glyph.InterfacePublic => VSTypeScriptGlyph.InterfacePublic, 56Glyph.InterfaceProtected => VSTypeScriptGlyph.InterfaceProtected, 57Glyph.InterfacePrivate => VSTypeScriptGlyph.InterfacePrivate, 58Glyph.InterfaceInternal => VSTypeScriptGlyph.InterfaceInternal, 59Glyph.Intrinsic => VSTypeScriptGlyph.Intrinsic, 60Glyph.Keyword => VSTypeScriptGlyph.Keyword, 61Glyph.Label => VSTypeScriptGlyph.Label, 62Glyph.Local => VSTypeScriptGlyph.Local, 63Glyph.Namespace => VSTypeScriptGlyph.Namespace, 64Glyph.MethodPublic => VSTypeScriptGlyph.MethodPublic, 65Glyph.MethodProtected => VSTypeScriptGlyph.MethodProtected, 66Glyph.MethodPrivate => VSTypeScriptGlyph.MethodPrivate, 67Glyph.MethodInternal => VSTypeScriptGlyph.MethodInternal, 68Glyph.ModulePublic => VSTypeScriptGlyph.ModulePublic, 69Glyph.ModuleProtected => VSTypeScriptGlyph.ModuleProtected, 70Glyph.ModulePrivate => VSTypeScriptGlyph.ModulePrivate, 71Glyph.ModuleInternal => VSTypeScriptGlyph.ModuleInternal, 72Glyph.OpenFolder => VSTypeScriptGlyph.OpenFolder, 73Glyph.OperatorPublic => VSTypeScriptGlyph.Operator, 74Glyph.OperatorProtected => VSTypeScriptGlyph.Operator, 75Glyph.OperatorPrivate => VSTypeScriptGlyph.Operator, 76Glyph.OperatorInternal => 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.OperatorPublic, 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,
ExternalAccess\VSTypeScript\VSTypeScriptNavigableItemWrapper.cs (1)
16public Glyph Glyph => _navigableItem.Glyph;
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (10)
217var languageGlyph = document.Project.Language switch 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())); 576var languageGlyph = targetSymbol.Language switch 578LanguageNames.CSharp => Glyph.CSharpFile, 579LanguageNames.VisualBasic => Glyph.BasicFile,
InheritanceMargin\InheritanceMarginItem.cs (3)
18Glyph glyph, 44public readonly Glyph Glyph = glyph; 72Glyph glyph,
InheritanceMargin\InheritanceTargetItem.cs (4)
32public readonly Glyph Glyph; 38public readonly Glyph LanguageGlyph; 56Glyph glyph, 57Glyph languageGlyph,
NavigateTo\RoslynNavigateToItem.cs (1)
283Glyph INavigableItem.Glyph => GlyphExtensions.GetGlyph(_item.DeclaredSymbolInfo.Kind, _item.DeclaredSymbolInfo.Accessibility);
Navigation\INavigableItem.cs (1)
16Glyph Glyph { get; }
Navigation\NavigableItemFactory.SymbolLocationNavigableItem.cs (1)
38public Glyph Glyph => _symbol.GetGlyph();
NavigationBar\IRemoteNavigationBarItemService.cs (8)
28public readonly Glyph Glyph; 67Glyph glyph, 111public static SerializableNavigationBarItem ActionlessItem(string text, Glyph glyph, ImmutableArray<SerializableNavigationBarItem> childItems = default, int indent = 0, bool bolded = false, bool grayed = false) 114public 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) 118=> new(RoslynNavigationBarItemKind.GenerateFinalizer, text, Glyph.MethodProtected, bolded: false, grayed: false, indent: 0, default, null, false, null, destinationTypeSymbolKey, null, null, null); 120public static SerializableNavigationBarItem GenerateEventHandler(string eventName, Glyph glyph, string containerName, SymbolKey eventSymbolKey, SymbolKey destinationTypeSymbolKey) 123public static SerializableNavigationBarItem GenerateMethod(string text, Glyph glyph, SymbolKey destinationTypeSymbolId, SymbolKey methodToReplicateSymbolId) 127=> new(RoslynNavigationBarItemKind.GenerateDefaultConstructor, text, Glyph.MethodPublic, bolded: false, grayed: false, indent: 0, default, null, false, null, destinationTypeSymbolKey, null, null, null);
NavigationBar\NavigationBarItems\RoslynNavigationBarItem.AbstractGenerateCodeItem.cs (1)
15protected AbstractGenerateCodeItem(RoslynNavigationBarItemKind kind, string text, Glyph glyph, SymbolKey destinationTypeSymbolKey)
NavigationBar\NavigationBarItems\RoslynNavigationBarItem.ActionlessItem.cs (1)
18Glyph glyph,
NavigationBar\NavigationBarItems\RoslynNavigationBarItem.cs (2)
19public readonly Glyph Glyph; 28Glyph glyph,
NavigationBar\NavigationBarItems\RoslynNavigationBarItem.GenerateDefaultConstructorItem.cs (1)
11public sealed class GenerateDefaultConstructor(string text, SymbolKey destinationTypeSymbolKey) : AbstractGenerateCodeItem(RoslynNavigationBarItemKind.GenerateDefaultConstructor, text, Glyph.MethodPublic, destinationTypeSymbolKey), IEquatable<GenerateDefaultConstructor>
NavigationBar\NavigationBarItems\RoslynNavigationBarItem.GenerateEventHandlerItem.cs (1)
11public sealed class GenerateEventHandler(string text, Glyph glyph, string containerName, SymbolKey eventSymbolKey, SymbolKey destinationTypeSymbolKey) : AbstractGenerateCodeItem(RoslynNavigationBarItemKind.GenerateEventHandler, text, glyph, destinationTypeSymbolKey), IEquatable<GenerateEventHandler>
NavigationBar\NavigationBarItems\RoslynNavigationBarItem.GenerateFinalizerItem.cs (1)
11public sealed class GenerateFinalizer(string text, SymbolKey destinationTypeSymbolKey) : AbstractGenerateCodeItem(RoslynNavigationBarItemKind.GenerateFinalizer, text, Glyph.MethodProtected, destinationTypeSymbolKey), IEquatable<GenerateFinalizer>
NavigationBar\NavigationBarItems\RoslynNavigationBarItem.GenerateMethodItem.cs (1)
11public sealed class GenerateMethod(string text, Glyph glyph, SymbolKey destinationTypeSymbolId, SymbolKey methodToReplicateSymbolId) : AbstractGenerateCodeItem(RoslynNavigationBarItemKind.GenerateMethod, text, glyph, destinationTypeSymbolId), IEquatable<GenerateMethod>
NavigationBar\NavigationBarItems\RoslynNavigationBarItem.SymbolItem.cs (1)
19Glyph glyph,
QuickInfo\Presentation\QuickInfoContentBuilder.cs (15)
18private static readonly FrozenDictionary<Glyph, QuickInfoGlyphElement> s_glyphToElementMap = CreateGlyphToElementMap(); 20private static FrozenDictionary<Glyph, QuickInfoGlyphElement> CreateGlyphToElementMap() 22var glyphs = Enum.GetValues<Glyph>(); 23var result = new Dictionary<Glyph, QuickInfoGlyphElement>(capacity: glyphs.Length); 25foreach (var glyph in glyphs) 54if (symbolGlyph != Glyph.None) 61firstLineElements.Add(s_glyphToElementMap[Glyph.CompletionWarning]); 188private static (Glyph symbolGlyph, bool addWarningGlyph) ComputeGlyphs(QuickInfoItem quickInfoItem) 190var symbolGlyph = Glyph.None; 193foreach (var glyph in quickInfoItem.Tags.GetGlyphs()) 195if (symbolGlyph != Glyph.None && addWarningGlyph) 200if (symbolGlyph == Glyph.None && glyph != Glyph.CompletionWarning) 204else if (!addWarningGlyph && glyph == Glyph.CompletionWarning)
QuickInfo\Presentation\QuickInfoGlyphElement.cs (2)
7internal sealed class QuickInfoGlyphElement(Glyph glyph) : QuickInfoElement 9public Glyph Glyph { get; } = glyph;
Shared\Extensions\ISymbolExtensions_2.cs (37)
16public static Glyph GetGlyph(this ISymbol symbol) 18Glyph publicIcon; 26return Glyph.Assembly; 29return Glyph.ClassPublic; 32return Glyph.ClassPublic; 35publicIcon = Glyph.EventPublic; 42return Glyph.EnumMemberPublic; 45publicIcon = ((IFieldSymbol)symbol).IsConst ? Glyph.ConstantPublic : Glyph.FieldPublic; 49return Glyph.Label; 53return Glyph.Local; 62publicIcon = Glyph.ClassPublic; 66publicIcon = Glyph.DelegatePublic; 70publicIcon = Glyph.EnumPublic; 74publicIcon = Glyph.InterfacePublic; 78publicIcon = Glyph.ModulePublic; 82publicIcon = Glyph.StructurePublic; 86return Glyph.Error; 101publicIcon = Glyph.OperatorPublic; 107publicIcon = Glyph.ExtensionMethodPublic; 111publicIcon = Glyph.MethodPublic; 118return Glyph.Namespace; 121return Glyph.Assembly; 125? Glyph.Keyword 126: Glyph.Parameter; 132return Glyph.Intrinsic; 140publicIcon = Glyph.FieldPublic; 144publicIcon = Glyph.PropertyPublic; 151return Glyph.Keyword; 154return Glyph.RangeVariable; 157return Glyph.TypeParameter; 166publicIcon += Glyph.ClassPrivate - Glyph.ClassPublic; 172publicIcon += Glyph.ClassProtected - Glyph.ClassPublic; 176publicIcon += Glyph.ClassInternal - Glyph.ClassPublic;
Shared\Extensions\ProjectExtensions.cs (4)
9public static Glyph GetGlyph(this Project project) 12return project.Language == LanguageNames.CSharp ? Glyph.CSharpProject : 13project.Language == LanguageNames.VisualBasic ? Glyph.BasicProject : 14Glyph.Assembly;
SolutionExplorer\SymbolTreeItemData.cs (2)
10Glyph Glyph, 24Glyph glyph,
ValueTracking\ValueTrackedItem.cs (2)
20public Glyph Glyph { get; } 27Glyph glyph,
Microsoft.CodeAnalysis.LanguageServer.Protocol (183)
Extensions\Extensions.cs (82)
304public static VSImageId ToVSImageId(this Glyph glyph) 311public static ImageId ToLSPImageId(this Glyph glyph) 343/// Retrieves the <see cref="Guid"/> and id that can represent a particular <see cref="Glyph"/> 348public static (Guid guid, int id) GetVsImageData(this Glyph glyph) 352Glyph.None => default, 354Glyph.Assembly => (KnownImageIds.ImageCatalogGuid, KnownImageIds.Assembly), 356Glyph.BasicFile => (KnownImageIds.ImageCatalogGuid, KnownImageIds.VBFileNode), 357Glyph.BasicProject => (KnownImageIds.ImageCatalogGuid, KnownImageIds.VBProjectNode), 359Glyph.ClassPublic => (KnownImageIds.ImageCatalogGuid, KnownImageIds.ClassPublic), 360Glyph.ClassProtected => (KnownImageIds.ImageCatalogGuid, KnownImageIds.ClassProtected), 361Glyph.ClassPrivate => (KnownImageIds.ImageCatalogGuid, KnownImageIds.ClassPrivate), 362Glyph.ClassInternal => (KnownImageIds.ImageCatalogGuid, KnownImageIds.ClassInternal), 364Glyph.CSharpFile => (KnownImageIds.ImageCatalogGuid, KnownImageIds.CSFileNode), 365Glyph.CSharpProject => (KnownImageIds.ImageCatalogGuid, KnownImageIds.CSProjectNode), 367Glyph.CompletionWarning => (KnownImageIds.ImageCatalogGuid, KnownImageIds.IntellisenseWarning), 369Glyph.ConstantPublic => (KnownImageIds.ImageCatalogGuid, KnownImageIds.ConstantPublic), 370Glyph.ConstantProtected => (KnownImageIds.ImageCatalogGuid, KnownImageIds.ConstantProtected), 371Glyph.ConstantPrivate => (KnownImageIds.ImageCatalogGuid, KnownImageIds.ConstantPrivate), 372Glyph.ConstantInternal => (KnownImageIds.ImageCatalogGuid, KnownImageIds.ConstantInternal), 374Glyph.DelegatePublic => (KnownImageIds.ImageCatalogGuid, KnownImageIds.DelegatePublic), 375Glyph.DelegateProtected => (KnownImageIds.ImageCatalogGuid, KnownImageIds.DelegateProtected), 376Glyph.DelegatePrivate => (KnownImageIds.ImageCatalogGuid, KnownImageIds.DelegatePrivate), 377Glyph.DelegateInternal => (KnownImageIds.ImageCatalogGuid, KnownImageIds.DelegateInternal), 379Glyph.EnumPublic => (KnownImageIds.ImageCatalogGuid, KnownImageIds.EnumerationPublic), 380Glyph.EnumProtected => (KnownImageIds.ImageCatalogGuid, KnownImageIds.EnumerationProtected), 381Glyph.EnumPrivate => (KnownImageIds.ImageCatalogGuid, KnownImageIds.EnumerationPrivate), 382Glyph.EnumInternal => (KnownImageIds.ImageCatalogGuid, KnownImageIds.EnumerationInternal), 384Glyph.EnumMemberPublic or 385Glyph.EnumMemberProtected or 386Glyph.EnumMemberPrivate or 387Glyph.EnumMemberInternal => (KnownImageIds.ImageCatalogGuid, KnownImageIds.EnumerationItemPublic), 389Glyph.Error => (KnownImageIds.ImageCatalogGuid, KnownImageIds.StatusError), 391Glyph.EventPublic => (KnownImageIds.ImageCatalogGuid, KnownImageIds.EventPublic), 392Glyph.EventProtected => (KnownImageIds.ImageCatalogGuid, KnownImageIds.EventProtected), 393Glyph.EventPrivate => (KnownImageIds.ImageCatalogGuid, KnownImageIds.EventPrivate), 394Glyph.EventInternal => (KnownImageIds.ImageCatalogGuid, KnownImageIds.EventInternal), 397Glyph.ExtensionMethodPublic or 398Glyph.ExtensionMethodProtected or 399Glyph.ExtensionMethodPrivate or 400Glyph.ExtensionMethodInternal => (KnownImageIds.ImageCatalogGuid, KnownImageIds.ExtensionMethod), 402Glyph.FieldPublic => (KnownImageIds.ImageCatalogGuid, KnownImageIds.FieldPublic), 403Glyph.FieldProtected => (KnownImageIds.ImageCatalogGuid, KnownImageIds.FieldProtected), 404Glyph.FieldPrivate => (KnownImageIds.ImageCatalogGuid, KnownImageIds.FieldPrivate), 405Glyph.FieldInternal => (KnownImageIds.ImageCatalogGuid, KnownImageIds.FieldInternal), 407Glyph.InterfacePublic => (KnownImageIds.ImageCatalogGuid, KnownImageIds.InterfacePublic), 408Glyph.InterfaceProtected => (KnownImageIds.ImageCatalogGuid, KnownImageIds.InterfaceProtected), 409Glyph.InterfacePrivate => (KnownImageIds.ImageCatalogGuid, KnownImageIds.InterfacePrivate), 410Glyph.InterfaceInternal => (KnownImageIds.ImageCatalogGuid, KnownImageIds.InterfaceInternal), 413Glyph.Intrinsic => (KnownImageIds.ImageCatalogGuid, KnownImageIds.Type), 415Glyph.Keyword => (KnownImageIds.ImageCatalogGuid, KnownImageIds.IntellisenseKeyword), 417Glyph.Label => (KnownImageIds.ImageCatalogGuid, KnownImageIds.Label), 419Glyph.MethodPublic => (KnownImageIds.ImageCatalogGuid, KnownImageIds.MethodPublic), 420Glyph.MethodProtected => (KnownImageIds.ImageCatalogGuid, KnownImageIds.MethodProtected), 421Glyph.MethodPrivate => (KnownImageIds.ImageCatalogGuid, KnownImageIds.MethodPrivate), 422Glyph.MethodInternal => (KnownImageIds.ImageCatalogGuid, KnownImageIds.MethodInternal), 424Glyph.ModulePublic => (KnownImageIds.ImageCatalogGuid, KnownImageIds.ModulePublic), 425Glyph.ModuleProtected => (KnownImageIds.ImageCatalogGuid, KnownImageIds.ModuleProtected), 426Glyph.ModulePrivate => (KnownImageIds.ImageCatalogGuid, KnownImageIds.ModulePrivate), 427Glyph.ModuleInternal => (KnownImageIds.ImageCatalogGuid, KnownImageIds.ModuleInternal), 429Glyph.Namespace => (KnownImageIds.ImageCatalogGuid, KnownImageIds.Namespace), 431Glyph.NuGet => (KnownImageIds.ImageCatalogGuid, KnownImageIds.NuGet), 433Glyph.OpenFolder => (KnownImageIds.ImageCatalogGuid, KnownImageIds.OpenFolder), 435Glyph.OperatorPublic => (KnownImageIds.ImageCatalogGuid, KnownImageIds.OperatorPublic), 436Glyph.OperatorProtected => (KnownImageIds.ImageCatalogGuid, KnownImageIds.OperatorProtected), 437Glyph.OperatorPrivate => (KnownImageIds.ImageCatalogGuid, KnownImageIds.OperatorPrivate), 438Glyph.OperatorInternal => (KnownImageIds.ImageCatalogGuid, KnownImageIds.OperatorInternal), 440Glyph.Parameter or Glyph.Local => (KnownImageIds.ImageCatalogGuid, KnownImageIds.LocalVariable), 442Glyph.PropertyPublic => (KnownImageIds.ImageCatalogGuid, KnownImageIds.PropertyPublic), 443Glyph.PropertyProtected => (KnownImageIds.ImageCatalogGuid, KnownImageIds.PropertyProtected), 444Glyph.PropertyPrivate => (KnownImageIds.ImageCatalogGuid, KnownImageIds.PropertyPrivate), 445Glyph.PropertyInternal => (KnownImageIds.ImageCatalogGuid, KnownImageIds.PropertyInternal), 447Glyph.RangeVariable => (KnownImageIds.ImageCatalogGuid, KnownImageIds.FieldPublic), 449Glyph.Reference => (KnownImageIds.ImageCatalogGuid, KnownImageIds.Reference), 451Glyph.Snippet => (KnownImageIds.ImageCatalogGuid, KnownImageIds.Snippet), 453Glyph.StatusInformation => (KnownImageIds.ImageCatalogGuid, KnownImageIds.StatusInformation), 455Glyph.StructurePublic => (KnownImageIds.ImageCatalogGuid, KnownImageIds.ValueTypePublic), 456Glyph.StructureProtected => (KnownImageIds.ImageCatalogGuid, KnownImageIds.ValueTypeProtected), 457Glyph.StructurePrivate => (KnownImageIds.ImageCatalogGuid, KnownImageIds.ValueTypePrivate), 458Glyph.StructureInternal => (KnownImageIds.ImageCatalogGuid, KnownImageIds.ValueTypeInternal), 460Glyph.TargetTypeMatch => (KnownImageIds.ImageCatalogGuid, KnownImageIds.MatchType), 462Glyph.TypeParameter => (KnownImageIds.ImageCatalogGuid, KnownImageIds.Type),
Extensions\ProtocolConversions.cs (68)
587public static Glyph SymbolKindToGlyph(LSP.SymbolKind kind) 592return Glyph.CSharpFile; 594return Glyph.ModulePublic; 596return Glyph.Namespace; 598return Glyph.Assembly; 600return Glyph.ClassPublic; 602return Glyph.MethodPublic; 604return Glyph.PropertyPublic; 606return Glyph.FieldPublic; 608return Glyph.MethodPublic; 610return Glyph.EnumPublic; 612return Glyph.InterfacePublic; 614return Glyph.DelegatePublic; 616return Glyph.Local; 619return Glyph.ConstantPublic; 626return Glyph.Local; 628return Glyph.EnumMemberPublic; 630return Glyph.StructurePublic; 632return Glyph.EventPublic; 634return Glyph.OperatorPublic; 636return Glyph.TypeParameter; 638return Glyph.None; 642public static LSP.SymbolKind GlyphToSymbolKind(Glyph glyph) 658case Glyph.Assembly: 659case Glyph.BasicProject: 660case Glyph.CSharpProject: 661case Glyph.NuGet: 663case Glyph.BasicFile: 664case Glyph.CSharpFile: 666case Glyph.DelegatePublic: 667case Glyph.DelegateProtected: 668case Glyph.DelegatePrivate: 669case Glyph.DelegateInternal: 670case Glyph.ExtensionMethodPublic: 671case Glyph.ExtensionMethodProtected: 672case Glyph.ExtensionMethodPrivate: 673case Glyph.ExtensionMethodInternal: 675case Glyph.Local: 676case Glyph.Parameter: 677case Glyph.RangeVariable: 678case Glyph.Reference: 680case Glyph.StructurePublic: 681case Glyph.StructureProtected: 682case Glyph.StructurePrivate: 683case Glyph.StructureInternal: 690public static Glyph CompletionItemKindToGlyph(LSP.CompletionItemKind kind) 695return Glyph.None; 699return Glyph.MethodPublic; 701return Glyph.FieldPublic; 705return Glyph.Local; 707return Glyph.ClassPublic; 709return Glyph.InterfacePublic; 711return Glyph.ModulePublic; 713return Glyph.PropertyPublic; 715return Glyph.EnumPublic; 717return Glyph.Keyword; 719return Glyph.Snippet; 721return Glyph.None; 723return Glyph.CSharpFile; 725return Glyph.Reference; 727return Glyph.OpenFolder; 729return Glyph.EnumMemberPublic; 731return Glyph.ConstantPublic; 733return Glyph.StructurePublic; 735return Glyph.EventPublic; 737return Glyph.OperatorPublic; 739return Glyph.TypeParameter; 741return Glyph.None;
Handler\Definitions\AbstractGoToDefinitionHandler.cs (29)
102if (item.Glyph is Glyph.Namespace) 115case Glyph.ClassPublic: 116case Glyph.ClassProtected: 117case Glyph.ClassPrivate: 118case Glyph.ClassInternal: 119case Glyph.DelegatePublic: 120case Glyph.DelegateProtected: 121case Glyph.DelegatePrivate: 122case Glyph.DelegateInternal: 123case Glyph.EnumPublic: 124case Glyph.EnumProtected: 125case Glyph.EnumPrivate: 126case Glyph.EnumInternal: 127case Glyph.EventPublic: 128case Glyph.EventProtected: 129case Glyph.EventPrivate: 130case Glyph.EventInternal: 131case Glyph.InterfacePublic: 132case Glyph.InterfaceProtected: 133case Glyph.InterfacePrivate: 134case Glyph.InterfaceInternal: 135case Glyph.ModulePublic: 136case Glyph.ModuleProtected: 137case Glyph.ModulePrivate: 138case Glyph.ModuleInternal: 139case Glyph.StructurePublic: 140case Glyph.StructureProtected: 141case Glyph.StructurePrivate: 142case Glyph.StructureInternal:
Handler\References\FindUsagesLSPContext.cs (3)
170definitionGlyph: Glyph.None, reference.SymbolUsageInfo, reference.IsWrittenTo, cancellationToken).ConfigureAwait(false); 184Glyph definitionGlyph, 209Glyph definitionGlyph,
Handler\Symbols\SymbolInformationFactory.cs (1)
12public static SymbolInformation Create(string name, string? containerName, LSP.SymbolKind kind, LSP.Location location, Glyph glyph, bool supportsVSExtensions)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (20)
References\FindAllReferencesHandlerTests.cs (6)
58AssertValidDefinitionProperties(results, 0, Glyph.FieldPublic); 100AssertValidDefinitionProperties(results, 0, Glyph.FieldPublic); 141AssertValidDefinitionProperties(results, 0, Glyph.ClassInternal); 181AssertValidDefinitionProperties(results, 0, Glyph.FieldPublic); 246AssertValidDefinitionProperties(results, 0, Glyph.Namespace); 397private static void AssertValidDefinitionProperties(LSP.VSInternalReferenceItem[] referenceItems, int definitionIndex, Glyph definitionGlyph)
Symbols\DocumentSymbolsTests.cs (4)
90CreateSymbolInformation(LSP.SymbolKind.Class, "Test.A", testLspServer.GetLocations("class").Single(), Glyph.ClassInternal), 91CreateSymbolInformation(LSP.SymbolKind.Method, "A()", testLspServer.GetLocations("constructor").Single(), Glyph.MethodPublic, "Test.A"), 92CreateSymbolInformation(LSP.SymbolKind.Method, "M()", testLspServer.GetLocations("method").Single(), Glyph.MethodPrivate, "Test.A"), 93CreateSymbolInformation(LSP.SymbolKind.Operator, "operator +(A a1, A a2)", testLspServer.GetLocations("operator").Single(), Glyph.OperatorPrivate, "Test.A"),
Symbols\WorkspaceSymbolsTests.cs (10)
50CreateSymbolInformation(LSP.SymbolKind.Class, "A", testLspServer.GetLocations("class").Single(), Glyph.ClassInternal, GetContainerName(testLspServer.GetCurrentSolution())) 72CreateSymbolInformation(LSP.SymbolKind.Class, "A", testLspServer.GetLocations("class").Single(), Glyph.ClassInternal, GetContainerName(testLspServer.GetCurrentSolution())) 100CreateSymbolInformation(LSP.SymbolKind.Method, "M", testLspServer.GetLocations("method").Single(), Glyph.MethodPrivate, GetContainerName(testLspServer.GetCurrentSolution(), "A")) 125CreateSymbolInformation(LSP.SymbolKind.Variable, "i", testLspServer.GetLocations("local").Single(), Glyph.Local, GetContainerName(testLspServer.GetCurrentSolution(), "A.M.i")) 153CreateSymbolInformation(LSP.SymbolKind.Field, "F", testLspServer.GetLocations("field")[0], Glyph.FieldPrivate, classAContainerName), 154CreateSymbolInformation(LSP.SymbolKind.Class, "F", testLspServer.GetLocations("class").Single(), Glyph.ClassPrivate, classAContainerName), 155CreateSymbolInformation(LSP.SymbolKind.Field, "F", testLspServer.GetLocations("field")[1], Glyph.FieldPrivate, GetContainerName(testLspServer.GetCurrentSolution(), "A.F")) 188CreateSymbolInformation(LSP.SymbolKind.Method, "M", testLspServer.GetLocations("method")[0], Glyph.MethodPrivate, GetContainerName(testLspServer.GetCurrentSolution(), "A")), 189CreateSymbolInformation(LSP.SymbolKind.Method, "M", testLspServer.GetLocations("method")[1], Glyph.MethodPrivate, GetContainerName(testLspServer.GetCurrentSolution(), "B")) 227CreateSymbolInformation(LSP.SymbolKind.Class, "A", testLspServer.GetLocations("class").Single(), Glyph.ClassInternal, GetContainerName(testLspServer.GetCurrentSolution()))
Microsoft.VisualStudio.LanguageServices (128)
CallHierarchy\CallHierarchyProvider.cs (1)
96Glyph.FieldPublic.GetImageSource(GlyphService),
DocumentOutline\DocumentOutlineViewModel_Utilities.cs (1)
144(Glyph)currentParent.Glyph,
DocumentOutline\DocumentSymbolData.cs (1)
20Glyph Glyph,
FindReferences\Contexts\AbstractTableDataSourceFindUsagesContext.cs (1)
579GlyphTags.GetTags(Glyph.StatusInformation),
FindReferences\Contexts\WithReferencesFindUsagesContext.cs (1)
297GlyphTags.GetTags(Glyph.StatusInformation),
Preview\PreviewEngine.cs (3)
32private readonly Glyph _topLevelGlyph; 45public PreviewEngine(string title, string helpString, string description, string topLevelItemName, Glyph topLevelGlyph, Solution newSolution, Solution oldSolution, IComponentModel componentModel, bool showCheckBoxes = true) 55Glyph topLevelGlyph,
Preview\PreviewService.cs (1)
34Glyph topLevelGlyph,
Preview\TopLevelChange.cs (2)
24private readonly Glyph _glyph; 28Glyph glyph,
Shared\VisualStudioImageIdService.cs (3)
61var glyph = tags.GetFirstGlyph(); 64case Glyph.AddReference: 66CreateLayer(Glyph.Reference.GetImageMoniker(), virtualXOffset: 1, virtualYOffset: 2),
SyncNamespaces\SyncNamespacesCommandHandler.cs (1)
152topLevelGlyph: Glyph.OpenFolder,
Utilities\GlyphExtensions.cs (111)
14public static StandardGlyphGroup GetStandardGlyphGroup(this Glyph glyph) 18case Glyph.Assembly: 21case Glyph.BasicFile: 22case Glyph.BasicProject: 25case Glyph.ClassPublic: 26case Glyph.ClassProtected: 27case Glyph.ClassPrivate: 28case Glyph.ClassInternal: 31case Glyph.ConstantPublic: 32case Glyph.ConstantProtected: 33case Glyph.ConstantPrivate: 34case Glyph.ConstantInternal: 37case Glyph.CSharpFile: 40case Glyph.CSharpProject: 43case Glyph.DelegatePublic: 44case Glyph.DelegateProtected: 45case Glyph.DelegatePrivate: 46case Glyph.DelegateInternal: 49case Glyph.EnumPublic: 50case Glyph.EnumProtected: 51case Glyph.EnumPrivate: 52case Glyph.EnumInternal: 55case Glyph.EnumMemberPublic: 56case Glyph.EnumMemberProtected: 57case Glyph.EnumMemberPrivate: 58case Glyph.EnumMemberInternal: 61case Glyph.Error: 64case Glyph.ExtensionMethodPublic: 67case Glyph.ExtensionMethodProtected: 70case Glyph.ExtensionMethodPrivate: 73case Glyph.ExtensionMethodInternal: 76case Glyph.EventPublic: 77case Glyph.EventProtected: 78case Glyph.EventPrivate: 79case Glyph.EventInternal: 82case Glyph.FieldPublic: 83case Glyph.FieldProtected: 84case Glyph.FieldPrivate: 85case Glyph.FieldInternal: 88case Glyph.InterfacePublic: 89case Glyph.InterfaceProtected: 90case Glyph.InterfacePrivate: 91case Glyph.InterfaceInternal: 94case Glyph.Intrinsic: 97case Glyph.Keyword: 100case Glyph.Label: 103case Glyph.Local: 106case Glyph.Namespace: 109case Glyph.MethodPublic: 110case Glyph.MethodProtected: 111case Glyph.MethodPrivate: 112case Glyph.MethodInternal: 115case Glyph.ModulePublic: 116case Glyph.ModuleProtected: 117case Glyph.ModulePrivate: 118case Glyph.ModuleInternal: 121case Glyph.OpenFolder: 124case Glyph.OperatorPublic: 125case Glyph.OperatorProtected: 126case Glyph.OperatorPrivate: 127case Glyph.OperatorInternal: 130case Glyph.Parameter: 133case Glyph.PropertyPublic: 134case Glyph.PropertyProtected: 135case Glyph.PropertyPrivate: 136case Glyph.PropertyInternal: 139case Glyph.RangeVariable: 142case Glyph.Reference: 145case Glyph.StructurePublic: 146case Glyph.StructureProtected: 147case Glyph.StructurePrivate: 148case Glyph.StructureInternal: 151case Glyph.TypeParameter: 154case Glyph.Snippet: 157case Glyph.CompletionWarning: 165public static StandardGlyphItem GetStandardGlyphItem(this Glyph icon) 169case Glyph.ClassProtected: 170case Glyph.ConstantProtected: 171case Glyph.DelegateProtected: 172case Glyph.EnumProtected: 173case Glyph.EventProtected: 174case Glyph.FieldProtected: 175case Glyph.InterfaceProtected: 176case Glyph.MethodProtected: 177case Glyph.ModuleProtected: 178case Glyph.PropertyProtected: 179case Glyph.StructureProtected: 182case Glyph.ClassPrivate: 183case Glyph.ConstantPrivate: 184case Glyph.DelegatePrivate: 185case Glyph.EnumPrivate: 186case Glyph.EventPrivate: 187case Glyph.FieldPrivate: 188case Glyph.InterfacePrivate: 189case Glyph.MethodPrivate: 190case Glyph.ModulePrivate: 191case Glyph.PropertyPrivate: 192case Glyph.StructurePrivate: 195case Glyph.ClassInternal: 196case Glyph.ConstantInternal: 197case Glyph.DelegateInternal: 198case Glyph.EnumInternal: 199case Glyph.EventInternal: 200case Glyph.FieldInternal: 201case Glyph.InterfaceInternal: 202case Glyph.MethodInternal: 203case Glyph.ModuleInternal: 204case Glyph.PropertyInternal: 205case Glyph.StructureInternal: 214public static ImageSource GetImageSource(this Glyph glyph, IGlyphService glyphService) 217public static ushort GetGlyphIndex(this Glyph glyph)
ValueTracking\TreeItemViewModel.cs (2)
22private readonly Glyph _glyph; 49Glyph glyph,
Microsoft.VisualStudio.LanguageServices.CSharp (1)
SemanticSearch\SemanticSearchToolWindowImpl.cs (1)
452Glyph.OpenFolder,
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (5)
DocumentOutline\DocumentOutlineTests.cs (5)
165Assert.Equal(Glyph.EnumInternal, item.Data.Glyph); 171Assert.Equal(Glyph.EnumMemberPublic, item.Data.Glyph); 176Assert.Equal(Glyph.EnumMemberPublic, item.Data.Glyph); 194Assert.Equal(Glyph.ClassInternal, item.Data.Glyph); 200Assert.Equal(Glyph.PropertyPublic, item.Data.Glyph);
Microsoft.VisualStudio.LanguageServices.Xaml (8)
Features\InlineRename\XamlEditorInlineRenameService.cs (8)
64public Glyph Glyph => InlineRenameInfo.FromSymbolKind(_renameInfo.Kind); 119private static Glyph FromSymbolKind(SymbolKind kind) 121var glyph = Glyph.Error; 126glyph = Glyph.Namespace; 129glyph = Glyph.ClassPublic; 132glyph = Glyph.PropertyPublic; 135glyph = Glyph.EventPublic;