140 references to Text
Microsoft.AspNetCore.App.Analyzers.Test (1)
RouteEmbeddedLanguage\Infrastructure\FormattedClassifications.cs (1)
128=> New(text, ClassificationTypeNames.Text);
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
EventHookup\EventHookupSessionManager.cs (1)
64new ClassifiedTextRun(ClassificationTypeNames.Text, CSharpEditorResources.Press_TAB_to_insert),
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
SignatureHelp\GenericNameSignatureHelpProviderTests.cs (2)
992ClassificationTypeNames.Text, 996ClassificationTypeNames.Text,
Microsoft.CodeAnalysis.EditorFeatures (1)
Shared\Utilities\ClassificationTypeMap.cs (1)
62return type ?? GetClassificationTypeWorker(ClassificationTypeNames.Text);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Classification\FormattedClassifications.cs (1)
131=> New(text, ClassificationTypeNames.Text);
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
QuickInfo\OnTheFlyDocsView.xaml.cs (2)
73? ToUIElement(new ContainerElement(ContainerElementStyle.Wrapped, new ClassifiedTextElement([new ClassifiedTextRun(ClassificationTypeNames.Text, EditorFeaturesResources.Describe_with_Copilot_is_unavailable_since_the_referenced_document_is_excluded_by_your_organization)]))) 226new ContainerElement(ContainerElementStyle.Wrapped, new ClassifiedTextElement([new ClassifiedTextRun(ClassificationTypeNames.Text, text)])));
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (114)
IntelliSense\IntellisenseQuickInfoBuilderTests.vb (54)
92New ClassifiedTextRun(ClassificationTypeNames.Text, "18"), 94New ClassifiedTextRun(ClassificationTypeNames.Text, "overloads"), 97New ClassifiedTextRun(ClassificationTypeNames.Text, "Writes the specified string value, followed by the current line terminator, to the standard output stream."))), 101New ClassifiedTextRun(ClassificationTypeNames.Text, "Exceptions")), 179New ClassifiedTextRun(ClassificationTypeNames.Text, "18"), 181New ClassifiedTextRun(ClassificationTypeNames.Text, "overloads"), 186New ClassifiedTextRun(ClassificationTypeNames.Text, "Exceptions")), 280New ClassifiedTextRun(ClassificationTypeNames.Text, "18"), 282New ClassifiedTextRun(ClassificationTypeNames.Text, "overloads"), 287New ClassifiedTextRun(ClassificationTypeNames.Text, "Documentation line 1.")), 289New ClassifiedTextRun(ClassificationTypeNames.Text, "Documentation line 2.")))), 293New ClassifiedTextRun(ClassificationTypeNames.Text, "Documentation paragraph 2.")), 295New ClassifiedTextRun(ClassificationTypeNames.Text, "Documentation paragraph 2 line 2."))), 297New ClassifiedTextRun(ClassificationTypeNames.Text, "Documentation paragraph 3.")), 301New ClassifiedTextRun(ClassificationTypeNames.Text, "Exceptions")), 371New ClassifiedTextRun(ClassificationTypeNames.Text, "Documentation line 1.")), 373New ClassifiedTextRun(ClassificationTypeNames.Text, "Documentation line 2.")))), 377New ClassifiedTextRun(ClassificationTypeNames.Text, "Documentation paragraph 2.")), 379New ClassifiedTextRun(ClassificationTypeNames.Text, "Documentation paragraph 2 line 2."))), 381New ClassifiedTextRun(ClassificationTypeNames.Text, "Documentation paragraph 3.")), 385New ClassifiedTextRun(ClassificationTypeNames.Text, FeaturesResources.Exceptions_colon)), 433New ClassifiedTextRun(ClassificationTypeNames.Text, "Summary text."))), 435New ClassifiedTextRun(ClassificationTypeNames.Text, "Remarks text."))) 480New ClassifiedTextRun(ClassificationTypeNames.Text, "Summary text."))), 484New ClassifiedTextRun(ClassificationTypeNames.Text, FeaturesResources.Returns_colon)), 488New ClassifiedTextRun(ClassificationTypeNames.Text, " ")), 492New ClassifiedTextRun(ClassificationTypeNames.Text, "Returns text.")))))) 539New ClassifiedTextRun(ClassificationTypeNames.Text, "Summary text."))), 543New ClassifiedTextRun(ClassificationTypeNames.Text, FeaturesResources.Returns_colon)), 547New ClassifiedTextRun(ClassificationTypeNames.Text, " ")), 551New ClassifiedTextRun(ClassificationTypeNames.Text, "Returns text.")))))) 601New ClassifiedTextRun(ClassificationTypeNames.Text, "Summary text."))), 605New ClassifiedTextRun(ClassificationTypeNames.Text, FeaturesResources.Value_colon)), 609New ClassifiedTextRun(ClassificationTypeNames.Text, " ")), 613New ClassifiedTextRun(ClassificationTypeNames.Text, "Value text.")))))) 669New ClassifiedTextRun(ClassificationTypeNames.Text, "text1"))), 671New ClassifiedTextRun(ClassificationTypeNames.Text, "text2"))) 717New ClassifiedTextRun(ClassificationTypeNames.Text, "This method returns"), 719New ClassifiedTextRun(ClassificationTypeNames.Text, "true", ClassifiedTextRunStyle.UseClassificationFont), 720New ClassifiedTextRun(ClassificationTypeNames.Text, ".")))) 766New ClassifiedTextRun(ClassificationTypeNames.Text, "This method returns"))), 768New ClassifiedTextRun(ClassificationTypeNames.Text, "true", ClassifiedTextRunStyle.UseClassificationFont)), 770New ClassifiedTextRun(ClassificationTypeNames.Text, "."))) 818New ClassifiedTextRun(ClassificationTypeNames.Text, "The parameter is"), 821New ClassifiedTextRun(ClassificationTypeNames.Text, ".")))) 987New ClassifiedTextRun(ClassificationTypeNames.Text, "The type parameter is"), 990New ClassifiedTextRun(ClassificationTypeNames.Text, ".")))) 1038New ClassifiedTextRun(ClassificationTypeNames.Text, "The type parameter is"), 1041New ClassifiedTextRun(ClassificationTypeNames.Text, ".")))) 1092New ClassifiedTextRun(ClassificationTypeNames.Text, "The type parameter is"), 1095New ClassifiedTextRun(ClassificationTypeNames.Text, ".")))) 1273New ClassifiedTextRun(ClassificationTypeNames.Text, "1"), 1275New ClassifiedTextRun(ClassificationTypeNames.Text, FeaturesResources.overload), 1312New ClassifiedTextRun(ClassificationTypeNames.Text, "local variable"),
IntelliSense\IntellisenseQuickInfoBuilderTests_Code.vb (6)
54New ClassifiedTextRun(ClassificationTypeNames.Text, "summary for MyClass"))), 56New ClassifiedTextRun(ClassificationTypeNames.Text, "List<string> y = null;", ClassifiedTextRunStyle.UseClassificationFont))) 103New ClassifiedTextRun(ClassificationTypeNames.Text, "Normalize this,"), 105New ClassifiedTextRun(ClassificationTypeNames.Text, "and also this", ClassifiedTextRunStyle.UseClassificationFont))), 107New ClassifiedTextRun(ClassificationTypeNames.Text, $"line 1{vbCrLf}line 2", ClassifiedTextRunStyle.UseClassificationFont)), 109New ClassifiedTextRun(ClassificationTypeNames.Text, "Extra text after code.")))
IntelliSense\IntellisenseQuickInfoBuilderTests_Inheritdoc.vb (7)
94New ClassifiedTextRun(ClassificationTypeNames.Text, "This is the base class.")))) 140New ClassifiedTextRun(ClassificationTypeNames.Text, "This is the base class.")))) 194New ClassifiedTextRun(ClassificationTypeNames.Text, "This is the base class. This is not the base class.")))) 240New ClassifiedTextRun(ClassificationTypeNames.Text, "Dim test = 0", ClassifiedTextRunStyle.UseClassificationFont)))) 298New ClassifiedTextRun(ClassificationTypeNames.Text, "Override summary.")))) 346New ClassifiedTextRun(ClassificationTypeNames.Text, FeaturesResources.parameter), 353New ClassifiedTextRun(ClassificationTypeNames.Text, "A parameter."))))
IntelliSense\IntellisenseQuickInfoBuilderTests_Links.vb (8)
56New ClassifiedTextRun(ClassificationTypeNames.Text, "This contains a link to"), 58New ClassifiedTextRun(ClassificationTypeNames.Text, "https://github.com/dotnet/roslyn", QuickInfoHyperLink.TestAccessor.CreateNavigationAction(New Uri("https://github.com/dotnet/roslyn", UriKind.Absolute)), "https://github.com/dotnet/roslyn"), 59New ClassifiedTextRun(ClassificationTypeNames.Text, ".")))) 103New ClassifiedTextRun(ClassificationTypeNames.Text, "This contains a link to"), 105New ClassifiedTextRun(ClassificationTypeNames.Text, "dotnet/roslyn", QuickInfoHyperLink.TestAccessor.CreateNavigationAction(New Uri("https://github.com/dotnet/roslyn", UriKind.Absolute)), "https://github.com/dotnet/roslyn"), 106New ClassifiedTextRun(ClassificationTypeNames.Text, ".")))) 148New ClassifiedTextRun(ClassificationTypeNames.Text, "This contains a link to"), 151New ClassifiedTextRun(ClassificationTypeNames.Text, "."))))
IntelliSense\IntellisenseQuickInfoBuilderTests_Lists.vb (36)
62New ClassifiedTextRun(ClassificationTypeNames.Text, "• ")), 66New ClassifiedTextRun(ClassificationTypeNames.Text, "Item 1"))))), 70New ClassifiedTextRun(ClassificationTypeNames.Text, "• ")), 74New ClassifiedTextRun(ClassificationTypeNames.Text, "Item 2"))))) 125New ClassifiedTextRun(ClassificationTypeNames.Text, "1. ")), 129New ClassifiedTextRun(ClassificationTypeNames.Text, "Item 1"))))), 133New ClassifiedTextRun(ClassificationTypeNames.Text, "2. ")), 137New ClassifiedTextRun(ClassificationTypeNames.Text, "Item 2"))))) 184New ClassifiedTextRun(ClassificationTypeNames.Text, "• ")), 188New ClassifiedTextRun(ClassificationTypeNames.Text, "word1", ClassifiedTextRunStyle.Bold), 190New ClassifiedTextRun(ClassificationTypeNames.Text, "–"), 191New ClassifiedTextRun(ClassificationTypeNames.Text, "Item 1"))))), 195New ClassifiedTextRun(ClassificationTypeNames.Text, "• ")), 199New ClassifiedTextRun(ClassificationTypeNames.Text, "word2", ClassifiedTextRunStyle.Bold), 201New ClassifiedTextRun(ClassificationTypeNames.Text, "–"), 202New ClassifiedTextRun(ClassificationTypeNames.Text, "Item 2"))))) 249New ClassifiedTextRun(ClassificationTypeNames.Text, "1. ")), 253New ClassifiedTextRun(ClassificationTypeNames.Text, "word1", ClassifiedTextRunStyle.Bold), 255New ClassifiedTextRun(ClassificationTypeNames.Text, "–"), 256New ClassifiedTextRun(ClassificationTypeNames.Text, "Item 1"))))), 260New ClassifiedTextRun(ClassificationTypeNames.Text, "2. ")), 264New ClassifiedTextRun(ClassificationTypeNames.Text, "word2", ClassifiedTextRunStyle.Bold), 266New ClassifiedTextRun(ClassificationTypeNames.Text, "–"), 267New ClassifiedTextRun(ClassificationTypeNames.Text, "Item 2"))))) 328New ClassifiedTextRun(ClassificationTypeNames.Text, "1. ")), 334New ClassifiedTextRun(ClassificationTypeNames.Text, "• ")), 338New ClassifiedTextRun(ClassificationTypeNames.Text, "Line1")), 342New ClassifiedTextRun(ClassificationTypeNames.Text, "Line2"))))), 348New ClassifiedTextRun(ClassificationTypeNames.Text, "• ")), 352New ClassifiedTextRun(ClassificationTypeNames.Text, "Item 1.2")))))))), 356New ClassifiedTextRun(ClassificationTypeNames.Text, "2. ")), 362New ClassifiedTextRun(ClassificationTypeNames.Text, "1. ")), 366New ClassifiedTextRun(ClassificationTypeNames.Text, "Item 2.1")))), 372New ClassifiedTextRun(ClassificationTypeNames.Text, "2. ")), 376New ClassifiedTextRun(ClassificationTypeNames.Text, "Line1")), 380New ClassifiedTextRun(ClassificationTypeNames.Text, "Line2")))))))))
IntelliSense\IntellisenseQuickInfoBuilderTests_Styles.vb (3)
64New ClassifiedTextRun(ClassificationTypeNames.Text, "This is some"), 66New ClassifiedTextRun(ClassificationTypeNames.Text, "stylized text", style), 67New ClassifiedTextRun(ClassificationTypeNames.Text, "."))))
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Editor\Shared\Utilities\FSharpClassificationTypeMap.cs (1)
52return type ?? GetClassificationTypeWorker(ClassificationTypeNames.Text);
Microsoft.CodeAnalysis.Features (5)
ClassifiedSpansAndHighlightSpanFactory.cs (3)
83new ClassifiedSpan(ClassificationTypeNames.Text, TextSpan.FromBounds(widenedSpan.Start, narrowSpan.Start)), 84new ClassifiedSpan(ClassificationTypeNames.Text, narrowSpan), 85new ClassifiedSpan(ClassificationTypeNames.Text, TextSpan.FromBounds(narrowSpan.End, widenedSpan.End)),
Common\TaggedText.cs (1)
174TextTags.AnonymousTypeIndicator or TextTags.Text => ClassificationTypeNames.Text,
QuickInfo\Presentation\TaggedTextExtensions.cs (1)
230=> new(ClassificationTypeNames.Text, text);
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Handler\SemanticTokens\CustomLspSemanticTokenNames.cs (1)
90[ClassificationTypeNames.Text] = Text,
Handler\SemanticTokens\SemanticTokensHelpers.cs (1)
145var nonEmptySpans = spans.Where(s => !s.TextSpan.IsEmpty && s.ClassificationType != ClassificationTypeNames.Text);
Microsoft.CodeAnalysis.Workspaces (2)
Classification\ClassificationTypeNames.cs (1)
29Text,
Classification\ClassifierHelper.cs (1)
202result.Add(new ClassifiedSpan(ClassificationTypeNames.Text,
Microsoft.VisualStudio.LanguageServices (7)
StackTraceExplorer\StackFrameViewModel.cs (5)
149yield return MakeClassifiedRun(ClassificationTypeNames.Text, CreateString(classLeadingTrivia)); 192yield return MakeClassifiedRun(ClassificationTypeNames.Text, CreateString(leadingTrivia)); 196fileLink.Inlines.Add(MakeClassifiedRun(ClassificationTypeNames.Text, fileInformation.ToString())); 202yield return MakeClassifiedRun(ClassificationTypeNames.Text, CreateString(trailingTrivia)); 208yield return MakeClassifiedRun(ClassificationTypeNames.Text, _frame.Root.EndOfLineToken.ToFullString());
Venus\ContainedDocument.DocumentServiceProvider.cs (2)
237builder.Add(new ClassifiedSpan(new TextSpan(0, contentSpan.Length), ClassificationTypeNames.Text)); 244builder.Add(new ClassifiedSpan(new TextSpan(lastSpan.End, contentSpan.Length - lastSpan.End), ClassificationTypeNames.Text));
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
Venus\DocumentService_IntegrationTests.vb (1)
328Return New ExcerptResult(mappedSource.GetSubText(line.Span), New TextSpan(mappedSpan.Start - line.Start, mappedSpan.Length), ImmutableArray.Create(New ClassifiedSpan(New TextSpan(0, line.Span.Length), ClassificationTypeNames.Text)), document, span)