1 write to Text
Microsoft.CodeAnalysis.Features (1)
Common\TaggedText.cs (1)
76Text = text ?? throw new ArgumentNullException(nameof(text));
33 references to Text
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)
213var trimStart = first.Text.TrimStart(); 216leftPadding = first.Text.Length - trimStart.Length; 222var trimStart = first.Text.TrimStart(); 224leftPadding = first.Text.Length - trimStart.Length; 230var trimEnd = last.Text.TrimEnd(); 232rightPadding = last.Text.Length - trimEnd.Length;
Microsoft.CodeAnalysis.Features (10)
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\Presentation\TaggedTextExtensions.cs (3)
55builder.AddContainer(nestedElements, part.Text); 86part.Text, 96part.Text,
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 (13)
Extensions\ProtocolConversions.cs (7)
887markdownBuilder.AppendLine(taggedText.Text); 893markdownBuilder.Append(codeFence + taggedText.Text); 900markdownBuilder.AppendLine(taggedText.Text); 904markdownBuilder.Append(codeFence + taggedText.Text); 924markdownBuilder.AppendLine(taggedText.Text); 967var text = isCode ? taggedText.Text : s_markdownEscapeRegex.Replace(taggedText.Text, @"\$1");
Handler\InlayHint\InlayHintHandler.cs (6)
121var trimStart = first.Text.TrimStart(); 124leftPadding = first.Text.Length - trimStart.Length != 0; 130var trimStart = first.Text.TrimStart(); 132leftPadding = first.Text.Length - trimStart.Length != 0; 138var trimEnd = last.Text.TrimEnd(); 140rightPadding = 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)));