convert ast::pat_list_ident_ to a struct
This commit is contained in:
parent
4b0f702608
commit
eb8fd119c6
2 changed files with 6 additions and 2 deletions
|
@ -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_>;
|
||||||
|
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue