dsl-resolve 3.0.0

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

pub mod binding;
pub mod resolver;
pub mod scope;

pub use binding::Binding;
pub use resolver::{resolve, resolve_with_source};
pub use scope::Scope;