@@ -306,7 +306,7 @@ fn print_type(s: ps, &&ty: @ast::ty) {
306306 pclose ( s) ;
307307 }
308308 ast:: ty_fn ( proto, d) {
309- print_ty_fn ( s, proto, d, none :: < str > ) ;
309+ print_ty_fn ( s, proto, d, none, none ) ;
310310 }
311311 ast:: ty_obj ( methods) {
312312 head ( s, "obj" ) ;
@@ -519,7 +519,7 @@ fn print_ty_method(s: ps, m: ast::ty_method) {
519519 hardbreak_if_not_bol ( s) ;
520520 cbox ( s, indent_unit) ;
521521 maybe_print_comment ( s, m. span . lo ) ;
522- print_ty_fn ( s, ast:: proto_bare, m. decl , some ( m. ident ) ) ;
522+ print_ty_fn ( s, ast:: proto_bare, m. decl , some ( m. ident ) , some ( m . tps ) ) ;
523523 word ( s. s , ";" ) ;
524524 end ( s) ;
525525}
@@ -1399,10 +1399,12 @@ fn print_mt(s: ps, mt: ast::mt) {
13991399}
14001400
14011401fn print_ty_fn ( s : ps , proto : ast:: proto ,
1402- decl : ast:: fn_decl , id : option:: t < ast:: ident > ) {
1402+ decl : ast:: fn_decl , id : option:: t < ast:: ident > ,
1403+ tps : option:: t < [ ast:: ty_param ] > ) {
14031404 ibox ( s, indent_unit) ;
14041405 word ( s. s , proto_to_str ( proto) ) ;
14051406 alt id { some( id) { word ( s. s , " " ) ; word ( s. s , id) ; } _ { } }
1407+ alt tps { some( tps) { print_type_params ( s, tps) ; } _ { } }
14061408 zerobreak ( s. s ) ;
14071409 popen ( s) ;
14081410 fn print_arg ( s : ps , input : ast:: arg ) {
0 commit comments