/// Parse a `RAISE` statement, assuming that the `RAISE` token
/// has already been consumed.
Parse a `RAISE` statement, assuming that the `RAISE` token
has already been consumed.
Parse a ` RAISE ` statement assuming that the ` RAISE ` token has already been consumed .
fn parse_raise(&mut self) -> Result<Statement<Raw>, ParserError> {
        let severity = match self.parse_one_of_keywords(&[DEBUG, INFO, LOG, NOTICE, WARNING]) {
            Some(DEBUG) => NoticeSeverity::Debug,
            Some(INFO) => NoticeSeverity::Info,
            Some(LOG) => NoticeSeverity::Log,
            Some(NOTICE) => NoticeSeverity::Notice,
            Some(WARNING) => NoticeSeverity::Warning,
            Some(_) => unreachable!(),
            None => self.expected(self.peek_pos(), "severity level", self.peek_token())?,
        };
        Ok(Statement::Raise(RaiseStatement { severity }))
    }
fn parse_raise ( & mut self ) -> Result < Statement < Raw > , ParserError > { let severity = match self . parse_one_of_keywords ( & [ DEBUG , INFO , LOG , NOTICE , WARNING ] ) { Some ( DEBUG ) => NoticeSeverity :: Debug , Some ( INFO ) => NoticeSeverity :: Info , Some ( LOG ) => NoticeSeverity :: Log , Some ( NOTICE ) => NoticeSeverity :: Notice , Some ( WARNING ) => NoticeSeverity :: Warning , Some ( _ ) => unreachable ! ( ) , None => self . expected ( self . peek_pos ( ) , " " , self . peek_token ( ) ) ? , } ; Ok ( Statement :: Raise ( RaiseStatement { severity } ) ) }
Parse a `RAISE` statement, assuming that the `RAISE` token
has already been consumed.
Parse a ` RAISE ` statement assuming that the ` RAISE ` token has already been consumed .
&mut self