Expand description
Prototype: native-type system (anytype + @TypeOf). Work in progress, not integrated into pipeline yet.
Structs§
- Codegen
- Shared state for native-type codegen.
- Diagnostic
- A single diagnostic message (compile error/warning).
- Exported
Function - An exported function from a JS file.
- JSDoc
Data - JSDoc 解析结果,传递给 Codegen
- Native
Cabi Export - C ABI export metadata for a single function. Used by pipeline.rs to generate C ABI wrappers.
- Transpile
Result - Result of transpiling a JS file to Zig. Contains the generated Zig source AND metadata needed by the pipeline (exported functions, diagnostics, etc.).
- Type
Check Result - Complete type-checking result computed by TypeInferrer. Codegen reads from this during the code-generation pass — no writes.
Enums§
- Diagnostic
Kind - Diagnostic severity level.
- ZigType
- Zig type representation for type inference. Only static types are supported; unknown types are compile errors.
Functions§
- transpile_
js - Transpile JS source text to Zig (native type system).