Lines Matching refs:token
5 use crate::token::Token;
9 /// Support for checking the next token in a stream to decide how to parse.
12 /// automatically construct an appropriate error message based on the token
89 /// Looks at the next token in the parse stream to determine whether it
90 /// matches the requested type of token.
102 /// - `input.peek(token::Brace)`
103 pub fn peek<T: Peek>(&self, token: T) -> bool {
104 let _ = token;
110 /// The error message will identify all of the expected token types that
119 Error::new(self.cursor.span(), "unexpected token")
139 /// Types that can be parsed by looking at just one token.