pub fn parse_arg_general(&self, require_name: bool) -> arg {
        let is_mutbl = self.eat_keyword(keywords::Mut);
        let pat = if require_name || self.is_named_argument() {
            debug!("parse_arg_general parse_pat (require_name:%?)",
                   require_name);
            self.parse_arg_mode();
            let pat = self.parse_pat();

            if is_mutbl && !ast_util::pat_is_ident(pat) {
                self.obsolete(*self.span, ObsoleteMutWithMultipleBindings)
            }

            self.expect(&token::COLON);
            pat
        } else {
            debug!("parse_arg_general ident_to_pat");
            ast_util::ident_to_pat(self.get_id(),
                                   *self.last_span,
                                   special_idents::invalid)
        };

        let t = self.parse_ty(false);

        ast::arg {
            is_mutbl: is_mutbl,
            ty: t,
            pat: pat,
            id: self.get_id(),
        }
    }
// This version of parse arg doesn't necessarily require
// identifier names.
This version of parse arg doesn't necessarily require
identifier names.
This version of parse arg doesn ' t necessarily require identifier names .
pub fn parse_arg_general(&self, require_name: bool) -> arg {
        let is_mutbl = self.eat_keyword(keywords::Mut);
        let pat = if require_name || self.is_named_argument() {
            debug!("parse_arg_general parse_pat (require_name:%?)",
                   require_name);
            self.parse_arg_mode();
            let pat = self.parse_pat();
            if is_mutbl && !ast_util::pat_is_ident(pat) {
                self.obsolete(*self.span, ObsoleteMutWithMultipleBindings)
            }
            self.expect(&token::COLON);
            pat
        } else {
            debug!("parse_arg_general ident_to_pat");
            ast_util::ident_to_pat(self.get_id(),
                                   *self.last_span,
                                   special_idents::invalid)
        };
        let t = self.parse_ty(false);
        ast::arg {
            is_mutbl: is_mutbl,
            ty: t,
            pat: pat,
            id: self.get_id(),
        }
    }
pub fn parse_arg_general ( & self , require_name : bool ) -> arg { let is_mutbl = self . eat_keyword ( keywords :: Mut ) ; let pat = if require_name || self . is_named_argument ( ) { debug ! ( " " require_name ) ; self . parse_arg_mode ( ) ; let pat = self . parse_pat ( ) ; if is_mutbl && ! ast_util :: pat_is_ident ( pat ) { self . obsolete ( * self . span , ObsoleteMutWithMultipleBindings ) } self . expect ( & token :: COLON ) ; pat } else { debug ! ( " " ) ; ast_util :: ident_to_pat ( self . get_id ( ) , * self . last_span , special_idents :: invalid ) } ; let t = self . parse_ty ( false ) ; ast :: arg { is_mutbl : is_mutbl , ty : t , pat : pat , id : self . get_id ( ) , } }
This version of parse arg doesn't necessarily require
identifier names.
This version of parse arg doesn ' t necessarily require identifier names .
&self
require_name
bool
&self
require_name
bool