1 write to Tag
Microsoft.CodeAnalysis.Features (1)
Common\TaggedText.cs (1)
75Tag = tag ?? throw new ArgumentNullException(nameof(tag));
28 references to Tag
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
QuickInfo\SemanticQuickInfoSourceTests.cs (1)
7298item.Sections.First(section => section.Kind == QuickInfoSectionKinds.DocumentationComments).TaggedParts.Select(p => p.Tag).ToArray(),
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)
27typeMap.GetClassificationType(part.Tag.ToClassificationTypeName())));
Microsoft.CodeAnalysis.EditorFeatures.Wpf (6)
InlineHints\InlineHintsTag.cs (5)
154if (classify && taggedText.Tag != TextTags.Text) 156var properties = formatMap.GetTextProperties(typeMap.GetClassificationType(taggedText.Tag.ToClassificationTypeName())); 223result.Add(new TaggedText(first.Tag, trimBoth)); 231result.Add(new TaggedText(first.Tag, trimStart)); 239result.Add(new TaggedText(last.Tag, trimEnd));
WpfClassificationExtensions.cs (1)
62p.Tag.ToClassificationTypeName(),
Microsoft.CodeAnalysis.ExternalAccess.Xaml (1)
Internal\DescriptionService.cs (1)
80builder.LastOrDefault().Tag != TextTags.CodeBlockStart)
Microsoft.CodeAnalysis.Features (4)
Common\TaggedText.cs (2)
189var classificationTypeName = part.Tag.ToClassificationTypeName(); 204var 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.Features.UnitTests (1)
FindUsages\DefinitionItemFactoryTests.cs (1)
53$"tag: {Inspect(text.Tag)}, " +
Microsoft.CodeAnalysis.LanguageServer.Protocol (5)
Extensions\ProtocolConversions.cs (2)
904switch (taggedText.Tag) 983if (!isCode && taggedText.Tag is TextTags.Space or TextTags.ContainerStart)
Handler\InlayHint\InlayHintHandler.cs (3)
117result.Add(new TaggedText(first.Tag, trimBoth)); 125result.Add(new TaggedText(first.Tag, trimStart)); 133result.Add(new TaggedText(last.Tag, trimEnd));
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Implementation\LanguageServer\Handler\Hover\HoverHandler.cs (1)
90RawContent = new ClassifiedTextElement(descriptionBuilder.Select(tp => new ClassifiedTextRun(tp.Tag.ToClassificationTypeName(), tp.Text)))