diff options
author | Aleksey Kladov <[email protected]> | 2019-02-20 12:03:31 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-02-20 12:03:31 +0000 |
commit | 9d0cda4bc84350961f3884e75a1c20e62c449ede (patch) | |
tree | 729e693ca2f457f60162effbb94639da5103e4a8 /crates/ra_syntax/src/parser_impl.rs | |
parent | df6efe62c573c98bd0ea9eb137b4c8a5838f5a4a (diff) |
slightly better name
Diffstat (limited to 'crates/ra_syntax/src/parser_impl.rs')
-rw-r--r-- | crates/ra_syntax/src/parser_impl.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/parser_impl.rs b/crates/ra_syntax/src/parser_impl.rs index 1f43aa9f9..01d156899 100644 --- a/crates/ra_syntax/src/parser_impl.rs +++ b/crates/ra_syntax/src/parser_impl.rs | |||
@@ -82,7 +82,7 @@ impl<'t> ParserImpl<'t> { | |||
82 | self.events | 82 | self.events |
83 | } | 83 | } |
84 | 84 | ||
85 | pub(super) fn next2(&self) -> Option<(SyntaxKind, SyntaxKind)> { | 85 | pub(super) fn current2(&self) -> Option<(SyntaxKind, SyntaxKind)> { |
86 | let c1 = self.parser_input.kind(self.pos); | 86 | let c1 = self.parser_input.kind(self.pos); |
87 | let c2 = self.parser_input.kind(self.pos + 1); | 87 | let c2 = self.parser_input.kind(self.pos + 1); |
88 | if self.parser_input.token_start_at(self.pos + 1) | 88 | if self.parser_input.token_start_at(self.pos + 1) |
@@ -94,7 +94,7 @@ impl<'t> ParserImpl<'t> { | |||
94 | } | 94 | } |
95 | } | 95 | } |
96 | 96 | ||
97 | pub(super) fn next3(&self) -> Option<(SyntaxKind, SyntaxKind, SyntaxKind)> { | 97 | pub(super) fn current3(&self) -> Option<(SyntaxKind, SyntaxKind, SyntaxKind)> { |
98 | let c1 = self.parser_input.kind(self.pos); | 98 | let c1 = self.parser_input.kind(self.pos); |
99 | let c2 = self.parser_input.kind(self.pos + 1); | 99 | let c2 = self.parser_input.kind(self.pos + 1); |
100 | let c3 = self.parser_input.kind(self.pos + 2); | 100 | let c3 = self.parser_input.kind(self.pos + 2); |