Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Identify public code #180

Merged
merged 2 commits into from
Jun 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/asttools.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use tree_sitter::Node;

Luni-4 marked this conversation as resolved.
Show resolved Hide resolved
#[allow(dead_code)]
pub fn get_parent<'a>(node: &'a Node<'a>, level: usize) -> Option<Node<'a>> {
let mut level = level;
let mut node = *node;
Expand Down
20 changes: 8 additions & 12 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ extern crate serde_json;
extern crate serde_yaml;
extern crate toml;

pub(crate) mod c_macro;
pub mod web;

#[macro_use]
mod asttools;
mod checker;

#[macro_use]
mod macros;
pub use crate::macros::*;
Expand All @@ -27,12 +34,6 @@ pub(crate) use languages::*;
mod output;
pub use output::*;

pub mod web;

#[macro_use]
pub mod asttools;
pub use crate::asttools::*;

pub mod spaces;
pub use crate::spaces::*;

Expand All @@ -48,8 +49,6 @@ pub use crate::function::*;
pub mod count;
pub use crate::count::*;

pub mod c_macro;

pub mod preproc;
pub use crate::preproc::*;

Expand All @@ -63,10 +62,7 @@ mod traits;
pub use crate::traits::*;

mod ts_parser;
pub use crate::ts_parser::*;

mod checker;
pub use crate::checker::*;
pub(crate) use crate::ts_parser::*;

mod comment_rm;
pub use crate::comment_rm::*;