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