Skip to main content

sipha_analysis/
lib.rs

1//! Grammar-agnostic analysis helpers for sipha syntax trees.
2//!
3//! Provides scope extents (offset → scope) and definition collection for LSP
4//! (go-to-def, references, document symbols). Grammar-specific logic is passed
5//! via callbacks.
6
7mod definitions;
8mod scope_extents;
9
10pub use definitions::collect_definitions;
11pub use scope_extents::{build_scope_extents, scope_at_offset};