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)
76
foreach (
var
content in _copyPasteData.Contents)
284
var
content = _copyPasteData.Contents[contentIndex];
StringCopyPaste\StringCopyPasteContent.cs (2)
59
public static
StringCopyPasteContent
ForText(string text)
62
public static
StringCopyPasteContent
ForInterpolation(string expression, string? alignmentClause, string? formatClause)
StringCopyPaste\StringCopyPasteData.cs (8)
24
internal sealed class StringCopyPasteData(ImmutableArray<
StringCopyPasteContent
> contents)
26
public ImmutableArray<
StringCopyPasteContent
> Contents { get; } = contents;
76
=> TryGetContentForSpan(virtualCharService, literal.Token, span, out
var
content)
126
out
StringCopyPasteContent
content)
135
content =
StringCopyPasteContent
.ForText(text);
145
using var _ = ArrayBuilder<
StringCopyPasteContent
>.GetInstance(out var result);
171
result.Add(
StringCopyPasteContent
.ForInterpolation(
178
if (!TryGetContentForSpan(virtualCharService, stringText.TextToken, selectionSpan, out
var
content))