1
Fork 0

convert ast::pat_list_ident_ to a struct

This commit is contained in:
Erick Tryzelaar 2013-01-13 17:27:57 -08:00
parent 4b0f702608
commit eb8fd119c6
2 changed files with 6 additions and 2 deletions

View file

@ -1356,7 +1356,10 @@ type variant = spanned<variant_>;
#[auto_encode] #[auto_encode]
#[auto_decode] #[auto_decode]
type path_list_ident_ = {name: ident, id: node_id}; struct path_list_ident_ {
name: ident,
id: node_id,
}
type path_list_ident = spanned<path_list_ident_>; type path_list_ident = spanned<path_list_ident_>;

View file

@ -81,7 +81,8 @@ impl Parser {
let lo = self.span.lo; let lo = self.span.lo;
let ident = self.parse_ident(); let ident = self.parse_ident();
let hi = self.span.hi; let hi = self.span.hi;
return spanned(lo, hi, {name: ident, id: self.get_id()}); spanned(lo, hi, ast::path_list_ident_ { name: ident,
id: self.get_id() })
} }
fn parse_value_ident() -> ast::ident { fn parse_value_ident() -> ast::ident {