1
Fork 0

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:
Erick Tryzelaar 2013-01-15 16:05:20 -08:00 committed by Tim Chevalier
parent 5ba7e55a4c
commit d5d77b9351
17 changed files with 334 additions and 204 deletions

View file

@ -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] {