1 write to Text
Microsoft.CodeAnalysis.Features (1)
Common\TaggedText.cs (1)
79Text = text ?? throw new ArgumentNullException(nameof(text));
29 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)
68var actualText = string.Concat(taggedText.Select(tt => tt.Text));
Microsoft.CodeAnalysis.EditorFeatures.Wpf (6)
InlineHints\InlineHintsTag.cs (6)
220var trimStart = first.Text.TrimStart(); 223leftPadding = first.Text.Length - trimStart.Length; 229var trimStart = first.Text.TrimStart(); 231leftPadding = first.Text.Length - trimStart.Length; 237var trimEnd = last.Text.TrimEnd(); 239rightPadding = last.Text.Length - trimEnd.Length;
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (2)
GoToHelpers\GoToHelpers.vb (2)
62String.Join("", di.OriginationParts.Select(Function(t) t.Text)), 63String.Join("", di.NameDisplayParts.Select(Function(t) t.Text)))
Microsoft.CodeAnalysis.Features (5)
Common\TaggedText.cs (2)
86=> Text; 143builder.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.LanguageServer.Protocol (7)
Extensions\Extensions.cs (1)
186=> new ClassifiedTextElement(definition.DisplayParts.Select(part => new ClassifiedTextRun(part.Tag.ToClassificationTypeName(), part.Text)));
Extensions\ProtocolConversions.cs (4)
743builder.Append(taggedText.Text); 748builder.Append(taggedText.Text); 782var text = isInCodeBlock ? taggedText.Text : s_markdownEscapeRegex.Replace(taggedText.Text, @"\$1");
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 (3)
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 (2)
91RawContent = new ClassifiedTextElement(descriptionBuilder.Select(tp => new ClassifiedTextRun(tp.Tag.ToClassificationTypeName(), tp.Text))) 98=> string.Join("\r\n", description.Select(section => section.Text).Where(text => !string.IsNullOrEmpty(text)));