1 write to StringExpressionBeforePaste
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
StringCopyPaste\AbstractPasteProcessor.cs (1)
119StringExpressionBeforePaste = 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 145Contract.ThrowIfFalse(IsAnyRawStringExpression(StringExpressionBeforePaste)); 160Contract.ThrowIfFalse(IsAnyRawStringExpression(StringExpressionBeforePaste)); 163if (StringExpressionBeforePaste is not InterpolatedStringExpressionSyntax)
StringCopyPaste\KnownSourcePasteProcessor.cs (11)
69return IsAnyRawStringExpression(StringExpressionBeforePaste) 76IsVerbatimStringExpression(StringExpressionBeforePaste), 77StringExpressionBeforePaste is InterpolatedStringExpressionSyntax, 87var isLiteral = StringExpressionBeforePaste is LiteralExpressionSyntax; 163var convertToMultiLine = !IsAnyMultiLineRawStringExpression(StringExpressionBeforePaste) && RawContentMustBeMultiLine(textAfterBasicPaste, contentSpansAfterBasicPaste); 201edits.Add(new TextChange(new TextSpan(StringExpressionBeforePaste.Span.Start, 0), dollarSignsToAdd)); 238var interpolatedStringExpression = (InterpolatedStringExpressionSyntax)StringExpressionBeforePaste; 262var isLiteral = StringExpressionBeforePaste is LiteralExpressionSyntax; 263var isMultiLine = IsAnyMultiLineRawStringExpression(StringExpressionBeforePaste); 271if (line == TextBeforePaste.Lines.GetLineFromPosition(StringExpressionBeforePaste.SpanStart).LineNumber) 348if (line == TextBeforePaste.Lines.GetLineFromPosition(StringExpressionBeforePaste.Span.End).LineNumber)
StringCopyPaste\UnknownSourcePasteProcessor.cs (11)
59if (!IsAnyRawStringExpression(StringExpressionBeforePaste) && !ShouldAlwaysEscapeTextForNonRawString()) 73return IsAnyRawStringExpression(StringExpressionBeforePaste) 80IsVerbatimStringExpression(StringExpressionBeforePaste), 81StringExpressionBeforePaste is InterpolatedStringExpressionSyntax, 91return !IsVerbatimStringExpression(StringExpressionBeforePaste) && ContainsControlCharacter(Changes); 113if (NodeOrTokenContainsError(StringExpressionBeforePaste)) 133edits.Add(new TextChange(new TextSpan(StringExpressionBeforePaste.Span.Start, 0), dollarSignsToAdd)); 141if (IsAnyMultiLineRawStringExpression(StringExpressionBeforePaste)) 238var endLine = TextBeforePaste.Lines.GetLineFromPosition(StringExpressionBeforePaste.Span.End); 279if (line == TextBeforePaste.Lines.GetLineFromPosition(StringExpressionBeforePaste.SpanStart).LineNumber) 329if (line == TextBeforePaste.Lines.GetLineFromPosition(StringExpressionBeforePaste.Span.End).LineNumber)