174 instantiations of TaggedText
Microsoft.AspNetCore.App.Analyzers (2)
Microsoft.CodeAnalysis.CSharp.Features (4)
Microsoft.CodeAnalysis.EditorFeatures (7)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (91)
IntelliSense\IntellisenseQuickInfoBuilderTests.vb (90)
32New TaggedText(TextTags.Keyword, "void"),
33New TaggedText(TextTags.Space, " "),
34New TaggedText(TextTags.Class, "Console"),
35New TaggedText(TextTags.Punctuation, "."),
36New TaggedText(TextTags.Method, "WriteLine"),
37New TaggedText(TextTags.Punctuation, "("),
38New TaggedText(TextTags.Keyword, "string"),
39New TaggedText(TextTags.Space, " "),
40New TaggedText(TextTags.Parameter, "value"),
41New TaggedText(TextTags.Punctuation, ")"),
42New TaggedText(TextTags.Space, " "),
43New TaggedText(TextTags.Punctuation, "("),
44New TaggedText(TextTags.Punctuation, "+"),
45New TaggedText(TextTags.Space, " "),
46New TaggedText(TextTags.Text, "18"),
47New TaggedText(TextTags.Space, " "),
48New TaggedText(TextTags.Text, "overloads"),
49New TaggedText(TextTags.Punctuation, ")"))),
52ImmutableArray.Create(New TaggedText(TextTags.Text, "Writes the specified string value, followed by the current line terminator, to the standard output stream."))),
56New TaggedText(TextTags.Text, "Exceptions"),
57New TaggedText(TextTags.LineBreak, "\r\n"),
58New TaggedText(TextTags.Space, " "),
59New TaggedText(TextTags.Namespace, "System"),
60New TaggedText(TextTags.Punctuation, "."),
61New TaggedText(TextTags.Namespace, "IO"),
62New TaggedText(TextTags.Punctuation, "."),
63New TaggedText(TextTags.Class, "IOException")))))
124New TaggedText(TextTags.Keyword, "void"),
125New TaggedText(TextTags.Space, " "),
126New TaggedText(TextTags.Class, "Console"),
127New TaggedText(TextTags.Punctuation, "."),
128New TaggedText(TextTags.Method, "WriteLine"),
129New TaggedText(TextTags.Punctuation, "("),
130New TaggedText(TextTags.Keyword, "string"),
131New TaggedText(TextTags.Space, " "),
132New TaggedText(TextTags.Parameter, "value"),
133New TaggedText(TextTags.Punctuation, ")"),
134New TaggedText(TextTags.Space, " "),
135New TaggedText(TextTags.Punctuation, "("),
136New TaggedText(TextTags.Punctuation, "+"),
137New TaggedText(TextTags.Space, " "),
138New TaggedText(TextTags.Text, "18"),
139New TaggedText(TextTags.Space, " "),
140New TaggedText(TextTags.Text, "overloads"),
141New TaggedText(TextTags.Punctuation, ")"))),
145New TaggedText(TextTags.Text, "Exceptions"),
146New TaggedText(TextTags.LineBreak, "\r\n"),
147New TaggedText(TextTags.Space, " "),
148New TaggedText(TextTags.Namespace, "System"),
149New TaggedText(TextTags.Punctuation, "."),
150New TaggedText(TextTags.Namespace, "IO"),
151New TaggedText(TextTags.Punctuation, "."),
152New TaggedText(TextTags.Class, "IOException")))))
209New TaggedText(TextTags.Keyword, "void"),
210New TaggedText(TextTags.Space, " "),
211New TaggedText(TextTags.Class, "Console"),
212New TaggedText(TextTags.Punctuation, "."),
213New TaggedText(TextTags.Method, "WriteLine"),
214New TaggedText(TextTags.Punctuation, "("),
215New TaggedText(TextTags.Keyword, "string"),
216New TaggedText(TextTags.Space, " "),
217New TaggedText(TextTags.Parameter, "value"),
218New TaggedText(TextTags.Punctuation, ")"),
219New TaggedText(TextTags.Space, " "),
220New TaggedText(TextTags.Punctuation, "("),
221New TaggedText(TextTags.Punctuation, "+"),
222New TaggedText(TextTags.Space, " "),
223New TaggedText(TextTags.Text, "18"),
224New TaggedText(TextTags.Space, " "),
225New TaggedText(TextTags.Text, "overloads"),
226New TaggedText(TextTags.Punctuation, ")"))),
230New TaggedText(TextTags.Text, "Documentation line 1."),
231New TaggedText(TextTags.LineBreak, "\r\n"),
232New TaggedText(TextTags.Text, "Documentation line 2."),
233New TaggedText(TextTags.LineBreak, "\r\n"),
234New TaggedText(TextTags.LineBreak, "\r\n"),
235New TaggedText(TextTags.Text, "Documentation paragraph 2."),
236New TaggedText(TextTags.LineBreak, "\r\n"),
237New TaggedText(TextTags.Text, "Documentation paragraph 2 line 2."),
238New TaggedText(TextTags.LineBreak, "\r\n"),
239New TaggedText(TextTags.LineBreak, "\r\n"),
240New TaggedText(TextTags.Text, "Documentation paragraph 3."))),
244New TaggedText(TextTags.Text, "Exceptions"),
245New TaggedText(TextTags.LineBreak, "\r\n"),
246New TaggedText(TextTags.Space, " "),
247New TaggedText(TextTags.Namespace, "System"),
248New TaggedText(TextTags.Punctuation, "."),
249New TaggedText(TextTags.Namespace, "IO"),
250New TaggedText(TextTags.Punctuation, "."),
251New TaggedText(TextTags.Class, "IOException")))))
Microsoft.CodeAnalysis.ExternalAccess.Xaml (3)
Microsoft.CodeAnalysis.Features (58)
Common\TaggedText.cs (27)
225=> parts.Add(new TaggedText(TextTags.Alias, text));
228=> parts.Add(new TaggedText(TextTags.Assembly, text));
231=> parts.Add(new TaggedText(TextTags.Class, text));
234=> parts.Add(new TaggedText(TextTags.Delegate, text));
237=> parts.Add(new TaggedText(TextTags.Enum, text));
240=> parts.Add(new TaggedText(TextTags.ErrorType, text));
243=> parts.Add(new TaggedText(TextTags.Event, text));
246=> parts.Add(new TaggedText(TextTags.Field, text));
249=> parts.Add(new TaggedText(TextTags.Interface, text));
252=> parts.Add(new TaggedText(TextTags.Keyword, text));
255=> parts.Add(new TaggedText(TextTags.Label, text));
258=> parts.Add(new TaggedText(TextTags.LineBreak, text));
261=> parts.Add(new TaggedText(TextTags.NumericLiteral, text));
264=> parts.Add(new TaggedText(TextTags.StringLiteral, text));
267=> parts.Add(new TaggedText(TextTags.Local, text));
270=> parts.Add(new TaggedText(TextTags.Method, text));
273=> parts.Add(new TaggedText(TextTags.Module, text));
276=> parts.Add(new TaggedText(TextTags.Namespace, text));
279=> parts.Add(new TaggedText(TextTags.Operator, text));
282=> parts.Add(new TaggedText(TextTags.Parameter, text));
285=> parts.Add(new TaggedText(TextTags.Property, text));
288=> parts.Add(new TaggedText(TextTags.Punctuation, text));
291=> parts.Add(new TaggedText(TextTags.RangeVariable, text));
294=> parts.Add(new TaggedText(TextTags.Struct, text));
297=> parts.Add(new TaggedText(TextTags.Space, text));
300=> parts.Add(new TaggedText(TextTags.Text, text));
303=> parts.Add(new TaggedText(TextTags.TypeParameter, text));
DocumentationComments\AbstractDocumentationCommentFormattingService.cs (9)
35private static readonly TaggedText s_spacePart = new(TextTags.Space, " ");
36private static readonly TaggedText s_newlinePart = new(TextTags.LineBreak, "\r\n");
105Builder.Add(new TaggedText(TextTags.Text, NormalizeLineEndings(s), Style, NavigationTarget.target, NavigationTarget.hint));
144Builder.Add(new TaggedText(TextTags.ContainerEnd, string.Empty));
161Builder.Add(new TaggedText(TextTags.ContainerEnd, string.Empty));
250Builder.Add(new TaggedText(TextTags.ContainerStart, "• "));
254Builder.Add(new TaggedText(TextTags.ContainerStart, $"{_listStack[i].index}. "));
260Builder.Add(new TaggedText(TextTags.ContainerStart, string.Empty));
492state.AppendParts([new TaggedText(displayKind, text, style, navigationTarget, navigationHint)]);
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Microsoft.VisualStudio.LanguageServices (4)
301 references to TaggedText
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Features (5)
Microsoft.CodeAnalysis.EditorFeatures (35)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities2 (1)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (2)
Microsoft.CodeAnalysis.ExternalAccess.FSharp (37)
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (7)
Microsoft.CodeAnalysis.ExternalAccess.Xaml (10)
Microsoft.CodeAnalysis.Features (179)
Common\TaggedText.cs (37)
56/// Creates a new instance of <see cref="TaggedText"/>
66/// Creates a new instance of <see cref="TaggedText"/>
88public static ImmutableArray<TaggedText> ToTaggedText(
124public static string JoinText(this ImmutableArray<TaggedText> values)
138foreach (var val in values)
183this IEnumerable<TaggedText> parts)
186foreach (var part in parts)
198public static string ToVisibleDisplayString(this TaggedText part, bool includeLeftToRightMarker)
215public static string ToVisibleDisplayString(this IEnumerable<TaggedText> parts, bool includeLeftToRightMarker)
221public static string GetFullText(this IEnumerable<TaggedText> parts)
224public static void AddAliasName(this IList<TaggedText> parts, string text)
227public static void AddAssemblyName(this IList<TaggedText> parts, string text)
230public static void AddClassName(this IList<TaggedText> parts, string text)
233public static void AddDelegateName(this IList<TaggedText> parts, string text)
236public static void AddEnumName(this IList<TaggedText> parts, string text)
239public static void AddErrorTypeName(this IList<TaggedText> parts, string text)
242public static void AddEventName(this IList<TaggedText> parts, string text)
245public static void AddFieldName(this IList<TaggedText> parts, string text)
248public static void AddInterfaceName(this IList<TaggedText> parts, string text)
251public static void AddKeyword(this IList<TaggedText> parts, string text)
254public static void AddLabelName(this IList<TaggedText> parts, string text)
257public static void AddLineBreak(this IList<TaggedText> parts, string text = "\r\n")
260public static void AddNumericLiteral(this IList<TaggedText> parts, string text)
263public static void AddStringLiteral(this IList<TaggedText> parts, string text)
266public static void AddLocalName(this IList<TaggedText> parts, string text)
269public static void AddMethodName(this IList<TaggedText> parts, string text)
272public static void AddModuleName(this IList<TaggedText> parts, string text)
275public static void AddNamespaceName(this IList<TaggedText> parts, string text)
278public static void AddOperator(this IList<TaggedText> parts, string text)
281public static void AddParameterName(this IList<TaggedText> parts, string text)
284public static void AddPropertyName(this IList<TaggedText> parts, string text)
287public static void AddPunctuation(this IList<TaggedText> parts, string text)
290public static void AddRangeVariableName(this IList<TaggedText> parts, string text)
293public static void AddStructName(this IList<TaggedText> parts, string text)
296public static void AddSpace(this IList<TaggedText> parts, string text = " ")
299public static void AddText(this IList<TaggedText> parts, string text)
302public static void AddTypeParameterName(this IList<TaggedText> parts, string text)
FindUsages\DefinitionItem.cs (18)
77public ImmutableArray<TaggedText> NameDisplayParts { get; }
83public ImmutableArray<TaggedText> DisplayParts { get; }
117ImmutableArray<TaggedText> displayParts,
118ImmutableArray<TaggedText> nameDisplayParts,
163ImmutableArray<TaggedText> displayParts,
165ImmutableArray<TaggedText> nameDisplayParts = default,
178ImmutableArray<TaggedText> displayParts,
181ImmutableArray<TaggedText> nameDisplayParts = default,
195ImmutableArray<TaggedText> displayParts,
198ImmutableArray<TaggedText> nameDisplayParts,
209ImmutableArray<TaggedText> displayParts,
212ImmutableArray<TaggedText> nameDisplayParts = default,
223ImmutableArray<TaggedText> displayParts,
227ImmutableArray<TaggedText> nameDisplayParts = default,
244ImmutableArray<TaggedText> displayParts,
245ImmutableArray<TaggedText> originationParts,
255ImmutableArray<TaggedText> displayParts,
256ImmutableArray<TaggedText> nameDisplayParts = default,
InlineHints\InlineHint.cs (10)
17public readonly ImmutableArray<TaggedText> DisplayParts;
20private readonly Func<Document, CancellationToken, Task<ImmutableArray<TaggedText>>>? _getDescriptionAsync;
24ImmutableArray<TaggedText> displayParts,
25Func<Document, CancellationToken, Task<ImmutableArray<TaggedText>>>? getDescriptionAsync = null)
32ImmutableArray<TaggedText> displayParts,
34Func<Document, CancellationToken, Task<ImmutableArray<TaggedText>>>? getDescriptionAsync = null)
41ImmutableArray<TaggedText> displayParts,
44Func<Document, CancellationToken, Task<ImmutableArray<TaggedText>>>? getDescriptionAsync = null)
60public Task<ImmutableArray<TaggedText>> GetDescriptionAsync(Document document, CancellationToken cancellationToken)
61=> _getDescriptionAsync?.Invoke(document, cancellationToken) ?? SpecializedTasks.EmptyImmutableArray<TaggedText>();
SignatureHelp\AbstractSignatureHelpProvider.SymbolKeySignatureHelpItem.cs (5)
16Func<CancellationToken, IEnumerable<TaggedText>>? documentationFactory,
17IEnumerable<TaggedText> prefixParts,
18IEnumerable<TaggedText> separatorParts,
19IEnumerable<TaggedText> suffixParts,
21IEnumerable<TaggedText>? descriptionParts) : SignatureHelpItem(isVariadic, documentationFactory, prefixParts, separatorParts, suffixParts, parameters, descriptionParts), IEquatable<SymbolKeySignatureHelpItem>
SignatureHelp\SignatureHelpParameter.cs (15)
23Func<CancellationToken, IEnumerable<TaggedText>>? documentationFactory,
38public Func<CancellationToken, IEnumerable<TaggedText>> DocumentationFactory { get; } = documentationFactory ?? s_emptyDocumentationFactory;
68private static readonly Func<CancellationToken, IEnumerable<TaggedText>> s_emptyDocumentationFactory = _ => [];
91Func<CancellationToken, IEnumerable<TaggedText>>? documentationFactory,
92IEnumerable<TaggedText> displayParts,
93IEnumerable<TaggedText>? prefixDisplayParts = null,
94IEnumerable<TaggedText>? suffixDisplayParts = null,
95IEnumerable<TaggedText>? selectedDisplayParts = null)
106public Func<CancellationToken, IEnumerable<TaggedText>> DocumentationFactory { get; } = documentationFactory ?? s_emptyDocumentationFactory;
111public IList<TaggedText> PrefixDisplayParts { get; } = prefixDisplayParts.ToImmutableArrayOrEmpty();
116public IList<TaggedText> SuffixDisplayParts { get; } = suffixDisplayParts.ToImmutableArrayOrEmpty();
122public IList<TaggedText> DisplayParts { get; } = displayParts.ToImmutableArrayOrEmpty();
134public IList<TaggedText> SelectedDisplayParts { get; } = selectedDisplayParts.ToImmutableArrayOrEmpty();
136private static readonly Func<CancellationToken, IEnumerable<TaggedText>> s_emptyDocumentationFactory = _ => [];
156internal IEnumerable<TaggedText> GetAllParts()
Microsoft.CodeAnalysis.Features.UnitTests (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol (11)
Microsoft.VisualStudio.LanguageServices (2)
Microsoft.VisualStudio.LanguageServices.Xaml (7)