From 970f5cc0e422a959aa6df9a2e3a545203b271cc8 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Fri, 23 Dec 2011 13:32:17 +0100 Subject: Make ast::ty_method hold a fn_decl, rather than duplicating its fields --- src/comp/syntax/ast.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/comp/syntax/ast.rs') 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; -type ty_method = spanned; +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; } -- cgit 1.4.1-3-g733a5