@@ -338,9 +338,9 @@ fn transcribe_path(cx: ext_ctxt, b: bindings, idx_path: @mutable [uint],
338
338
if vec:: len ( p. types ) > 0 u || vec:: len ( p. idents ) != 1 u { ret ( p, s) ; }
339
339
ret alt follow_for_trans ( cx, b. find ( p. idents [ 0 ] ) , idx_path) {
340
340
some ( match_ident ( id) ) {
341
- ( { global: false, idents: [ id. node ] , types: [ ] } , s )
341
+ ( { global: false, idents: [ id. node ] , types: [ ] } , id . span )
342
342
}
343
- some ( match_path ( a_pth) ) { ( a_pth. node , s ) }
343
+ some ( match_path ( a_pth) ) { ( a_pth. node , a_pth . span ) }
344
344
some ( m) { match_error ( cx, m, "a path" ) }
345
345
none { ( p, s) }
346
346
}
@@ -363,10 +363,10 @@ fn transcribe_expr(cx: ext_ctxt, b: bindings, idx_path: @mutable [uint],
363
363
( expr_path ( @respan ( id. span ,
364
364
{ global: false,
365
365
idents: [ id. node ] ,
366
- types: [ ] } ) ) , s )
366
+ types: [ ] } ) ) , id . span )
367
367
}
368
368
some ( match_path ( a_pth) ) { ( expr_path ( a_pth) , s) }
369
- some ( match_expr ( a_exp) ) { ( a_exp. node , s ) }
369
+ some ( match_expr ( a_exp) ) { ( a_exp. node , a_exp . span ) }
370
370
some ( m) { match_error ( cx, m, "an expression" ) }
371
371
none { orig( e, s, fld) }
372
372
}
@@ -385,7 +385,7 @@ fn transcribe_type(cx: ext_ctxt, b: bindings, idx_path: @mutable [uint],
385
385
alt path_to_ident ( pth) {
386
386
some ( id) {
387
387
alt follow_for_trans ( cx, b. find ( id) , idx_path) {
388
- some ( match_ty ( ty) ) { ( ty. node , s ) }
388
+ some ( match_ty ( ty) ) { ( ty. node , ty . span ) }
389
389
some ( m) { match_error ( cx, m, "a type" ) }
390
390
none { orig( t, s, fld) }
391
391
}
@@ -409,7 +409,7 @@ fn transcribe_block(cx: ext_ctxt, b: bindings, idx_path: @mutable [uint],
409
409
ret alt block_to_ident ( blk) {
410
410
some ( id) {
411
411
alt follow_for_trans ( cx, b. find ( id) , idx_path) {
412
- some ( match_block ( new_blk) ) { ( new_blk. node , s ) }
412
+ some ( match_block ( new_blk) ) { ( new_blk. node , new_blk . span ) }
413
413
414
414
415
415
0 commit comments