Expand description
relon_analyzer::SchemaDef -> crate::schema_canonical::Schema
conversion.
The wasm AOT backend needs a deterministic, ABI-shaped view of a
schema so it can compute the same relon.abi hash both at codegen
time (host side) and at validation time (wasm-blob loader). The
analyzer’s SchemaDef is the static skeleton the rest of the
pipeline reasons about; this module strips it down to the field
(name, type) pairs the binary layout cares about.
Phase 2.b scope: only Int / Float / Bool field types
are supported by lower_schema_def; the function is used to
lower the synthesised MainParams schema. Pointer-indirect leaves
(String, List<Int>) and nested branded schemas are constructed
directly inside the IR lowering pass (it has access to the
analyzer’s schema table for cross-schema resolution).
Enums§
- Schema
Lower Error - Reasons schema lowering can fail.
Functions§
- lower_
schema_ def - Lower a
SchemaDefto its canonicalSchemaform. - lower_
type_ node - Lower a single
TypeNodeto aTypeRepr. Rejects every composite / variable-size type — seeSchemaLowerError.