parent
cf9a9d1ae8
commit
b5729bd600
11 changed files with 109 additions and 51 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue