1
Fork 0

Support attributes on class ctors and dtors

Closes #2660
This commit is contained in:
Tim Chevalier 2012-07-16 19:16:19 -07:00
parent cf9a9d1ae8
commit b5729bd600
11 changed files with 109 additions and 51 deletions

View file

@ -16,6 +16,7 @@ export wrap;
export fold_ty_param;
export fold_ty_params;
export fold_fn_decl;
export extensions;
iface ast_fold {
fn fold_crate(crate) -> crate;
@ -701,6 +702,12 @@ impl of ast_fold for ast_fold_precursor {
}
}
impl extensions for ast_fold {
fn fold_attributes(attrs: ~[attribute]) -> ~[attribute] {
attrs.map(|x| fold_attribute_(x, self))
}
}
fn make_fold(afp: ast_fold_precursor) -> ast_fold {
afp as ast_fold
}