13 references to _token
Microsoft.CodeAnalysis.CSharp.Features (13)
SplitStringLiteral\SimpleStringSplitter.cs (13)
29
=> !
_token
.IsVerbatimStringLiteral() && !CursorIsAfterQuotesInUtf8String();
33
return
_token
.IsKind(SyntaxKind.Utf8StringLiteralToken) && CursorPosition >=
_token
.Span.End - "u8".Length;
36
protected override SyntaxNode GetNodeToReplace() =>
_token
.Parent;
41
var prefix = Document.Text.GetSubText(TextSpan.FromBounds(
_token
.SpanStart, CursorPosition)).ToString();
42
var suffix = Document.Text.GetSubText(TextSpan.FromBounds(CursorPosition,
_token
.Span.End)).ToString();
46
var firstTokenSuffix =
_token
.Kind() == SyntaxKind.Utf8StringLiteralToken
47
? Document.Text.GetSubText(TextSpan.FromBounds(
_token
.Span.End - "u8".Length,
_token
.Span.End)).ToString()
51
_token
.LeadingTrivia,
52
_token
.Kind(),
59
_token
.Kind(),
62
trailing:
_token
.TrailingTrivia);