1 instantiation of StringCopyPasteData
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
StringCopyPaste\StringCopyPasteData.cs (1)
77
? new
StringCopyPasteData
([content])
11 references to StringCopyPasteData
Microsoft.CodeAnalysis.CSharp.EditorFeatures (11)
StringCopyPaste\KnownSourcePasteProcessor.cs (2)
35
StringCopyPasteData
copyPasteData,
46
private readonly
StringCopyPasteData
_copyPasteData = copyPasteData;
StringCopyPaste\StringCopyPasteCommandHandler.cs (1)
218
var copyPasteData =
StringCopyPasteData
.FromJson(clipboardData);
StringCopyPaste\StringCopyPasteCommandHandler_CutCopy.cs (1)
87
var stringData =
StringCopyPasteData
.TryCreate(virtualCharService, stringExpression, span.Span.ToTextSpan());
StringCopyPaste\StringCopyPasteData.cs (7)
32
return JsonSerializer.Serialize(this, typeof(
StringCopyPasteData
));
41
public static
StringCopyPasteData
? FromJson(string? json)
48
var value = JsonSerializer.Deserialize(JsonDocument.Parse(json), typeof(
StringCopyPasteData
));
52
return (
StringCopyPasteData
)value;
67
public static
StringCopyPasteData
? TryCreate(IVirtualCharLanguageService virtualCharService, ExpressionSyntax stringExpression, TextSpan selectionSpan)
75
private static
StringCopyPasteData
? TryCreateForLiteral(IVirtualCharLanguageService virtualCharService, LiteralExpressionSyntax literal, TextSpan span)
140
private static
StringCopyPasteData
? TryCreateForInterpolatedString(