probe_code/language/
mod.rs

1// Language module - provides functionality for parsing different programming languages
2// using tree-sitter and extracting code blocks.
3
4// Import submodules
5pub mod block_handling;
6pub mod common;
7pub mod factory;
8pub mod language_trait;
9pub mod parser;
10pub mod test_detection;
11pub mod tree_cache;
12
13// Language implementations
14pub mod c;
15pub mod cpp;
16pub mod csharp;
17pub mod go;
18pub mod java;
19pub mod javascript;
20pub mod php;
21pub mod python;
22pub mod ruby;
23pub mod rust;
24pub mod swift;
25pub mod typescript;
26
27// Re-export items for backward compatibility
28pub use parser::parse_file_for_code_blocks;
29pub use test_detection::is_test_file;
30#[allow(unused_imports)]
31pub use tree_cache::{clear_tree_cache, get_cache_size, invalidate_cache_entry};
32
33#[cfg(test)]
34mod tests;