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