fn parse_item_foreign_fn(&mut self, vis: ast::Visibility, lo: BytePos,
                             attrs: Vec<Attribute>) -> PResult<'a, ForeignItem> {
        try!(self.expect_keyword(keywords::Fn));

        let (ident, mut generics) = try!(self.parse_fn_header());
        let decl = try!(self.parse_fn_decl(true));
        generics.where_clause = try!(self.parse_where_clause());
        let hi = self.span.hi;
        try!(self.expect(&token::Semi));
        Ok(ast::ForeignItem {
            ident: ident,
            attrs: attrs,
            node: ForeignItemKind::Fn(decl, generics),
            id: ast::DUMMY_NODE_ID,
            span: mk_sp(lo, hi),
            vis: vis
        })
    }
/// Parse a function declaration from a foreign module
Parse a function declaration from a foreign module
Parse a function declaration from a foreign module
fn parse_item_foreign_fn(&mut self, vis: ast::Visibility, lo: BytePos,
                             attrs: Vec<Attribute>) -> PResult<'a, ForeignItem> {
        try!(self.expect_keyword(keywords::Fn));
        let (ident, mut generics) = try!(self.parse_fn_header());
        let decl = try!(self.parse_fn_decl(true));
        generics.where_clause = try!(self.parse_where_clause());
        let hi = self.span.hi;
        try!(self.expect(&token::Semi));
        Ok(ast::ForeignItem {
            ident: ident,
            attrs: attrs,
            node: ForeignItemKind::Fn(decl, generics),
            id: ast::DUMMY_NODE_ID,
            span: mk_sp(lo, hi),
            vis: vis
        })
    }
fn parse_item_foreign_fn ( & mut self , vis : ast :: Visibility , lo : BytePos , attrs : Vec < Attribute > ) -> PResult < ' a , ForeignItem > { try ! ( self expect_keyword ( keywords Fn ) ) ; let ( ident , mut generics ) = try ! ( self parse_fn_header ( ) ) ; let decl = try ! ( self parse_fn_decl ( true ) ) ; generics . where_clause = try ! ( self parse_where_clause ( ) ) ; let hi = self . span . hi ; try ! ( self expect ( token Semi ) ) ; Ok ( ast :: ForeignItem { ident : ident , attrs : attrs , node : ForeignItemKind :: Fn ( decl , generics ) , id : ast :: DUMMY_NODE_ID , span : mk_sp ( lo , hi ) , vis : vis } ) }
Parse a function declaration from a foreign module
Parse a function declaration from a foreign module
&mut self
vis
ast::Visibility
lo
BytePos
attrs
Vec<Attribute>
&mut self
vis
ast::Visibility
lo
BytePos
attrs
Vec<Attribute>