@@ -61,7 +61,7 @@ type visitor<E> =
61
61
visit_fn : fn @( fn_kind , fn_decl , blk , span , node_id , E , vt < E > ) ,
62
62
visit_ty_method : fn @( ty_method , E , vt < E > ) ,
63
63
visit_trait_method : fn @( trait_method , E , vt < E > ) ,
64
- visit_struct_def : fn @( struct_def , ident , ~[ ty_param ] , node_id , E ,
64
+ visit_struct_def : fn @( @ struct_def , ident , ~[ ty_param ] , node_id , E ,
65
65
vt < E > ) ,
66
66
visit_class_item : fn @( @class_member , E , vt < E > ) } ;
67
67
@@ -83,8 +83,8 @@ fn default_visitor<E>() -> visitor<E> {
83
83
visit_fn: |a, b, c, d, e, f, g|visit_fn :: < E > ( a, b, c, d, e, f, g) ,
84
84
visit_ty_method: |a, b, c|visit_ty_method :: < E > ( a, b, c) ,
85
85
visit_trait_method: |a, b, c|visit_trait_method :: < E > ( a, b, c) ,
86
- visit_struct_def:
87
- |a , b , c , d , e , f| visit_struct_def :: < E > ( a , b , c , d, e, f) ,
86
+ visit_struct_def: |a , b , c , d , e , f| visit_struct_def :: < E > ( a , b , c ,
87
+ d, e, f) ,
88
88
visit_class_item: |a, b, c|visit_class_item :: < E > ( a, b, c) } ;
89
89
}
90
90
@@ -318,7 +318,7 @@ fn visit_trait_method<E>(m: trait_method, e: E, v: vt<E>) {
318
318
}
319
319
}
320
320
321
- fn visit_struct_def < E > ( sd: struct_def, nm: ast:: ident, tps: ~[ ty_param] ,
321
+ fn visit_struct_def < E > ( sd: @ struct_def, nm: ast:: ident, tps: ~[ ty_param] ,
322
322
id: node_id, e: E , v: vt < E > ) {
323
323
for sd. members. each |m| {
324
324
v. visit_class_item( m, e, v) ;
@@ -479,7 +479,7 @@ type simple_visitor =
479
479
visit_fn: fn @( fn_kind, fn_decl, blk, span, node_id) ,
480
480
visit_ty_method: fn @( ty_method) ,
481
481
visit_trait_method: fn @( trait_method) ,
482
- visit_struct_def: fn @( struct_def, ident, ~[ ty_param] , node_id) ,
482
+ visit_struct_def: fn @( @ struct_def, ident, ~[ ty_param] , node_id) ,
483
483
visit_class_item: fn @( @class_member) } ;
484
484
485
485
fn simple_ignore_ty( _t: @ty) { }
@@ -503,7 +503,7 @@ fn default_simple_visitor() -> simple_visitor {
503
503
_id: node_id) { } ,
504
504
visit_ty_method: fn @( _m: ty_method) { } ,
505
505
visit_trait_method: fn @( _m: trait_method) { } ,
506
- visit_struct_def: fn @( _sd: struct_def, _nm: ident,
506
+ visit_struct_def: fn @( _sd: @ struct_def, _nm: ident,
507
507
_tps: ~[ ty_param] , _id: node_id) { } ,
508
508
visit_class_item: fn @( _c: @class_member) { }
509
509
} ;
@@ -572,8 +572,8 @@ fn mk_simple_visitor(v: simple_visitor) -> vt<()> {
572
572
f( m) ;
573
573
visit_trait_method( m, e, v) ;
574
574
}
575
- fn v_struct_def( f: fn @( struct_def, ident, ~[ ty_param] , node_id) ,
576
- sd: struct_def, nm: ident, tps: ~[ ty_param] , id: node_id,
575
+ fn v_struct_def( f: fn @( @ struct_def, ident, ~[ ty_param] , node_id) ,
576
+ sd: @ struct_def, nm: ident, tps: ~[ ty_param] , id: node_id,
577
577
&&e: ( ) , v: vt<( ) >) {
578
578
f( sd, nm, tps, id) ;
579
579
visit_struct_def( sd, nm, tps, id, e, v) ;
0 commit comments