convert ast::blk_ into a struct
This commit is contained in:
parent
0b9e23146b
commit
3ea3136e84
8 changed files with 108 additions and 65 deletions
|
@ -313,11 +313,13 @@ type blk = spanned<blk_>;
|
|||
|
||||
#[auto_encode]
|
||||
#[auto_decode]
|
||||
type blk_ = {view_items: ~[@view_item],
|
||||
stmts: ~[@stmt],
|
||||
expr: Option<@expr>,
|
||||
id: node_id,
|
||||
rules: blk_check_mode};
|
||||
struct blk_ {
|
||||
view_items: ~[@view_item],
|
||||
stmts: ~[@stmt],
|
||||
expr: Option<@expr>,
|
||||
id: node_id,
|
||||
rules: blk_check_mode,
|
||||
}
|
||||
|
||||
#[auto_encode]
|
||||
#[auto_decode]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue