1 write to StringExpressionBeforePaste
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
StringCopyPaste\AbstractPasteProcessor.cs (1)
113StringExpressionBeforePaste = 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 139Contract.ThrowIfFalse(IsAnyRawStringExpression(StringExpressionBeforePaste)); 154Contract.ThrowIfFalse(IsAnyRawStringExpression(StringExpressionBeforePaste)); 157if (StringExpressionBeforePaste is not InterpolatedStringExpressionSyntax)
StringCopyPaste\KnownSourcePasteProcessor.cs (11)
57return IsAnyRawStringExpression(StringExpressionBeforePaste) 64IsVerbatimStringExpression(StringExpressionBeforePaste), 65StringExpressionBeforePaste is InterpolatedStringExpressionSyntax, 75var isLiteral = StringExpressionBeforePaste is LiteralExpressionSyntax; 151var convertToMultiLine = !IsAnyMultiLineRawStringExpression(StringExpressionBeforePaste) && RawContentMustBeMultiLine(textAfterBasicPaste, contentSpansAfterBasicPaste); 189edits.Add(new TextChange(new TextSpan(StringExpressionBeforePaste.Span.Start, 0), dollarSignsToAdd)); 226var interpolatedStringExpression = (InterpolatedStringExpressionSyntax)StringExpressionBeforePaste; 250var isLiteral = StringExpressionBeforePaste is LiteralExpressionSyntax; 251var isMultiLine = IsAnyMultiLineRawStringExpression(StringExpressionBeforePaste); 259if (line == TextBeforePaste.Lines.GetLineFromPosition(StringExpressionBeforePaste.SpanStart).LineNumber) 336if (line == TextBeforePaste.Lines.GetLineFromPosition(StringExpressionBeforePaste.Span.End).LineNumber)
StringCopyPaste\UnknownSourcePasteProcessor.cs (11)
52if (!IsAnyRawStringExpression(StringExpressionBeforePaste) && !ShouldAlwaysEscapeTextForNonRawString()) 66return IsAnyRawStringExpression(StringExpressionBeforePaste) 73IsVerbatimStringExpression(StringExpressionBeforePaste), 74StringExpressionBeforePaste is InterpolatedStringExpressionSyntax, 84return !IsVerbatimStringExpression(StringExpressionBeforePaste) && ContainsControlCharacter(Changes); 106if (NodeOrTokenContainsError(StringExpressionBeforePaste)) 126edits.Add(new TextChange(new TextSpan(StringExpressionBeforePaste.Span.Start, 0), dollarSignsToAdd)); 134if (IsAnyMultiLineRawStringExpression(StringExpressionBeforePaste)) 231var endLine = TextBeforePaste.Lines.GetLineFromPosition(StringExpressionBeforePaste.Span.End); 272if (line == TextBeforePaste.Lines.GetLineFromPosition(StringExpressionBeforePaste.SpanStart).LineNumber) 322if (line == TextBeforePaste.Lines.GetLineFromPosition(StringExpressionBeforePaste.Span.End).LineNumber)