Expand description
OXC Code Generation module
This module provides code generation from the transformed AST to JavaScript source code.
DIAGNOSTIC LOGGING:
- Tracks codegen lifecycle and memory access patterns
Structs§
- Codegen
Config - Codegen configuration options
- Codegen
Result - Result of code generation
Statics§
- CODEGEN_
COUNT 🔒 - Generate JavaScript source code from a transformed AST
Functions§
- codegen
- transform_
static_ 🔒class_ properties - Post-process generated JavaScript to match VSCode’s static class property
format. Converts
static x = expr;intostatic { this.x = expr; }. This is needed because OXC 0.48’s class properties plugin does not emit legacy static initializer blocks by default. - write_
output - Write the generated code to a file