From 2141888782a74de4a655fee585c99163a3e75e5c Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 28 Jan 2018 14:33:10 +0300 Subject: Rename raw_lookahead -> nth --- src/parser/event_parser/parser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/parser/event_parser/parser.rs') diff --git a/src/parser/event_parser/parser.rs b/src/parser/event_parser/parser.rs index 2507af6bf..a15d0b633 100644 --- a/src/parser/event_parser/parser.rs +++ b/src/parser/event_parser/parser.rs @@ -164,12 +164,12 @@ impl<'t> Parser<'t> { kind } - pub(crate) fn raw_lookahead(&self, n: usize) -> SyntaxKind { + pub(crate) fn nth(&self, n: usize) -> SyntaxKind { self.tokens.get(self.pos + n).map(|t| t.kind).unwrap_or(EOF) } pub(crate) fn current(&self) -> SyntaxKind { - self.raw_lookahead(0) + self.nth(0) } fn event(&mut self, event: Event) { -- cgit v1.2.3