Extend ast_map to know about method declarations in traits.

This commit is contained in:
Michael Sullivan
2012-08-02 15:52:25 -07:00
parent 97452c0ca1
commit 2fe299d1a5
7 changed files with 48 additions and 11 deletions

View File

@@ -511,7 +511,7 @@ type ty_field = spanned<ty_field_>;
#[auto_serialize]
type ty_method = {ident: ident, attrs: ~[attribute],
decl: fn_decl, tps: ~[ty_param], self_ty: self_ty,
span: span};
id: node_id, span: span};
#[auto_serialize]
// A trait method is either required (meaning it doesn't have an