arbor-core 3.1.1

AST parsing and code analysis for Arbor
Documentation
//! Arbor Core - AST parsing and code analysis
//!
//! This crate provides the foundational parsing capabilities for Arbor.
//! It uses Tree-sitter to parse source files into ASTs and extract
//! meaningful code entities like functions, classes, and their relationships.
//!
//! # Example
//!
//! ```no_run
//! use arbor_core::{parse_file, CodeNode};
//! use std::path::Path;
//!
//! let nodes = parse_file(Path::new("src/main.rs")).unwrap();
//! for node in nodes {
//!     println!("{}: {} (line {})", node.kind, node.name, node.line_start);
//! }
//! ```

pub mod error;
pub mod fallback_parser;
pub mod languages;
pub mod node;
pub mod parser;
pub mod parser_v2;
pub mod retirements;
pub mod usages;

pub use error::{ParseError, Result};
pub use languages::LanguageParser;
pub use node::{
    clean_type_name, field_ref, field_type_ref, import_alias, import_alias_ref,
    import_qualified_name, local_binding, local_binding_ref, return_type_ref, returns_ref,
    runtime_binding, runtime_binding_ref, type_relation_ref, typed_receiver, typed_receiver_ref,
    CodeNode, NodeKind, TypeRelationKind, Visibility, MODULE_FILE_REF,
};
pub use parser::{
    detect_language, parse_file, parse_file_usages, parse_source, parse_source_usages,
    parse_source_with_usages,
};
pub use parser_v2::{ArborParser, ParseResult, RelationType, SymbolRelation};
pub use usages::{FileUsages, Routing, Sdk};