13 references to GetCharsToCurrentPosition
Microsoft.CodeAnalysis.Features (13)
EmbeddedLanguages\Json\JsonLexer.cs (13)
102return (GetCharsToCurrentPosition(start), JsonKind.StringToken, diagnostic);
113var chars = GetCharsToCurrentPosition(start);
127var chars = GetCharsToCurrentPosition(stringStart);
138_ => new EmbeddedDiagnostic(FeaturesResources.Invalid_escape_sequence, GetSpan(GetCharsToCurrentPosition(escapeStart))),
155var chars = GetCharsToCurrentPosition(escapeStart);
174return (GetCharsToCurrentPosition(start), JsonKind.TextToken, null);
242return CreateTrivia(JsonKind.EndOfLineTrivia, GetCharsToCurrentPosition(start));
247return CreateTrivia(JsonKind.EndOfLineTrivia, GetCharsToCurrentPosition(start));
268var chars = GetCharsToCurrentPosition(start);
285var chars = GetCharsToCurrentPosition(start);
309return CreateTrivia(JsonKind.MultiLineCommentTrivia, GetCharsToCurrentPosition(start));
313return CreateTrivia(JsonKind.MultiLineCommentTrivia, GetCharsToCurrentPosition(start),
341return CreateTrivia(JsonKind.WhitespaceTrivia, GetCharsToCurrentPosition(start));