261 references to TextTags
Microsoft.AspNetCore.App.Analyzers (2)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (1)
74ImmutableArray.Create(new TaggedText(TextTags.Text, description))));
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (1)
68ImmutableArray.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); 162new TaggedText(TextTags.Punctuation, ":"), 163new TaggedText(TextTags.Space, " "), 164new TaggedText(TextTags.Text, description)
Microsoft.CodeAnalysis.EditorFeatures.Wpf (5)
InlineHints\InlineHintsTag.cs (1)
146if (classify && taggedText.Tag != TextTags.Text)
SignatureHelp\Presentation\Signature.cs (4)
120var newLinePart = new TaggedText(TextTags.LineBreak, "\r\n"); 122var spacerPart = new TaggedText(TextTags.Space, new string(' ', signaturePrefixContent.Length)); 220new TaggedText(TextTags.Punctuation, "[") 223result.Add(new TaggedText(TextTags.Punctuation, "]"));
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (90)
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 (4)
External\ConversionHelpers.cs (1)
25.SelectMany(section => section.TaggedParts.Add(new TaggedText(TextTags.LineBreak, Environment.NewLine)))
Internal\DescriptionService.cs (3)
80builder.LastOrDefault().Tag != TextTags.CodeBlockStart) 82builder.Add(new TaggedText(TextTags.CodeBlockStart, string.Empty)); 84builder.Add(new TaggedText(TextTags.CodeBlockEnd, string.Empty));
Microsoft.CodeAnalysis.Features (141)
Common\SymbolDisplayPartKindTags.cs (33)
40SymbolDisplayPartKind.AliasName => TextTags.Alias, 41SymbolDisplayPartKind.AssemblyName => TextTags.Assembly, 42SymbolDisplayPartKind.ClassName => TextTags.Class, 43SymbolDisplayPartKind.DelegateName => TextTags.Delegate, 44SymbolDisplayPartKind.EnumName => TextTags.Enum, 45SymbolDisplayPartKind.ErrorTypeName => TextTags.ErrorType, 46SymbolDisplayPartKind.EventName => TextTags.Event, 47SymbolDisplayPartKind.FieldName => TextTags.Field, 48SymbolDisplayPartKind.InterfaceName => TextTags.Interface, 49SymbolDisplayPartKind.Keyword => TextTags.Keyword, 50SymbolDisplayPartKind.LabelName => TextTags.Label, 51SymbolDisplayPartKind.LineBreak => TextTags.LineBreak, 52SymbolDisplayPartKind.NumericLiteral => TextTags.NumericLiteral, 53SymbolDisplayPartKind.StringLiteral => TextTags.StringLiteral, 54SymbolDisplayPartKind.LocalName => TextTags.Local, 55SymbolDisplayPartKind.MethodName => TextTags.Method, 56SymbolDisplayPartKind.ModuleName => TextTags.Module, 57SymbolDisplayPartKind.NamespaceName => TextTags.Namespace, 58SymbolDisplayPartKind.Operator => TextTags.Operator, 59SymbolDisplayPartKind.ParameterName => TextTags.Parameter, 60SymbolDisplayPartKind.PropertyName => TextTags.Property, 61SymbolDisplayPartKind.Punctuation => TextTags.Punctuation, 62SymbolDisplayPartKind.Space => TextTags.Space, 63SymbolDisplayPartKind.StructName => TextTags.Struct, 64SymbolDisplayPartKind.AnonymousTypeIndicator => TextTags.AnonymousTypeIndicator, 65SymbolDisplayPartKind.Text => TextTags.Text, 66SymbolDisplayPartKind.TypeParameterName => TextTags.TypeParameter, 67SymbolDisplayPartKind.RangeVariableName => TextTags.RangeVariable, 68SymbolDisplayPartKind.EnumMemberName => TextTags.EnumMember, 69SymbolDisplayPartKind.ExtensionMethodName => TextTags.ExtensionMethod, 70SymbolDisplayPartKind.ConstantName => TextTags.Constant, 71SymbolDisplayPartKind.RecordClassName => TextTags.Record, 72SymbolDisplayPartKind.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> 149TextTags.Keyword => ClassificationTypeNames.Keyword, 150TextTags.Class => ClassificationTypeNames.ClassName, 151TextTags.Delegate => ClassificationTypeNames.DelegateName, 152TextTags.Enum => ClassificationTypeNames.EnumName, 153TextTags.Interface => ClassificationTypeNames.InterfaceName, 154TextTags.Module => ClassificationTypeNames.ModuleName, 155TextTags.Struct => ClassificationTypeNames.StructName, 156TextTags.TypeParameter => ClassificationTypeNames.TypeParameterName, 157TextTags.Field => ClassificationTypeNames.FieldName, 158TextTags.Event => ClassificationTypeNames.EventName, 159TextTags.Label => ClassificationTypeNames.LabelName, 160TextTags.Local => ClassificationTypeNames.LocalName, 161TextTags.Method => ClassificationTypeNames.MethodName, 162TextTags.Namespace => ClassificationTypeNames.NamespaceName, 163TextTags.Parameter => ClassificationTypeNames.ParameterName, 164TextTags.Property => ClassificationTypeNames.PropertyName, 165TextTags.ExtensionMethod => ClassificationTypeNames.ExtensionMethodName, 166TextTags.EnumMember => ClassificationTypeNames.EnumMemberName, 167TextTags.Constant => ClassificationTypeNames.ConstantName, 168TextTags.Alias or TextTags.Assembly or TextTags.ErrorType or TextTags.RangeVariable => ClassificationTypeNames.Identifier, 169TextTags.NumericLiteral => ClassificationTypeNames.NumericLiteral, 170TextTags.StringLiteral => ClassificationTypeNames.StringLiteral, 171TextTags.Space or TextTags.LineBreak => ClassificationTypeNames.WhiteSpace, 172TextTags.Operator => ClassificationTypeNames.Operator, 173TextTags.Punctuation => ClassificationTypeNames.Punctuation, 174TextTags.AnonymousTypeIndicator or TextTags.Text => ClassificationTypeNames.Text, 175TextTags.Record => ClassificationTypeNames.RecordClassName, 176TextTags.RecordStruct => ClassificationTypeNames.RecordStructName, 178TextTags.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)
92parts = parts.Add(new TaggedText(TextTags.LineBreak, Environment.NewLine)); 95parts = parts.Add(new TaggedText(TextTags.Text, note));
Completion\CompletionDescription.cs (1)
42=> new([new TaggedText(TextTags.Text, text)]);
DocumentationComments\AbstractDocumentationCommentFormattingService.cs (10)
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)); 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)
227tags: [TextTags.StringLiteral], 228displayParts: [new TaggedText(TextTags.Text, searchTitle)]);
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (2)
242lineNumber, this.GlobalImportsTitle, [new TaggedText(TextTags.Text, this.GlobalImportsTitle)], 271var 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)
199new TaggedText(TextTags.Text, prefix), 201new TaggedText(TextTags.ContainerStart, " "), 203new 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)
337TextTags.Text, _item.DeclaredSymbolInfo.Name + _item.DeclaredSymbolInfo.NameSuffix)];
QuickInfo\Presentation\TaggedTextExtensions.cs (5)
41case TextTags.CodeBlockStart or TextTags.CodeBlockEnd: 45case TextTags.ContainerStart: 60case TextTags.ContainerEnd: 65case TextTags.LineBreak:
QuickInfo\QuickInfoUtilities.cs (1)
146AddSection(QuickInfoSectionKinds.NullabilityAnalysis, [new TaggedText(TextTags.Text, nullableMessage)]);
SemanticSearch\AbstractSemanticSearchService.cs (1)
301new TaggedText(tag: TextTags.Text, (skippedFrameCount > 0 ? " ..." + Environment.NewLine : "") + GetStackTraceText(displayFrames))
SemanticSearch\SearchCompilationFailureDefinitionItem.cs (4)
21new TaggedText(TextTags.Text, error.Id), 22new TaggedText(TextTags.Punctuation, ":"), 23new TaggedText(TextTags.Space, " "), 24new TaggedText(TextTags.Text, error.Message)
SemanticSearch\SearchExceptionDefinitionItem.cs (4)
24new TaggedText(TextTags.Punctuation, ":"), 25new TaggedText(TextTags.Space, " "), 26new TaggedText(TextTags.StringLiteral, message), 27new TaggedText(TextTags.Space, Environment.NewLine),
Microsoft.CodeAnalysis.LanguageServer.Protocol (7)
Extensions\ProtocolConversions.cs (6)
880case TextTags.CodeBlockStart: 896case TextTags.CodeBlockEnd: 914case TextTags.Text when taggedText.Style == (TaggedTextStyle.Code | TaggedTextStyle.PreserveWhitespace): 928case TextTags.LineBreak: 976if (!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)
197Return QuickInfoItem.Create(token.Span, sections:=ImmutableArray.Create(QuickInfoSection.Create(QuickInfoSectionKinds.Description, ImmutableArray.Create(New TaggedText(TextTags.Text, VBFeaturesResources.Multiple_Types))))) 244QuickInfoSection.Create(QuickInfoSectionKinds.DocumentationComments, ImmutableArray.Create(New TaggedText(TextTags.Text, documentation.DocumentationText)))))
SignatureHelp\AbstractIntrinsicOperatorSignatureHelpProvider.vb (1)
76documentationFactory:=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)
299TextTags.Text,
FindReferences\VisualStudioDefinitionsAndReferencesFactory.cs (1)
55return [new TaggedText(TextTags.Text, formatted)];
InheritanceMargin\MarginGlyph\InheritanceMarginGlyphViewModel.cs (1)
48_lazyToolTipTextBlock = new[] { new TaggedText(TextTags.Text, member.TopLevelDisplayText) }.ToTextBlock(_classificationFormatMap, _classificationTypeMap);