Skip to main content

code_moniker_core/lang/sdk/
mod.rs

1//! Shared extraction SDK for the target multi-pass language pipeline.
2//!
3//! This module is intentionally separate from `canonical_walker` and
4//! `LangStrategy`. It defines the stable IR exchanged by the target phases:
5//! discover definitions and imports, elaborate unresolved references, resolve
6//! them locally, then emit the public `CodeGraph`.
7
8mod emit;
9mod imports;
10mod model;
11mod resolve;
12mod scope;
13mod types;
14
15pub use emit::{EmitError, GraphEmitter};
16pub use imports::{
17	ImportLeaf, ImportLeafKind, ImportTree, flatten_import_tree, import_leaf_binding_name,
18	importable_parent,
19};
20pub use model::{
21	DefIndex, DefNameKey, DiscoveredDef, DiscoveredFile, ImportKind, ImportTable, ImportTarget,
22	RefHints, ResolvedRef, TargetExpr, UnresolvedRef,
23};
24pub use resolve::{LangResolverStrategy, LocalResolver, Resolution};
25pub use scope::{Namespace, Rib, Scope, ScopeId, ScopeTree};
26pub use types::{TypeEnv, TypeExpr};