mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
slightly better name
This commit is contained in:
parent
df6efe62c5
commit
9d0cda4bc8
3 changed files with 20 additions and 12 deletions
|
@ -82,7 +82,7 @@ impl<'t> ParserImpl<'t> {
|
|||
self.events
|
||||
}
|
||||
|
||||
pub(super) fn next2(&self) -> Option<(SyntaxKind, SyntaxKind)> {
|
||||
pub(super) fn current2(&self) -> Option<(SyntaxKind, SyntaxKind)> {
|
||||
let c1 = self.parser_input.kind(self.pos);
|
||||
let c2 = self.parser_input.kind(self.pos + 1);
|
||||
if self.parser_input.token_start_at(self.pos + 1)
|
||||
|
@ -94,7 +94,7 @@ impl<'t> ParserImpl<'t> {
|
|||
}
|
||||
}
|
||||
|
||||
pub(super) fn next3(&self) -> Option<(SyntaxKind, SyntaxKind, SyntaxKind)> {
|
||||
pub(super) fn current3(&self) -> Option<(SyntaxKind, SyntaxKind, SyntaxKind)> {
|
||||
let c1 = self.parser_input.kind(self.pos);
|
||||
let c2 = self.parser_input.kind(self.pos + 1);
|
||||
let c3 = self.parser_input.kind(self.pos + 2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue