Expand description
Code generation from JS AST to Zig source code. Main module: struct definitions, helpers, public API.
Structs§
- Cabi
Export - Metadata for a C ABI exported function, used by sys crate to generate Rust FFI bindings.
Functions§
- collect_
binding_ names - Collect all leaf identifier names from a BindingPattern. Used by preprocess and infer to register variable names without access paths.
- collect_
binding_ names_ with_ spans - Collect all leaf identifier names and their spans from a BindingPattern. Used by preprocess for rename edits.
- generate
- is_
simple_ binding - Check whether a BindingPattern is just a simple identifier (no destructuring).
Type Aliases§
- Codegen
Result - Return type for codegen::generate: (zig_code, diagnostics, closure_fns, fn_return_types, cabi_exports, source_map)