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)
56
return IsAnyRawStringExpression(
StringExpressionBeforePaste
)
63
IsVerbatimStringExpression(
StringExpressionBeforePaste
),
64
StringExpressionBeforePaste
is InterpolatedStringExpressionSyntax,
74
var isLiteral =
StringExpressionBeforePaste
is LiteralExpressionSyntax;
150
var convertToMultiLine = !IsAnyMultiLineRawStringExpression(
StringExpressionBeforePaste
) && RawContentMustBeMultiLine(textAfterBasicPaste, contentSpansAfterBasicPaste);
188
edits.Add(new TextChange(new TextSpan(
StringExpressionBeforePaste
.Span.Start, 0), dollarSignsToAdd));
225
var interpolatedStringExpression = (InterpolatedStringExpressionSyntax)
StringExpressionBeforePaste
;
249
var isLiteral =
StringExpressionBeforePaste
is LiteralExpressionSyntax;
250
var isMultiLine = IsAnyMultiLineRawStringExpression(
StringExpressionBeforePaste
);
258
if (line == TextBeforePaste.Lines.GetLineFromPosition(
StringExpressionBeforePaste
.SpanStart).LineNumber)
335
if (line == TextBeforePaste.Lines.GetLineFromPosition(
StringExpressionBeforePaste
.Span.End).LineNumber)
StringCopyPaste\UnknownSourcePasteProcessor.cs (11)
51
if (!IsAnyRawStringExpression(
StringExpressionBeforePaste
) && !ShouldAlwaysEscapeTextForNonRawString())
65
return IsAnyRawStringExpression(
StringExpressionBeforePaste
)
72
IsVerbatimStringExpression(
StringExpressionBeforePaste
),
73
StringExpressionBeforePaste
is InterpolatedStringExpressionSyntax,
83
return !IsVerbatimStringExpression(
StringExpressionBeforePaste
) && ContainsControlCharacter(Changes);
105
if (NodeOrTokenContainsError(
StringExpressionBeforePaste
))
125
edits.Add(new TextChange(new TextSpan(
StringExpressionBeforePaste
.Span.Start, 0), dollarSignsToAdd));
133
if (IsAnyMultiLineRawStringExpression(
StringExpressionBeforePaste
))
230
var endLine = TextBeforePaste.Lines.GetLineFromPosition(
StringExpressionBeforePaste
.Span.End);
271
if (line == TextBeforePaste.Lines.GetLineFromPosition(
StringExpressionBeforePaste
.SpanStart).LineNumber)
321
if (line == TextBeforePaste.Lines.GetLineFromPosition(
StringExpressionBeforePaste
.Span.End).LineNumber)