pub fn parse_crate_mod(&mut self) -> Crate {
        let lo = self.span.lo;
        // parse the crate's inner attrs, maybe (oops) one
        // of the attrs of an item:
        let (inner, next) = self.parse_inner_attrs_and_next();
        let first_item_outer_attrs = next;
        // parse the items inside the crate:
        let m = self.parse_mod_items(token::EOF, first_item_outer_attrs);

        ast::Crate {
            module: m,
            attrs: inner,
            config: self.cfg.clone(),
            span: mk_sp(lo, self.span.lo)
        }
    }
// Parses a source module as a crate. This is the main
// entry point for the parser.
Parses a source module as a crate. This is the main
entry point for the parser.
Parses a source module as a crate . This is the main entry point for the parser .
pub fn parse_crate_mod(&mut self) -> Crate {
        let lo = self.span.lo;
        // parse the crate's inner attrs, maybe (oops) one
        // of the attrs of an item:
        let (inner, next) = self.parse_inner_attrs_and_next();
        let first_item_outer_attrs = next;
        // parse the items inside the crate:
        let m = self.parse_mod_items(token::EOF, first_item_outer_attrs);
        ast::Crate {
            module: m,
            attrs: inner,
            config: self.cfg.clone(),
            span: mk_sp(lo, self.span.lo)
        }
    }
pub fn parse_crate_mod ( & mut self ) -> Crate { let lo = self . span . lo ; // parse the crate's inner attrs, maybe (oops) one // of the attrs of an item: let ( inner , next ) = self . parse_inner_attrs_and_next ( ) ; let first_item_outer_attrs = next ; // parse the items inside the crate: let m = self . parse_mod_items ( token :: EOF , first_item_outer_attrs ) ; ast :: Crate { module : m , attrs : inner , config : self . cfg . clone ( ) , span : mk_sp ( lo , self . span . lo ) } }
Parses a source module as a crate.
Parses a source module as a crate .
&mut self
&mut self