172 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 (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.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 (145)
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>
152
TextTags
.Keyword => ClassificationTypeNames.Keyword,
153
TextTags
.Class => ClassificationTypeNames.ClassName,
154
TextTags
.Delegate => ClassificationTypeNames.DelegateName,
155
TextTags
.Enum => ClassificationTypeNames.EnumName,
156
TextTags
.Interface => ClassificationTypeNames.InterfaceName,
157
TextTags
.Module => ClassificationTypeNames.ModuleName,
158
TextTags
.Struct => ClassificationTypeNames.StructName,
159
TextTags
.TypeParameter => ClassificationTypeNames.TypeParameterName,
160
TextTags
.Field => ClassificationTypeNames.FieldName,
161
TextTags
.Event => ClassificationTypeNames.EventName,
162
TextTags
.Label => ClassificationTypeNames.LabelName,
163
TextTags
.Local => ClassificationTypeNames.LocalName,
164
TextTags
.Method => ClassificationTypeNames.MethodName,
165
TextTags
.Namespace => ClassificationTypeNames.NamespaceName,
166
TextTags
.Parameter => ClassificationTypeNames.ParameterName,
167
TextTags
.Property => ClassificationTypeNames.PropertyName,
168
TextTags
.ExtensionMethod => ClassificationTypeNames.ExtensionMethodName,
169
TextTags
.EnumMember => ClassificationTypeNames.EnumMemberName,
170
TextTags
.Constant => ClassificationTypeNames.ConstantName,
171
TextTags
.Alias or
TextTags
.Assembly or
TextTags
.ErrorType or
TextTags
.RangeVariable => ClassificationTypeNames.Identifier,
172
TextTags
.NumericLiteral => ClassificationTypeNames.NumericLiteral,
173
TextTags
.StringLiteral => ClassificationTypeNames.StringLiteral,
174
TextTags
.Space or
TextTags
.LineBreak => ClassificationTypeNames.WhiteSpace,
175
TextTags
.Operator => ClassificationTypeNames.Operator,
176
TextTags
.Punctuation => ClassificationTypeNames.Punctuation,
177
TextTags
.AnonymousTypeIndicator or
TextTags
.Text => ClassificationTypeNames.Text,
178
TextTags
.Record => ClassificationTypeNames.RecordClassName,
179
TextTags
.RecordStruct => ClassificationTypeNames.RecordStructName,
181
TextTags
.ContainerStart or
TextTags
.ContainerEnd or
TextTags
.CodeBlockStart or
TextTags
.CodeBlockEnd => ClassificationTypeNames.WhiteSpace,
228
=> parts.Add(new TaggedText(
TextTags
.Alias, text));
231
=> parts.Add(new TaggedText(
TextTags
.Assembly, text));
234
=> parts.Add(new TaggedText(
TextTags
.Class, text));
237
=> parts.Add(new TaggedText(
TextTags
.Delegate, text));
240
=> parts.Add(new TaggedText(
TextTags
.Enum, text));
243
=> parts.Add(new TaggedText(
TextTags
.ErrorType, text));
246
=> parts.Add(new TaggedText(
TextTags
.Event, text));
249
=> parts.Add(new TaggedText(
TextTags
.Field, text));
252
=> parts.Add(new TaggedText(
TextTags
.Interface, text));
255
=> parts.Add(new TaggedText(
TextTags
.Keyword, text));
258
=> parts.Add(new TaggedText(
TextTags
.Label, text));
261
=> parts.Add(new TaggedText(
TextTags
.LineBreak, text));
264
=> parts.Add(new TaggedText(
TextTags
.NumericLiteral, text));
267
=> parts.Add(new TaggedText(
TextTags
.StringLiteral, text));
270
=> parts.Add(new TaggedText(
TextTags
.Local, text));
273
=> parts.Add(new TaggedText(
TextTags
.Method, text));
276
=> parts.Add(new TaggedText(
TextTags
.Module, text));
279
=> parts.Add(new TaggedText(
TextTags
.Namespace, text));
282
=> parts.Add(new TaggedText(
TextTags
.Operator, text));
285
=> parts.Add(new TaggedText(
TextTags
.Parameter, text));
288
=> parts.Add(new TaggedText(
TextTags
.Property, text));
291
=> parts.Add(new TaggedText(
TextTags
.Punctuation, text));
294
=> parts.Add(new TaggedText(
TextTags
.RangeVariable, text));
297
=> parts.Add(new TaggedText(
TextTags
.Struct, text));
300
=> parts.Add(new TaggedText(
TextTags
.Space, text));
303
=> parts.Add(new TaggedText(
TextTags
.Text, text));
306
=> 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)
41
=> 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));
494
?
TextTags
.Keyword
495
:
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)
119
[new TaggedText(
TextTags
.Text, parameter.Name + ": ")],
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (5)
277
new TaggedText(
TextTags
.Text, prefix),
279
new TaggedText(
TextTags
.ContainerStart, " "),
281
new TaggedText(
TextTags
.ContainerEnd, string.Empty),
518
.Insert(0, new TaggedText(
TextTags
.CodeBlockStart, string.Empty))
519
.Add(new TaggedText(
TextTags
.CodeBlockEnd, string.Empty));
NavigateTo\RoslynNavigateToItem.cs (1)
287
TextTags
.Text, _item.DeclaredSymbolInfo.Name + _item.DeclaredSymbolInfo.NameSuffix)];
QuickInfo\Presentation\TaggedTextExtensions.cs (6)
41
case
TextTags
.CodeBlockStart or
TextTags
.CodeBlockEnd:
45
case
TextTags
.ContainerStart:
60
case
TextTags
.ContainerEnd:
66
if (taggedTexts is [var head, ..] && head.Tag ==
TextTags
.LineBreak)
73
case
TextTags
.LineBreak:
QuickInfo\QuickInfoUtilities.cs (1)
135
AddSection(QuickInfoSectionKinds.NullabilityAnalysis, [new TaggedText(
TextTags
.Text, nullabilityInfo)]);
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),
SemanticSearch\SemanticSearchDefinitionItemFactory.cs (4)
26
var displayText = new TaggedText(
TextTags
.Text, displayStr);
30
displayParts: text.Length == displayStr.Length ? [displayText] : [displayText, new TaggedText(
TextTags
.Punctuation, "…")]);
67
var displayText = new TaggedText(
TextTags
.Text, text.ToString(displaySpan));
71
displayParts: displaySpan.Length == span.Length ? [displayText] : [displayText, new TaggedText(
TextTags
.Punctuation, "…")],
Microsoft.CodeAnalysis.LanguageServer.Protocol (7)
Extensions\ProtocolConversions.cs (6)
900
case
TextTags
.CodeBlockStart:
917
case
TextTags
.CodeBlockEnd:
935
case
TextTags
.Text when taggedText.Style == (TaggedTextStyle.Code | TaggedTextStyle.PreserveWhitespace):
949
case
TextTags
.LineBreak:
997
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.VisualStudio.LanguageServices (4)
FindReferences\Contexts\AbstractTableDataSourceFindUsagesContext.cs (1)
580
[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)
47
field = new[] { new TaggedText(
TextTags
.Text, member.TopLevelDisplayText) }.ToTextBlock(_classificationFormatMap, _classificationTypeMap);