Expand description
Unified type checking pass.
Computes both structural arity (for field validation) and data flow types (for TypeScript emission) in a single traversal.
Structs§
- DefId
- A lightweight handle to a named definition.
- Field
Info - Field information within a struct type.
- Interner
- String interner. Deduplicates strings and returns cheap Symbol handles.
- Symbol
- A lightweight handle to an interned string.
- Term
Info - Combined arity and type flow information for an expression.
- Type
Context - Central registry for types, symbols, and expression metadata.
- TypeId
- Interned type identifier.
Enums§
- Arity
- Structural arity - whether an expression matches one or many positions.
- Quantifier
Kind - Quantifier kind for pattern matching.
- Type
Flow - Data flow through an expression.
- Type
Shape - The shape of an inferred type, determining its structure.
- Unify
Error - Error during type unification.
Constants§
Functions§
- infer_
types - Run type inference on all definitions.
- primary_
def_ name - Get the primary definition name (first non-underscore, or underscore if none).
- unify_
flow - Unify two TypeFlows from alternation branches.
- unify_
flows - Unify multiple flows from alternation branches.