diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2011-12-23 13:32:17 +0100 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2011-12-23 13:32:17 +0100 |
| commit | 970f5cc0e422a959aa6df9a2e3a545203b271cc8 (patch) | |
| tree | ba362618ed52ceb0beed04d266b19742c7e88e0f /src/comp/syntax/ast.rs | |
| parent | f0dfbe7b1b8d630488441982cf3d46f82a3a89db (diff) | |
| download | rust-970f5cc0e422a959aa6df9a2e3a545203b271cc8.tar.gz rust-970f5cc0e422a959aa6df9a2e3a545203b271cc8.zip | |
Make ast::ty_method hold a fn_decl, rather than duplicating its fields
Diffstat (limited to 'src/comp/syntax/ast.rs')
| -rw-r--r-- | src/comp/syntax/ast.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/comp/syntax/ast.rs b/src/comp/syntax/ast.rs index 98dfb74ea70..a94e860b764 100644 --- a/src/comp/syntax/ast.rs +++ b/src/comp/syntax/ast.rs @@ -307,17 +307,9 @@ type mt = {ty: @ty, mut: mutability}; type ty_field_ = {ident: ident, mt: mt}; -type ty_method_ = - {proto: proto, - ident: ident, - inputs: [arg], - output: @ty, - cf: ret_style, - constrs: [@constr]}; - type ty_field = spanned<ty_field_>; -type ty_method = spanned<ty_method_>; +type ty_method = {ident: ident, decl: fn_decl, span: span}; tag int_ty { ty_i; ty_char; ty_i8; ty_i16; ty_i32; ty_i64; } |
