Skip to main content

dsl_resolve/
lib.rs

1//! Name resolution and scope inference for duck-sqllsp.
2//!
3//! Given a parsed [`Statement`](dsl_parse::Statement), build a [`Scope`]
4//! describing which tables and aliases are visible inside it. Downstream
5//! completion + analysis crates consume scopes instead of re-deriving
6//! alias maps every time.
7//!
8//! Surface stays intentionally small:
9//!   - [`Scope`], [`Binding`] -- the resolved bindings inside one statement.
10//!   - [`resolve`] -- resolve every statement in a parsed file.
11
12pub mod binding;
13pub mod resolver;
14pub mod scope;
15
16pub use binding::Binding;
17pub use resolver::{resolve, resolve_with_source};
18pub use scope::Scope;