172 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 (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.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 (145)
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> 152TextTags.Keyword => ClassificationTypeNames.Keyword, 153TextTags.Class => ClassificationTypeNames.ClassName, 154TextTags.Delegate => ClassificationTypeNames.DelegateName, 155TextTags.Enum => ClassificationTypeNames.EnumName, 156TextTags.Interface => ClassificationTypeNames.InterfaceName, 157TextTags.Module => ClassificationTypeNames.ModuleName, 158TextTags.Struct => ClassificationTypeNames.StructName, 159TextTags.TypeParameter => ClassificationTypeNames.TypeParameterName, 160TextTags.Field => ClassificationTypeNames.FieldName, 161TextTags.Event => ClassificationTypeNames.EventName, 162TextTags.Label => ClassificationTypeNames.LabelName, 163TextTags.Local => ClassificationTypeNames.LocalName, 164TextTags.Method => ClassificationTypeNames.MethodName, 165TextTags.Namespace => ClassificationTypeNames.NamespaceName, 166TextTags.Parameter => ClassificationTypeNames.ParameterName, 167TextTags.Property => ClassificationTypeNames.PropertyName, 168TextTags.ExtensionMethod => ClassificationTypeNames.ExtensionMethodName, 169TextTags.EnumMember => ClassificationTypeNames.EnumMemberName, 170TextTags.Constant => ClassificationTypeNames.ConstantName, 171TextTags.Alias or TextTags.Assembly or TextTags.ErrorType or TextTags.RangeVariable => ClassificationTypeNames.Identifier, 172TextTags.NumericLiteral => ClassificationTypeNames.NumericLiteral, 173TextTags.StringLiteral => ClassificationTypeNames.StringLiteral, 174TextTags.Space or TextTags.LineBreak => ClassificationTypeNames.WhiteSpace, 175TextTags.Operator => ClassificationTypeNames.Operator, 176TextTags.Punctuation => ClassificationTypeNames.Punctuation, 177TextTags.AnonymousTypeIndicator or TextTags.Text => ClassificationTypeNames.Text, 178TextTags.Record => ClassificationTypeNames.RecordClassName, 179TextTags.RecordStruct => ClassificationTypeNames.RecordStructName, 181TextTags.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)
92parts = parts.Add(new TaggedText(TextTags.LineBreak, Environment.NewLine)); 95parts = parts.Add(new TaggedText(TextTags.Text, note));
Completion\CompletionDescription.cs (1)
41=> 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)); 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)
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)
119[new TaggedText(TextTags.Text, parameter.Name + ": ")],
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (5)
277new TaggedText(TextTags.Text, prefix), 279new TaggedText(TextTags.ContainerStart, " "), 281new 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)
287TextTags.Text, _item.DeclaredSymbolInfo.Name + _item.DeclaredSymbolInfo.NameSuffix)];
QuickInfo\Presentation\TaggedTextExtensions.cs (6)
41case TextTags.CodeBlockStart or TextTags.CodeBlockEnd: 45case TextTags.ContainerStart: 60case TextTags.ContainerEnd: 66if (taggedTexts is [var head, ..] && head.Tag == TextTags.LineBreak) 73case TextTags.LineBreak:
QuickInfo\QuickInfoUtilities.cs (1)
135AddSection(QuickInfoSectionKinds.NullabilityAnalysis, [new TaggedText(TextTags.Text, nullabilityInfo)]);
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),
SemanticSearch\SemanticSearchDefinitionItemFactory.cs (4)
26var displayText = new TaggedText(TextTags.Text, displayStr); 30displayParts: text.Length == displayStr.Length ? [displayText] : [displayText, new TaggedText(TextTags.Punctuation, "…")]); 67var displayText = new TaggedText(TextTags.Text, text.ToString(displaySpan)); 71displayParts: displaySpan.Length == span.Length ? [displayText] : [displayText, new TaggedText(TextTags.Punctuation, "…")],
Microsoft.CodeAnalysis.LanguageServer.Protocol (7)
Extensions\ProtocolConversions.cs (6)
900case TextTags.CodeBlockStart: 917case TextTags.CodeBlockEnd: 935case TextTags.Text when taggedText.Style == (TaggedTextStyle.Code | TaggedTextStyle.PreserveWhitespace): 949case TextTags.LineBreak: 997if (!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)
299TextTags.Text,
FindReferences\VisualStudioDefinitionsAndReferencesFactory.cs (1)
55return [new TaggedText(TextTags.Text, formatted)];
InheritanceMargin\MarginGlyph\InheritanceMarginGlyphViewModel.cs (1)
47field = new[] { new TaggedText(TextTags.Text, member.TopLevelDisplayText) }.ToTextBlock(_classificationFormatMap, _classificationTypeMap);