2 instantiations of StringCopyPasteContent
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
StringCopyPaste\StringCopyPasteContent.cs (2)
69=> new(StringCopyPasteContentKind.Text, text, null, null, null); 72=> new(StringCopyPasteContentKind.Interpolation, null, expression, alignmentClause, formatClause);
13 references to StringCopyPasteContent
Microsoft.CodeAnalysis.CSharp.EditorFeatures (12)
StringCopyPaste\KnownSourcePasteProcessor.cs (2)
88foreach (var content in _copyPasteData.Contents) 296var content = _copyPasteData.Contents[contentIndex];
StringCopyPaste\StringCopyPasteContent.cs (2)
68public static StringCopyPasteContent ForText(string text) 71public static StringCopyPasteContent ForInterpolation(string expression, string? alignmentClause, string? formatClause)
StringCopyPaste\StringCopyPasteData.cs (8)
29public ImmutableArray<StringCopyPasteContent> Contents { get; } 32public StringCopyPasteData(ImmutableArray<StringCopyPasteContent> contents) 85=> TryGetContentForSpan(virtualCharService, literal.Token, span, out var content) 135out StringCopyPasteContent content) 144content = StringCopyPasteContent.ForText(text); 154using var _ = ArrayBuilder<StringCopyPasteContent>.GetInstance(out var result); 180result.Add(StringCopyPasteContent.ForInterpolation( 187if (!TryGetContentForSpan(virtualCharService, stringText.TextToken, selectionSpan, out var content))
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
StringCopyPaste\StringCopyPasteCommandHandlerTests.cs (1)
129var json = new StringCopyPasteData(ImmutableArray.Create(StringCopyPasteContent.ForText(pasteText))).ToJson();