File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11use tree_sitter:: Node ;
22
3+ #[ allow( dead_code) ]
34pub fn get_parent < ' a > ( node : & ' a Node < ' a > , level : usize ) -> Option < Node < ' a > > {
45 let mut level = level;
56 let mut node = * node;
Original file line number Diff line number Diff line change @@ -11,6 +11,13 @@ extern crate serde_json;
1111extern crate serde_yaml;
1212extern crate toml;
1313
14+ pub ( crate ) mod c_macro;
15+ pub mod web;
16+
17+ #[ macro_use]
18+ mod asttools;
19+ mod checker;
20+
1421#[ macro_use]
1522mod macros;
1623pub use crate :: macros:: * ;
@@ -27,12 +34,6 @@ pub(crate) use languages::*;
2734mod output;
2835pub use output:: * ;
2936
30- pub mod web;
31-
32- #[ macro_use]
33- pub mod asttools;
34- pub use crate :: asttools:: * ;
35-
3637pub mod spaces;
3738pub use crate :: spaces:: * ;
3839
@@ -48,8 +49,6 @@ pub use crate::function::*;
4849pub mod count;
4950pub use crate :: count:: * ;
5051
51- pub mod c_macro;
52-
5352pub mod preproc;
5453pub use crate :: preproc:: * ;
5554
@@ -63,10 +62,7 @@ mod traits;
6362pub use crate :: traits:: * ;
6463
6564mod ts_parser;
66- pub use crate :: ts_parser:: * ;
67-
68- mod checker;
69- pub use crate :: checker:: * ;
65+ pub ( crate ) use crate :: ts_parser:: * ;
7066
7167mod comment_rm;
7268pub use crate :: comment_rm:: * ;
You can’t perform that action at this time.
0 commit comments