/// Bail out if the current token is not an expected keyword, or consume it if it is
Bail out if the current token is not an expected keyword, or consume it if it is
Bail out if the current token is not an expected keyword or consume it if it is
fn expect_token(&mut self, expected: &Token) -> Result<(), ParserError> {
        if self.consume_token(expected) {
            Ok(())
        } else {
            self.expected(self.peek_pos(), expected, self.peek_token())
        }
    }
fn expect_token ( & mut self , expected : & Token ) -> Result < ( ) , ParserError > { if self . consume_token ( expected ) { Ok ( ( ) ) } else { self . expected ( self . peek_pos ( ) , expected , self . peek_token ( ) ) } }
Bail out if the current token is not an expected keyword, or consume it if it is
Bail out if the current token is not an expected keyword or consume it if it is
&mut self
expected
&Token