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