fn parse_stmt_like<Type>(&mut self, include_decl: bool, top_level: bool) -> PResult<Type>
    where
        Self: StmtLikeParser<'a, Type>,
        Type: IsDirective + From<Stmt>,
    {
        trace_cur!(self, parse_stmt_like);
        let start = cur_pos!(self);
        let decorators = self.parse_decorators(true)?;

        if is_one_of!(self, "import", "export") {
            return self.handle_import_export(top_level, decorators);
        }

        self.parse_stmt_internal(start, include_decl, top_level, decorators)
            .map(From::from)
    }
/// Parse a statement, declaration or module item.
Parse a statement, declaration or module item.
Parse a statement declaration or module item .
fn parse_stmt_like<Type>(&mut self, include_decl: bool, top_level: bool) -> PResult<Type>
    where
        Self: StmtLikeParser<'a, Type>,
        Type: IsDirective + From<Stmt>,
    {
        trace_cur!(self, parse_stmt_like);
        let start = cur_pos!(self);
        let decorators = self.parse_decorators(true)?;
        if is_one_of!(self, "import", "export") {
            return self.handle_import_export(top_level, decorators);
        }
        self.parse_stmt_internal(start, include_decl, top_level, decorators)
            .map(From::from)
    }
fn parse_stmt_like < Type > ( & mut self , include_decl : bool , top_level : bool ) -> PResult < Type > where Self : StmtLikeParser < ' a , Type > , Type : IsDirective + From < Stmt > , { trace_cur ! ( self parse_stmt_like ) ; let start = cur_pos ! ( self ) ; let decorators = self . parse_decorators ( true ) ? ; if is_one_of ! ( self " " " " ) { return self . handle_import_export ( top_level , decorators ) ; } self . parse_stmt_internal ( start , include_decl , top_level , decorators ) . map ( From :: from ) }
Parse a statement, declaration or module item.
Parse a statement declaration or module item .
&mut self
include_decl
bool
top_level
bool