1 write to Text
Microsoft.CodeAnalysis.Features (1)
Common\TaggedText.cs (1)
76Text = text ?? throw new ArgumentNullException(nameof(text));
34 references to Text
Microsoft.CodeAnalysis.EditorFeatures (5)
IntelliSense\Helpers.cs (5)
75new ClassifiedTextElement(new ClassifiedTextRun(ClassificationTypeNames.Text, part.Text)), 82new ClassifiedTextElement(new ClassifiedTextRun(ClassificationTypeNames.Text, part.Text)), 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));
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
QuickInfo\AbstractSemanticQuickInfoSourceTests.cs (1)
67var actualText = string.Concat(taggedText.Select(tt => tt.Text));
Microsoft.CodeAnalysis.EditorFeatures.Wpf (6)
InlineHints\InlineHintsTag.cs (6)
221var trimStart = first.Text.TrimStart(); 224leftPadding = first.Text.Length - trimStart.Length; 230var trimStart = first.Text.TrimStart(); 232leftPadding = first.Text.Length - trimStart.Length; 238var trimEnd = last.Text.TrimEnd(); 240rightPadding = last.Text.Length - trimEnd.Length;
Microsoft.CodeAnalysis.Features (7)
Common\TaggedText.cs (4)
83=> Text; 133return value.Text; 137builder.EnsureCapacity(values.Sum(static value => value.Text.Length)); 140builder.Append(val.Text);
Completion\CommonCompletionItem.cs (1)
81=> string.Join("|", description.SelectMany(d => new[] { d.Tag, d.Text }).Select(t => t.Escape('\\', s_descriptionSeparators)));
Completion\CompletionDescription.cs (1)
68Interlocked.CompareExchange(ref _text, string.Concat(TaggedParts.Select(p => p.Text)), null);
QuickInfo\QuickInfoSection.cs (1)
57Interlocked.CompareExchange(ref _text, string.Concat(TaggedParts.Select(t => t.Text)), null);
Microsoft.CodeAnalysis.Features.UnitTests (1)
FindUsages\DefinitionItemFactoryTests.cs (1)
54$"text: {Inspect(text.Text)}, " +
Microsoft.CodeAnalysis.LanguageServer.Protocol (12)
Extensions\ProtocolConversions.cs (6)
913markdownBuilder.AppendLine(taggedText.Text); 919markdownBuilder.Append(codeFence + taggedText.Text); 926markdownBuilder.AppendLine(taggedText.Text); 930markdownBuilder.Append(codeFence + taggedText.Text); 974var text = isCode ? taggedText.Text : s_markdownEscapeRegex.Replace(taggedText.Text, @"\$1");
Handler\InlayHint\InlayHintHandler.cs (6)
115var trimStart = first.Text.TrimStart(); 118leftPadding = first.Text.Length - trimStart.Length != 0; 124var trimStart = first.Text.TrimStart(); 126leftPadding = first.Text.Length - trimStart.Length != 0; 132var trimEnd = last.Text.TrimEnd(); 134rightPadding = last.Text.Length - trimEnd.Length != 0;
Microsoft.VisualStudio.LanguageServices.Xaml (2)
Implementation\LanguageServer\Handler\Hover\HoverHandler.cs (2)
90RawContent = new ClassifiedTextElement(descriptionBuilder.Select(tp => new ClassifiedTextRun(tp.Tag.ToClassificationTypeName(), tp.Text))) 97=> string.Join("\r\n", description.Select(section => section.Text).Where(text => !string.IsNullOrEmpty(text)));