1 write to StringExpressionBeforePaste
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
StringCopyPaste\AbstractPasteProcessor.cs (1)
119
StringExpressionBeforePaste
= stringExpressionBeforePaste;
26 references to StringExpressionBeforePaste
Microsoft.CodeAnalysis.CSharp.EditorFeatures (26)
StringCopyPaste\AbstractPasteProcessor.cs (4)
67
/// Information about the relevant pieces of <see cref="
StringExpressionBeforePaste
"/> (like where its
145
Contract.ThrowIfFalse(IsAnyRawStringExpression(
StringExpressionBeforePaste
));
160
Contract.ThrowIfFalse(IsAnyRawStringExpression(
StringExpressionBeforePaste
));
163
if (
StringExpressionBeforePaste
is not InterpolatedStringExpressionSyntax)
StringCopyPaste\KnownSourcePasteProcessor.cs (11)
69
return IsAnyRawStringExpression(
StringExpressionBeforePaste
)
76
IsVerbatimStringExpression(
StringExpressionBeforePaste
),
77
StringExpressionBeforePaste
is InterpolatedStringExpressionSyntax,
87
var isLiteral =
StringExpressionBeforePaste
is LiteralExpressionSyntax;
163
var convertToMultiLine = !IsAnyMultiLineRawStringExpression(
StringExpressionBeforePaste
) && RawContentMustBeMultiLine(textAfterBasicPaste, contentSpansAfterBasicPaste);
201
edits.Add(new TextChange(new TextSpan(
StringExpressionBeforePaste
.Span.Start, 0), dollarSignsToAdd));
238
var interpolatedStringExpression = (InterpolatedStringExpressionSyntax)
StringExpressionBeforePaste
;
262
var isLiteral =
StringExpressionBeforePaste
is LiteralExpressionSyntax;
263
var isMultiLine = IsAnyMultiLineRawStringExpression(
StringExpressionBeforePaste
);
271
if (line == TextBeforePaste.Lines.GetLineFromPosition(
StringExpressionBeforePaste
.SpanStart).LineNumber)
348
if (line == TextBeforePaste.Lines.GetLineFromPosition(
StringExpressionBeforePaste
.Span.End).LineNumber)
StringCopyPaste\UnknownSourcePasteProcessor.cs (11)
59
if (!IsAnyRawStringExpression(
StringExpressionBeforePaste
) && !ShouldAlwaysEscapeTextForNonRawString())
73
return IsAnyRawStringExpression(
StringExpressionBeforePaste
)
80
IsVerbatimStringExpression(
StringExpressionBeforePaste
),
81
StringExpressionBeforePaste
is InterpolatedStringExpressionSyntax,
91
return !IsVerbatimStringExpression(
StringExpressionBeforePaste
) && ContainsControlCharacter(Changes);
113
if (NodeOrTokenContainsError(
StringExpressionBeforePaste
))
133
edits.Add(new TextChange(new TextSpan(
StringExpressionBeforePaste
.Span.Start, 0), dollarSignsToAdd));
141
if (IsAnyMultiLineRawStringExpression(
StringExpressionBeforePaste
))
238
var endLine = TextBeforePaste.Lines.GetLineFromPosition(
StringExpressionBeforePaste
.Span.End);
279
if (line == TextBeforePaste.Lines.GetLineFromPosition(
StringExpressionBeforePaste
.SpanStart).LineNumber)
329
if (line == TextBeforePaste.Lines.GetLineFromPosition(
StringExpressionBeforePaste
.Span.End).LineNumber)