Remove field tokens_consumed
of Parser
.
This commit is contained in:
parent
6fe23719fe
commit
f2d1407743
1 changed files with 0 additions and 3 deletions
|
@ -185,7 +185,6 @@ pub struct Parser<'a> {
|
||||||
/// the previous token kind
|
/// the previous token kind
|
||||||
prev_token_kind: PrevTokenKind,
|
prev_token_kind: PrevTokenKind,
|
||||||
lookahead_buffer: LookaheadBuffer,
|
lookahead_buffer: LookaheadBuffer,
|
||||||
pub tokens_consumed: usize,
|
|
||||||
pub restrictions: Restrictions,
|
pub restrictions: Restrictions,
|
||||||
pub quote_depth: usize, // not (yet) related to the quasiquoter
|
pub quote_depth: usize, // not (yet) related to the quasiquoter
|
||||||
parsing_token_tree: bool,
|
parsing_token_tree: bool,
|
||||||
|
@ -282,7 +281,6 @@ impl<'a> Parser<'a> {
|
||||||
prev_span: syntax_pos::DUMMY_SP,
|
prev_span: syntax_pos::DUMMY_SP,
|
||||||
prev_token_kind: PrevTokenKind::Other,
|
prev_token_kind: PrevTokenKind::Other,
|
||||||
lookahead_buffer: Default::default(),
|
lookahead_buffer: Default::default(),
|
||||||
tokens_consumed: 0,
|
|
||||||
restrictions: Restrictions::empty(),
|
restrictions: Restrictions::empty(),
|
||||||
quote_depth: 0,
|
quote_depth: 0,
|
||||||
parsing_token_tree: false,
|
parsing_token_tree: false,
|
||||||
|
@ -902,7 +900,6 @@ impl<'a> Parser<'a> {
|
||||||
};
|
};
|
||||||
self.span = next.sp;
|
self.span = next.sp;
|
||||||
self.token = next.tok;
|
self.token = next.tok;
|
||||||
self.tokens_consumed += 1;
|
|
||||||
self.expected_tokens.clear();
|
self.expected_tokens.clear();
|
||||||
// check after each token
|
// check after each token
|
||||||
self.check_unknown_macro_variable();
|
self.check_unknown_macro_variable();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue