]> git.lizzy.rs Git - rust.git/blob - src/librustc_save_analysis/dump.rs
Change json dumper (and a few other bits and pieces) to use rls-data rather than...
[rust.git] / src / librustc_save_analysis / dump.rs
1 // Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 use super::external_data::*;
12
13 use rls_data::CratePreludeData;
14
15 pub trait Dump {
16     fn crate_prelude(&mut self, CratePreludeData) {}
17     fn enum_data(&mut self, EnumData) {}
18     fn extern_crate(&mut self, ExternCrateData) {}
19     fn impl_data(&mut self, ImplData) {}
20     fn inheritance(&mut self, InheritanceData) {}
21     fn function(&mut self, FunctionData) {}
22     fn function_ref(&mut self, FunctionRefData) {}
23     fn function_call(&mut self, FunctionCallData) {}
24     fn method(&mut self, MethodData) {}
25     fn method_call(&mut self, MethodCallData) {}
26     fn macro_data(&mut self, MacroData) {}
27     fn macro_use(&mut self, MacroUseData) {}
28     fn mod_data(&mut self, ModData) {}
29     fn mod_ref(&mut self, ModRefData) {}
30     fn struct_data(&mut self, StructData) {}
31     fn struct_variant(&mut self, StructVariantData) {}
32     fn trait_data(&mut self, TraitData) {}
33     fn tuple_variant(&mut self, TupleVariantData) {}
34     fn type_ref(&mut self, TypeRefData) {}
35     fn typedef(&mut self, TypeDefData) {}
36     fn use_data(&mut self, UseData) {}
37     fn use_glob(&mut self, UseGlobData) {}
38     fn variable(&mut self, VariableData) {}
39     fn variable_ref(&mut self, VariableRefData) {}
40 }