1 write to Tag
Microsoft.CodeAnalysis.Features (1)
Common\TaggedText.cs (1)
78Tag = tag ?? throw new ArgumentNullException(nameof(tag));
25 references to Tag
Microsoft.CodeAnalysis.EditorFeatures (9)
IntelliSense\Helpers.cs (8)
54if (part.Tag is TextTags.CodeBlockStart or TextTags.CodeBlockEnd) 60if (part.Tag == TextTags.ContainerStart) 94else if (part.Tag == TextTags.ContainerEnd) 100if (part.Tag is TextTags.ContainerStart 107if (part.Tag == TextTags.LineBreak) 150currentRuns.Add(new ClassifiedTextRun(part.Tag.ToClassificationTypeName(), part.Text, target.NavigationAction, tooltip, style)); 161part.Tag.ToClassificationTypeName(), part.Text, 168currentRuns.Add(new ClassifiedTextRun(part.Tag.ToClassificationTypeName(), part.Text, style));
Shared\Extensions\ClassificationExtensions.cs (1)
28typeMap.GetClassificationType(part.Tag.ToClassificationTypeName())));
Microsoft.CodeAnalysis.EditorFeatures.Wpf (6)
InlineHints\InlineHintsTag.cs (5)
153if (classify && taggedText.Tag != TextTags.Text) 155var properties = formatMap.GetTextProperties(typeMap.GetClassificationType(taggedText.Tag.ToClassificationTypeName())); 222result.Add(new TaggedText(first.Tag, trimBoth)); 230result.Add(new TaggedText(first.Tag, trimStart)); 238result.Add(new TaggedText(last.Tag, trimEnd));
WpfClassificationExtensions.cs (1)
62p.Tag.ToClassificationTypeName(),
Microsoft.CodeAnalysis.Features (4)
Common\TaggedText.cs (2)
261var classificationTypeName = part.Tag.ToClassificationTypeName(); 276var classificationTypeName = part.Tag.ToClassificationTypeName();
Common\TextTags.cs (1)
10/// The set of well known text tags used for the <see cref="TaggedText.Tag"/> property.
Completion\CommonCompletionItem.cs (1)
81=> string.Join("|", description.SelectMany(d => new[] { d.Tag, d.Text }).Select(t => t.Escape('\\', s_descriptionSeparators)));
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Extensions\Extensions.cs (1)
186=> new ClassifiedTextElement(definition.DisplayParts.Select(part => new ClassifiedTextRun(part.Tag.ToClassificationTypeName(), part.Text)));
Extensions\ProtocolConversions.cs (1)
738switch (taggedText.Tag)
Handler\Completion\CompletionResolveHandler.cs (1)
84.Select(tp => new ClassifiedTextRun(tp.Tag.ToClassificationTypeName(), tp.Text)));
Handler\SignatureHelp\SignatureHelpHandler.cs (1)
175return new ClassifiedTextElement(taggedTexts.ToArrayAndFree().Select(part => new ClassifiedTextRun(part.Tag.ToClassificationTypeName(), part.Text)));
Microsoft.VisualStudio.LanguageServices.Xaml (2)
Implementation\LanguageServer\Handler\Completion\CompletionResolveHandler.cs (1)
84vsCompletionItem.Description = new ClassifiedTextElement(description.Select(tp => new ClassifiedTextRun(tp.Tag.ToClassificationTypeName(), tp.Text)));
Implementation\LanguageServer\Handler\Hover\HoverHandler.cs (1)
91RawContent = new ClassifiedTextElement(descriptionBuilder.Select(tp => new ClassifiedTextRun(tp.Tag.ToClassificationTypeName(), tp.Text)))