2 instantiations of StringCopyPasteContent
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
StringCopyPaste\StringCopyPasteContent.cs (2)
60=> new(StringCopyPasteContentKind.Text, text, null, null, null); 63=> new(StringCopyPasteContentKind.Interpolation, null, expression, alignmentClause, formatClause);
12 references to StringCopyPasteContent
Microsoft.CodeAnalysis.CSharp.EditorFeatures (12)
StringCopyPaste\KnownSourcePasteProcessor.cs (2)
76foreach (var content in _copyPasteData.Contents) 284var content = _copyPasteData.Contents[contentIndex];
StringCopyPaste\StringCopyPasteContent.cs (2)
59public static StringCopyPasteContent ForText(string text) 62public static StringCopyPasteContent ForInterpolation(string expression, string? alignmentClause, string? formatClause)
StringCopyPaste\StringCopyPasteData.cs (8)
24internal sealed class StringCopyPasteData(ImmutableArray<StringCopyPasteContent> contents) 26public ImmutableArray<StringCopyPasteContent> Contents { get; } = contents; 76=> TryGetContentForSpan(virtualCharService, literal.Token, span, out var content) 126out StringCopyPasteContent content) 135content = StringCopyPasteContent.ForText(text); 145using var _ = ArrayBuilder<StringCopyPasteContent>.GetInstance(out var result); 171result.Add(StringCopyPasteContent.ForInterpolation( 178if (!TryGetContentForSpan(virtualCharService, stringText.TextToken, selectionSpan, out var content))