convert the remaining ast record types into structs
These are: region,arg,fn_decl,method,_mod,foreign_mod, variant_arg,enum_def_,variant_,trait_ref.
This commit is contained in:
parent
5ba7e55a4c
commit
d5d77b9351
17 changed files with 334 additions and 204 deletions
|
@ -240,11 +240,16 @@ impl state: to_type_decls {
|
|||
items_msg.push(v);
|
||||
}
|
||||
|
||||
~[cx.item_enum_poly(name,
|
||||
self.span,
|
||||
ast::enum_def({ variants: items_msg,
|
||||
common: None }),
|
||||
self.ty_params)]
|
||||
~[
|
||||
cx.item_enum_poly(
|
||||
name,
|
||||
self.span,
|
||||
ast::enum_def(enum_def_ {
|
||||
variants: items_msg,
|
||||
common: None }),
|
||||
self.ty_params
|
||||
)
|
||||
]
|
||||
}
|
||||
|
||||
fn to_endpoint_decls(cx: ext_ctxt, dir: direction) -> ~[@ast::item] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue