Skip to main content

Module native_proto

Module native_proto 

Source
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).
ExportedFunction
An exported function from a JS file.
JSDocData
JSDoc 解析结果,传递给 Codegen
NativeCabiExport
C ABI export metadata for a single function. Used by pipeline.rs to generate C ABI wrappers.
TranspileResult
Result of transpiling a JS file to Zig. Contains the generated Zig source AND metadata needed by the pipeline (exported functions, diagnostics, etc.).
TypeCheckResult
Complete type-checking result computed by TypeInferrer. Codegen reads from this during the code-generation pass — no writes.

Enums§

DiagnosticKind
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).