Function lower_module
pub fn lower_module(
module: &Module,
entry: Option<&str>,
bindings: &[(&str, StaticBindingValue<'_>)],
) -> Result<CompiledModel, Vec<Diagnostic>>Description
Type-lower one client-neutral native model draft.
Native declarations skip parsing but still go through name, dimension, activation, expression-DAG, and transaction lowering. Diagnostics identify them by stable declaration paths instead of synthetic source ranges.
ยงErrors
Returns graph-path diagnostics for invalid native declarations. No partial transaction is returned.