fn parse_import_decls(&mut self) -> PResult<Vec<Spanned<ast::ImportDecl>>> {
        trace!("parse_import_decls");
        let mut decls = Vec::new();

        loop {
            match self.token.kind {
                TokenKind::Import => {
                    decls.push(try_span!(self, self.parse_import_decl()));
                }
                _ => return Ok(decls),
            }
        }
    }
/// Parse any number of import declarations.
Parse any number of import declarations.
Parse any number of import declarations .
fn parse_import_decls(&mut self) -> PResult<Vec<Spanned<ast::ImportDecl>>> {
        trace!("parse_import_decls");
        let mut decls = Vec::new();
        loop {
            match self.token.kind {
                TokenKind::Import => {
                    decls.push(try_span!(self, self.parse_import_decl()));
                }
                _ => return Ok(decls),
            }
        }
    }
fn parse_import_decls ( & mut self ) -> PResult < Vec < Spanned < ast :: ImportDecl > > > { trace ! ( " " ) ; let mut decls = Vec :: new ( ) ; loop { match self . token . kind { TokenKind :: Import => { decls . push ( try_span ! ( self self parse_import_decl ( ) ) ) ; } _ => return Ok ( decls ) , } } }
Parse any number of import declarations.
Parse any number of import declarations .
&mut self