10
10
//!
11
11
//! SpanUtils is used to manipulate spans. In particular, to extract sub-spans
12
12
//! from spans (e.g., the span for `bar` from the above example path).
13
- //! DumpVisitor walks the AST and processes it, and JsonDumper is used for
13
+ //! DumpVisitor walks the AST and processes it, and Dumper is used for
14
14
//! recording the output.
15
15
16
16
use rustc:: hir:: def:: { Res , DefKind as HirDefKind } ;
@@ -38,7 +38,7 @@ use syntax_pos::*;
38
38
39
39
use crate :: { escape, generated_code, id_from_def_id, id_from_node_id, lower_attributes,
40
40
PathCollector , SaveContext } ;
41
- use crate :: json_dumper :: { Access , JsonDumper } ;
41
+ use crate :: dumper :: { Access , Dumper } ;
42
42
use crate :: span_utils:: SpanUtils ;
43
43
use crate :: sig;
44
44
@@ -78,7 +78,7 @@ macro_rules! access_from_vis {
78
78
pub struct DumpVisitor < ' l , ' tcx , ' ll > {
79
79
save_ctxt : SaveContext < ' l , ' tcx > ,
80
80
tcx : TyCtxt < ' tcx > ,
81
- dumper : & ' ll mut JsonDumper ,
81
+ dumper : & ' ll mut Dumper ,
82
82
83
83
span : SpanUtils < ' l > ,
84
84
@@ -95,7 +95,7 @@ pub struct DumpVisitor<'l, 'tcx, 'll> {
95
95
impl < ' l , ' tcx , ' ll > DumpVisitor < ' l , ' tcx , ' ll > {
96
96
pub fn new (
97
97
save_ctxt : SaveContext < ' l , ' tcx > ,
98
- dumper : & ' ll mut JsonDumper ,
98
+ dumper : & ' ll mut Dumper ,
99
99
) -> DumpVisitor < ' l , ' tcx , ' ll > {
100
100
let span_utils = SpanUtils :: new ( & save_ctxt. tcx . sess ) ;
101
101
DumpVisitor {
0 commit comments