1 write to StringExpressionBeforePaste
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
StringCopyPaste\AbstractPasteProcessor.cs (1)
113
StringExpressionBeforePaste
= stringExpressionBeforePaste;
26 references to StringExpressionBeforePaste
Microsoft.CodeAnalysis.CSharp.EditorFeatures (26)
StringCopyPaste\AbstractPasteProcessor.cs (4)
61
/// Information about the relevant pieces of <see cref="
StringExpressionBeforePaste
"/> (like where its
139
Contract.ThrowIfFalse(IsAnyRawStringExpression(
StringExpressionBeforePaste
));
154
Contract.ThrowIfFalse(IsAnyRawStringExpression(
StringExpressionBeforePaste
));
157
if (
StringExpressionBeforePaste
is not InterpolatedStringExpressionSyntax)
StringCopyPaste\KnownSourcePasteProcessor.cs (11)
57
return IsAnyRawStringExpression(
StringExpressionBeforePaste
)
64
IsVerbatimStringExpression(
StringExpressionBeforePaste
),
65
StringExpressionBeforePaste
is InterpolatedStringExpressionSyntax,
75
var isLiteral =
StringExpressionBeforePaste
is LiteralExpressionSyntax;
151
var convertToMultiLine = !IsAnyMultiLineRawStringExpression(
StringExpressionBeforePaste
) && RawContentMustBeMultiLine(textAfterBasicPaste, contentSpansAfterBasicPaste);
189
edits.Add(new TextChange(new TextSpan(
StringExpressionBeforePaste
.Span.Start, 0), dollarSignsToAdd));
226
var interpolatedStringExpression = (InterpolatedStringExpressionSyntax)
StringExpressionBeforePaste
;
250
var isLiteral =
StringExpressionBeforePaste
is LiteralExpressionSyntax;
251
var isMultiLine = IsAnyMultiLineRawStringExpression(
StringExpressionBeforePaste
);
259
if (line == TextBeforePaste.Lines.GetLineFromPosition(
StringExpressionBeforePaste
.SpanStart).LineNumber)
336
if (line == TextBeforePaste.Lines.GetLineFromPosition(
StringExpressionBeforePaste
.Span.End).LineNumber)
StringCopyPaste\UnknownSourcePasteProcessor.cs (11)
52
if (!IsAnyRawStringExpression(
StringExpressionBeforePaste
) && !ShouldAlwaysEscapeTextForNonRawString())
66
return IsAnyRawStringExpression(
StringExpressionBeforePaste
)
73
IsVerbatimStringExpression(
StringExpressionBeforePaste
),
74
StringExpressionBeforePaste
is InterpolatedStringExpressionSyntax,
84
return !IsVerbatimStringExpression(
StringExpressionBeforePaste
) && ContainsControlCharacter(Changes);
106
if (NodeOrTokenContainsError(
StringExpressionBeforePaste
))
126
edits.Add(new TextChange(new TextSpan(
StringExpressionBeforePaste
.Span.Start, 0), dollarSignsToAdd));
134
if (IsAnyMultiLineRawStringExpression(
StringExpressionBeforePaste
))
231
var endLine = TextBeforePaste.Lines.GetLineFromPosition(
StringExpressionBeforePaste
.Span.End);
272
if (line == TextBeforePaste.Lines.GetLineFromPosition(
StringExpressionBeforePaste
.SpanStart).LineNumber)
322
if (line == TextBeforePaste.Lines.GetLineFromPosition(
StringExpressionBeforePaste
.Span.End).LineNumber)