pub fn parse_ident(&mut self) -> ParseResult<Symbol> {
        let ident = if let Some(Token::Identifier(ident)) = self.cur {
            ident
        } else {
            expected!(self, Ident);
        };
        match &ident.as_str()[..] {
            "assert" |
            "break" |
            "case" |
            "catch" |
            "class" |
            "const" |
            "continue" |
            "default" |
            "do" |
            "else" |
            "enum" |
            "extends" |
            "ﬁnal" |
            "ﬁnally" |
            "for" |
            "if" |
            "in" |
            "is" |
            "new" |
            "rethrow" |
            "return" |
            "switch" |
            "throw" |
            "try" |
            "var" |
            "while" |
            "with" => {
                expected!(self, Ident);
            }
            _ => {}
        }
        self.bump();
        Ok(ident)
    }
/// Parses a non-keyword identifier, otherwise returns an error.
Parses a non-keyword identifier, otherwise returns an error.
Parses a non - keyword identifier otherwise returns an error .
pub fn parse_ident(&mut self) -> ParseResult<Symbol> {
        let ident = if let Some(Token::Identifier(ident)) = self.cur {
            ident
        } else {
            expected!(self, Ident);
        };
        match &ident.as_str()[..] {
            "assert" |
            "break" |
            "case" |
            "catch" |
            "class" |
            "const" |
            "continue" |
            "default" |
            "do" |
            "else" |
            "enum" |
            "extends" |
            "ﬁnal" |
            "ﬁnally" |
            "for" |
            "if" |
            "in" |
            "is" |
            "new" |
            "rethrow" |
            "return" |
            "switch" |
            "throw" |
            "try" |
            "var" |
            "while" |
            "with" => {
                expected!(self, Ident);
            }
            _ => {}
        }
        self.bump();
        Ok(ident)
    }
pub fn parse_ident ( & mut self ) -> ParseResult < Symbol > { let ident = if let Some ( Token :: Identifier ( ident ) ) = self . cur { ident } else { expected ! ( self Ident ) ; } ; match & ident . as_str ( ) [ .. ] { " " | " " | " " | " " | " " | " " | " " | " " | " " | " " | " " | " " | " | " | " " | " " | " " | " " | " " | " " | " " | " " | " " | " " | " " | " " | " " => { expected ! ( self Ident ) ; } _ => { } } self . bump ( ) ; Ok ( ident ) }
Parses a non-keyword identifier, otherwise returns an error.
Parses a non - keyword identifier otherwise returns an error .
&mut self
&mut self