261 references to TextTags
Microsoft.AspNetCore.App.Analyzers (2)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (1)
74
ImmutableArray.Create(new TaggedText(
TextTags
.Text, description))));
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (1)
68
ImmutableArray.Create(new TaggedText(
TextTags
.Text, description))));
Microsoft.CodeAnalysis.CSharp.Features (5)
QuickInfo\CSharpDiagnosticAnalyzerQuickInfoProvider.cs (5)
155
? new TaggedText(
TextTags
.Text, descriptor.Id, TaggedTextStyle.None, descriptor.HelpLinkUri, descriptor.HelpLinkUri)
156
: new TaggedText(
TextTags
.Text, descriptor.Id);
162
new TaggedText(
TextTags
.Punctuation, ":"),
163
new TaggedText(
TextTags
.Space, " "),
164
new TaggedText(
TextTags
.Text, description)
Microsoft.CodeAnalysis.EditorFeatures.Wpf (5)
InlineHints\InlineHintsTag.cs (1)
146
if (classify && taggedText.Tag !=
TextTags
.Text)
SignatureHelp\Presentation\Signature.cs (4)
120
var newLinePart = new TaggedText(
TextTags
.LineBreak, "\r\n");
122
var spacerPart = new TaggedText(
TextTags
.Space, new string(' ', signaturePrefixContent.Length));
220
new TaggedText(
TextTags
.Punctuation, "[")
223
result.Add(new TaggedText(
TextTags
.Punctuation, "]"));
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (90)
IntelliSense\IntellisenseQuickInfoBuilderTests.vb (90)
32
New TaggedText(
TextTags
.Keyword, "void"),
33
New TaggedText(
TextTags
.Space, " "),
34
New TaggedText(
TextTags
.Class, "Console"),
35
New TaggedText(
TextTags
.Punctuation, "."),
36
New TaggedText(
TextTags
.Method, "WriteLine"),
37
New TaggedText(
TextTags
.Punctuation, "("),
38
New TaggedText(
TextTags
.Keyword, "string"),
39
New TaggedText(
TextTags
.Space, " "),
40
New TaggedText(
TextTags
.Parameter, "value"),
41
New TaggedText(
TextTags
.Punctuation, ")"),
42
New TaggedText(
TextTags
.Space, " "),
43
New TaggedText(
TextTags
.Punctuation, "("),
44
New TaggedText(
TextTags
.Punctuation, "+"),
45
New TaggedText(
TextTags
.Space, " "),
46
New TaggedText(
TextTags
.Text, "18"),
47
New TaggedText(
TextTags
.Space, " "),
48
New TaggedText(
TextTags
.Text, "overloads"),
49
New TaggedText(
TextTags
.Punctuation, ")"))),
52
ImmutableArray.Create(New TaggedText(
TextTags
.Text, "Writes the specified string value, followed by the current line terminator, to the standard output stream."))),
56
New TaggedText(
TextTags
.Text, "Exceptions"),
57
New TaggedText(
TextTags
.LineBreak, "\r\n"),
58
New TaggedText(
TextTags
.Space, " "),
59
New TaggedText(
TextTags
.Namespace, "System"),
60
New TaggedText(
TextTags
.Punctuation, "."),
61
New TaggedText(
TextTags
.Namespace, "IO"),
62
New TaggedText(
TextTags
.Punctuation, "."),
63
New TaggedText(
TextTags
.Class, "IOException")))))
124
New TaggedText(
TextTags
.Keyword, "void"),
125
New TaggedText(
TextTags
.Space, " "),
126
New TaggedText(
TextTags
.Class, "Console"),
127
New TaggedText(
TextTags
.Punctuation, "."),
128
New TaggedText(
TextTags
.Method, "WriteLine"),
129
New TaggedText(
TextTags
.Punctuation, "("),
130
New TaggedText(
TextTags
.Keyword, "string"),
131
New TaggedText(
TextTags
.Space, " "),
132
New TaggedText(
TextTags
.Parameter, "value"),
133
New TaggedText(
TextTags
.Punctuation, ")"),
134
New TaggedText(
TextTags
.Space, " "),
135
New TaggedText(
TextTags
.Punctuation, "("),
136
New TaggedText(
TextTags
.Punctuation, "+"),
137
New TaggedText(
TextTags
.Space, " "),
138
New TaggedText(
TextTags
.Text, "18"),
139
New TaggedText(
TextTags
.Space, " "),
140
New TaggedText(
TextTags
.Text, "overloads"),
141
New TaggedText(
TextTags
.Punctuation, ")"))),
145
New TaggedText(
TextTags
.Text, "Exceptions"),
146
New TaggedText(
TextTags
.LineBreak, "\r\n"),
147
New TaggedText(
TextTags
.Space, " "),
148
New TaggedText(
TextTags
.Namespace, "System"),
149
New TaggedText(
TextTags
.Punctuation, "."),
150
New TaggedText(
TextTags
.Namespace, "IO"),
151
New TaggedText(
TextTags
.Punctuation, "."),
152
New TaggedText(
TextTags
.Class, "IOException")))))
209
New TaggedText(
TextTags
.Keyword, "void"),
210
New TaggedText(
TextTags
.Space, " "),
211
New TaggedText(
TextTags
.Class, "Console"),
212
New TaggedText(
TextTags
.Punctuation, "."),
213
New TaggedText(
TextTags
.Method, "WriteLine"),
214
New TaggedText(
TextTags
.Punctuation, "("),
215
New TaggedText(
TextTags
.Keyword, "string"),
216
New TaggedText(
TextTags
.Space, " "),
217
New TaggedText(
TextTags
.Parameter, "value"),
218
New TaggedText(
TextTags
.Punctuation, ")"),
219
New TaggedText(
TextTags
.Space, " "),
220
New TaggedText(
TextTags
.Punctuation, "("),
221
New TaggedText(
TextTags
.Punctuation, "+"),
222
New TaggedText(
TextTags
.Space, " "),
223
New TaggedText(
TextTags
.Text, "18"),
224
New TaggedText(
TextTags
.Space, " "),
225
New TaggedText(
TextTags
.Text, "overloads"),
226
New TaggedText(
TextTags
.Punctuation, ")"))),
230
New TaggedText(
TextTags
.Text, "Documentation line 1."),
231
New TaggedText(
TextTags
.LineBreak, "\r\n"),
232
New TaggedText(
TextTags
.Text, "Documentation line 2."),
233
New TaggedText(
TextTags
.LineBreak, "\r\n"),
234
New TaggedText(
TextTags
.LineBreak, "\r\n"),
235
New TaggedText(
TextTags
.Text, "Documentation paragraph 2."),
236
New TaggedText(
TextTags
.LineBreak, "\r\n"),
237
New TaggedText(
TextTags
.Text, "Documentation paragraph 2 line 2."),
238
New TaggedText(
TextTags
.LineBreak, "\r\n"),
239
New TaggedText(
TextTags
.LineBreak, "\r\n"),
240
New TaggedText(
TextTags
.Text, "Documentation paragraph 3."))),
244
New TaggedText(
TextTags
.Text, "Exceptions"),
245
New TaggedText(
TextTags
.LineBreak, "\r\n"),
246
New TaggedText(
TextTags
.Space, " "),
247
New TaggedText(
TextTags
.Namespace, "System"),
248
New TaggedText(
TextTags
.Punctuation, "."),
249
New TaggedText(
TextTags
.Namespace, "IO"),
250
New TaggedText(
TextTags
.Punctuation, "."),
251
New TaggedText(
TextTags
.Class, "IOException")))))
Microsoft.CodeAnalysis.ExternalAccess.Xaml (4)
External\ConversionHelpers.cs (1)
25
.SelectMany(section => section.TaggedParts.Add(new TaggedText(
TextTags
.LineBreak, Environment.NewLine)))
Internal\DescriptionService.cs (3)
80
builder.LastOrDefault().Tag !=
TextTags
.CodeBlockStart)
82
builder.Add(new TaggedText(
TextTags
.CodeBlockStart, string.Empty));
84
builder.Add(new TaggedText(
TextTags
.CodeBlockEnd, string.Empty));
Microsoft.CodeAnalysis.Features (141)
Common\SymbolDisplayPartKindTags.cs (33)
40
SymbolDisplayPartKind.AliasName =>
TextTags
.Alias,
41
SymbolDisplayPartKind.AssemblyName =>
TextTags
.Assembly,
42
SymbolDisplayPartKind.ClassName =>
TextTags
.Class,
43
SymbolDisplayPartKind.DelegateName =>
TextTags
.Delegate,
44
SymbolDisplayPartKind.EnumName =>
TextTags
.Enum,
45
SymbolDisplayPartKind.ErrorTypeName =>
TextTags
.ErrorType,
46
SymbolDisplayPartKind.EventName =>
TextTags
.Event,
47
SymbolDisplayPartKind.FieldName =>
TextTags
.Field,
48
SymbolDisplayPartKind.InterfaceName =>
TextTags
.Interface,
49
SymbolDisplayPartKind.Keyword =>
TextTags
.Keyword,
50
SymbolDisplayPartKind.LabelName =>
TextTags
.Label,
51
SymbolDisplayPartKind.LineBreak =>
TextTags
.LineBreak,
52
SymbolDisplayPartKind.NumericLiteral =>
TextTags
.NumericLiteral,
53
SymbolDisplayPartKind.StringLiteral =>
TextTags
.StringLiteral,
54
SymbolDisplayPartKind.LocalName =>
TextTags
.Local,
55
SymbolDisplayPartKind.MethodName =>
TextTags
.Method,
56
SymbolDisplayPartKind.ModuleName =>
TextTags
.Module,
57
SymbolDisplayPartKind.NamespaceName =>
TextTags
.Namespace,
58
SymbolDisplayPartKind.Operator =>
TextTags
.Operator,
59
SymbolDisplayPartKind.ParameterName =>
TextTags
.Parameter,
60
SymbolDisplayPartKind.PropertyName =>
TextTags
.Property,
61
SymbolDisplayPartKind.Punctuation =>
TextTags
.Punctuation,
62
SymbolDisplayPartKind.Space =>
TextTags
.Space,
63
SymbolDisplayPartKind.StructName =>
TextTags
.Struct,
64
SymbolDisplayPartKind.AnonymousTypeIndicator =>
TextTags
.AnonymousTypeIndicator,
65
SymbolDisplayPartKind.Text =>
TextTags
.Text,
66
SymbolDisplayPartKind.TypeParameterName =>
TextTags
.TypeParameter,
67
SymbolDisplayPartKind.RangeVariableName =>
TextTags
.RangeVariable,
68
SymbolDisplayPartKind.EnumMemberName =>
TextTags
.EnumMember,
69
SymbolDisplayPartKind.ExtensionMethodName =>
TextTags
.ExtensionMethod,
70
SymbolDisplayPartKind.ConstantName =>
TextTags
.Constant,
71
SymbolDisplayPartKind.RecordClassName =>
TextTags
.Record,
72
SymbolDisplayPartKind.RecordStructName =>
TextTags
.RecordStruct,
Common\TaggedText.cs (67)
24
/// A descriptive tag from <see cref="
TextTags
"/>.
58
/// <param name="tag">A descriptive tag from <see cref="
TextTags
"/>.</param>
68
/// <param name="tag">A descriptive tag from <see cref="
TextTags
"/>.</param>
149
TextTags
.Keyword => ClassificationTypeNames.Keyword,
150
TextTags
.Class => ClassificationTypeNames.ClassName,
151
TextTags
.Delegate => ClassificationTypeNames.DelegateName,
152
TextTags
.Enum => ClassificationTypeNames.EnumName,
153
TextTags
.Interface => ClassificationTypeNames.InterfaceName,
154
TextTags
.Module => ClassificationTypeNames.ModuleName,
155
TextTags
.Struct => ClassificationTypeNames.StructName,
156
TextTags
.TypeParameter => ClassificationTypeNames.TypeParameterName,
157
TextTags
.Field => ClassificationTypeNames.FieldName,
158
TextTags
.Event => ClassificationTypeNames.EventName,
159
TextTags
.Label => ClassificationTypeNames.LabelName,
160
TextTags
.Local => ClassificationTypeNames.LocalName,
161
TextTags
.Method => ClassificationTypeNames.MethodName,
162
TextTags
.Namespace => ClassificationTypeNames.NamespaceName,
163
TextTags
.Parameter => ClassificationTypeNames.ParameterName,
164
TextTags
.Property => ClassificationTypeNames.PropertyName,
165
TextTags
.ExtensionMethod => ClassificationTypeNames.ExtensionMethodName,
166
TextTags
.EnumMember => ClassificationTypeNames.EnumMemberName,
167
TextTags
.Constant => ClassificationTypeNames.ConstantName,
168
TextTags
.Alias or
TextTags
.Assembly or
TextTags
.ErrorType or
TextTags
.RangeVariable => ClassificationTypeNames.Identifier,
169
TextTags
.NumericLiteral => ClassificationTypeNames.NumericLiteral,
170
TextTags
.StringLiteral => ClassificationTypeNames.StringLiteral,
171
TextTags
.Space or
TextTags
.LineBreak => ClassificationTypeNames.WhiteSpace,
172
TextTags
.Operator => ClassificationTypeNames.Operator,
173
TextTags
.Punctuation => ClassificationTypeNames.Punctuation,
174
TextTags
.AnonymousTypeIndicator or
TextTags
.Text => ClassificationTypeNames.Text,
175
TextTags
.Record => ClassificationTypeNames.RecordClassName,
176
TextTags
.RecordStruct => ClassificationTypeNames.RecordStructName,
178
TextTags
.ContainerStart or
TextTags
.ContainerEnd or
TextTags
.CodeBlockStart or
TextTags
.CodeBlockEnd => ClassificationTypeNames.WhiteSpace,
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));
Completion\CommonCompletionProvider.cs (2)
92
parts = parts.Add(new TaggedText(
TextTags
.LineBreak, Environment.NewLine));
95
parts = parts.Add(new TaggedText(
TextTags
.Text, note));
Completion\CompletionDescription.cs (1)
42
=> new([new TaggedText(
TextTags
.Text, text)]);
DocumentationComments\AbstractDocumentationCommentFormattingService.cs (10)
35
private static readonly TaggedText s_spacePart = new(
TextTags
.Space, " ");
36
private static readonly TaggedText s_newlinePart = new(
TextTags
.LineBreak, "\r\n");
105
Builder.Add(new TaggedText(
TextTags
.Text, NormalizeLineEndings(s), Style, NavigationTarget.target, NavigationTarget.hint));
144
Builder.Add(new TaggedText(
TextTags
.ContainerEnd, string.Empty));
161
Builder.Add(new TaggedText(
TextTags
.ContainerEnd, string.Empty));
250
Builder.Add(new TaggedText(
TextTags
.ContainerStart, "• "));
254
Builder.Add(new TaggedText(
TextTags
.ContainerStart, $"{_listStack[i].index}. "));
260
Builder.Add(new TaggedText(
TextTags
.ContainerStart, string.Empty));
484
?
TextTags
.Keyword
485
:
TextTags
.Text;
EmbeddedLanguages\DateAndTime\DateAndTimeEmbeddedCompletionProvider.cs (1)
236
[new TaggedText(
TextTags
.Text, description)]));
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexEmbeddedCompletionProvider.cs (1)
468
[new TaggedText(
TextTags
.Text, description)]));
FindUsages\AbstractFindUsagesService_FindReferences.cs (2)
227
tags: [
TextTags
.StringLiteral],
228
displayParts: [new TaggedText(
TextTags
.Text, searchTitle)]);
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (2)
242
lineNumber, this.GlobalImportsTitle, [new TaggedText(
TextTags
.Text, this.GlobalImportsTitle)],
271
var taggedText = new TaggedText(
TextTags
.Text, string.Format(FeaturesResources.Directives_from_0, fileName));
InlineHints\AbstractInlineParameterNameHintsService.cs (1)
120
[new TaggedText(
TextTags
.Text, parameter.Name + ": ")],
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (5)
199
new TaggedText(
TextTags
.Text, prefix),
201
new TaggedText(
TextTags
.ContainerStart, " "),
203
new TaggedText(
TextTags
.ContainerEnd, string.Empty),
440
.Insert(0, new TaggedText(
TextTags
.CodeBlockStart, string.Empty))
441
.Add(new TaggedText(
TextTags
.CodeBlockEnd, string.Empty));
NavigateTo\RoslynNavigateToItem.cs (1)
337
TextTags
.Text, _item.DeclaredSymbolInfo.Name + _item.DeclaredSymbolInfo.NameSuffix)];
QuickInfo\Presentation\TaggedTextExtensions.cs (5)
41
case
TextTags
.CodeBlockStart or
TextTags
.CodeBlockEnd:
45
case
TextTags
.ContainerStart:
60
case
TextTags
.ContainerEnd:
65
case
TextTags
.LineBreak:
QuickInfo\QuickInfoUtilities.cs (1)
146
AddSection(QuickInfoSectionKinds.NullabilityAnalysis, [new TaggedText(
TextTags
.Text, nullableMessage)]);
SemanticSearch\AbstractSemanticSearchService.cs (1)
301
new TaggedText(tag:
TextTags
.Text, (skippedFrameCount > 0 ? " ..." + Environment.NewLine : "") + GetStackTraceText(displayFrames))
SemanticSearch\SearchCompilationFailureDefinitionItem.cs (4)
21
new TaggedText(
TextTags
.Text, error.Id),
22
new TaggedText(
TextTags
.Punctuation, ":"),
23
new TaggedText(
TextTags
.Space, " "),
24
new TaggedText(
TextTags
.Text, error.Message)
SemanticSearch\SearchExceptionDefinitionItem.cs (4)
24
new TaggedText(
TextTags
.Punctuation, ":"),
25
new TaggedText(
TextTags
.Space, " "),
26
new TaggedText(
TextTags
.StringLiteral, message),
27
new TaggedText(
TextTags
.Space, Environment.NewLine),
Microsoft.CodeAnalysis.LanguageServer.Protocol (7)
Extensions\ProtocolConversions.cs (6)
880
case
TextTags
.CodeBlockStart:
896
case
TextTags
.CodeBlockEnd:
914
case
TextTags
.Text when taggedText.Style == (TaggedTextStyle.Code | TaggedTextStyle.PreserveWhitespace):
928
case
TextTags
.LineBreak:
976
if (!isCode && taggedText.Tag is
TextTags
.Space or
TextTags
.ContainerStart)
Handler\Hover\HoverHandler.cs (1)
137
.. info.Sections.SelectMany(static s => s.TaggedParts.Add(new TaggedText(
TextTags
.LineBreak, Environment.NewLine)))
Microsoft.CodeAnalysis.VisualBasic.Features (3)
QuickInfo\VisualBasicSemanticQuickInfoProvider.vb (2)
197
Return QuickInfoItem.Create(token.Span, sections:=ImmutableArray.Create(QuickInfoSection.Create(QuickInfoSectionKinds.Description, ImmutableArray.Create(New TaggedText(
TextTags
.Text, VBFeaturesResources.Multiple_Types)))))
244
QuickInfoSection.Create(QuickInfoSectionKinds.DocumentationComments, ImmutableArray.Create(New TaggedText(
TextTags
.Text, documentation.DocumentationText)))))
SignatureHelp\AbstractIntrinsicOperatorSignatureHelpProvider.vb (1)
76
documentationFactory:=Function(c) SpecializedCollections.SingletonEnumerable(New TaggedText(
TextTags
.Text, documentation.DocumentationText)),
Microsoft.VisualStudio.LanguageServices (4)
FindReferences\Contexts\AbstractTableDataSourceFindUsagesContext.cs (1)
579
[new TaggedText(
TextTags
.Text, message)]);
FindReferences\Contexts\WithReferencesFindUsagesContext.cs (1)
299
TextTags
.Text,
FindReferences\VisualStudioDefinitionsAndReferencesFactory.cs (1)
55
return [new TaggedText(
TextTags
.Text, formatted)];
InheritanceMargin\MarginGlyph\InheritanceMarginGlyphViewModel.cs (1)
48
_lazyToolTipTextBlock = new[] { new TaggedText(
TextTags
.Text, member.TopLevelDisplayText) }.ToTextBlock(_classificationFormatMap, _classificationTypeMap);