Skip to main content

pathfinder_treesitter/
lib.rs

1//! The Surgeon — Tree-sitter engine for AST-aware operations in Pathfinder.
2//!
3//! This crate provides the [`Surgeon`] trait and its default implementation,
4//! orchestrating tree-sitter parsers, queries, and AST caching for multiple
5//! languages. It enables features like `read_symbol_scope` and semantic path
6//! resolution.
7
8/// Module for cache functionality.
9pub mod cache;
10/// Module containing error types and utilities.
11/// Module for error types and utilities.
12pub mod error;
13/// Language detection and support for various programming languages.
14pub mod language;
15/// Module containing mock implementations for testing.
16pub mod mock;
17/// The parser module providing parsing capabilities.
18pub mod parser;
19/// Module for repository mapping.
20pub mod repo_map;
21/// Provides functionality to manipulate and transform Tree-sitter syntax trees.
22pub mod surgeon;
23/// Public module for symbol definitions.
24pub mod symbols;
25/// Provides utilities for surgically manipulating Tree-sitter parse trees.
26/// Public module providing Tree-sitter-based surgery utilities.
27pub mod treesitter_surgeon;
28/// Vue multi-zone parsing utilities.
29pub mod vue_zones;
30
31pub use error::SurgeonError;
32pub use surgeon::Surgeon;
33pub use treesitter_surgeon::TreeSitterSurgeon;