fn parse_item_foreign_static(&mut self, vis: ast::Visibility, lo: BytePos,
                                 attrs: Vec<Attribute>) -> PResult<'a, ForeignItem> {
        try!(self.expect_keyword(keywords::Static));
        let mutbl = self.eat_keyword(keywords::Mut);

        let ident = try!(self.parse_ident());
        try!(self.expect(&token::Colon));
        let ty = try!(self.parse_ty_sum());
        let hi = self.span.hi;
        try!(self.expect(&token::Semi));
        Ok(ForeignItem {
            ident: ident,
            attrs: attrs,
            node: ForeignItemKind::Static(ty, mutbl),
            id: ast::DUMMY_NODE_ID,
            span: mk_sp(lo, hi),
            vis: vis
        })
    }
/// Parse a static item from a foreign module
Parse a static item from a foreign module
Parse a static item from a foreign module
fn parse_item_foreign_static(&mut self, vis: ast::Visibility, lo: BytePos,
                                 attrs: Vec<Attribute>) -> PResult<'a, ForeignItem> {
        try!(self.expect_keyword(keywords::Static));
        let mutbl = self.eat_keyword(keywords::Mut);
        let ident = try!(self.parse_ident());
        try!(self.expect(&token::Colon));
        let ty = try!(self.parse_ty_sum());
        let hi = self.span.hi;
        try!(self.expect(&token::Semi));
        Ok(ForeignItem {
            ident: ident,
            attrs: attrs,
            node: ForeignItemKind::Static(ty, mutbl),
            id: ast::DUMMY_NODE_ID,
            span: mk_sp(lo, hi),
            vis: vis
        })
    }
fn parse_item_foreign_static ( & mut self , vis : ast :: Visibility , lo : BytePos , attrs : Vec < Attribute > ) -> PResult < ' a , ForeignItem > { try ! ( self expect_keyword ( keywords Static ) ) ; let mutbl = self . eat_keyword ( keywords :: Mut ) ; let ident = try ! ( self parse_ident ( ) ) ; try ! ( self expect ( token Colon ) ) ; let ty = try ! ( self parse_ty_sum ( ) ) ; let hi = self . span . hi ; try ! ( self expect ( token Semi ) ) ; Ok ( ForeignItem { ident : ident , attrs : attrs , node : ForeignItemKind :: Static ( ty , mutbl ) , id : ast :: DUMMY_NODE_ID , span : mk_sp ( lo , hi ) , vis : vis } ) }
Parse a static item from a foreign module
Parse a static item from a foreign module
&mut self
vis
ast::Visibility
lo
BytePos
attrs
Vec<Attribute>
&mut self
vis
ast::Visibility
lo
BytePos
attrs
Vec<Attribute>