Expand description
Code generation for ReluxScript
Generates both Babel (JavaScript) and SWC (Rust) plugin code from ReluxScript AST.
Re-exports§
pub use type_context::TypeContext;pub use type_context::TypeEnvironment;pub use type_context::SwcTypeKind;pub use swc_patterns::SwcPatternGenerator;pub use swc_decorator::SwcDecorator;pub use swc_rewriter::SwcRewriter;pub use swc_hoister::SwcHoister;pub use swc_emit::SwcEmitter;pub use swc_metadata::*;pub use decorated_ast::*;
Modules§
- decorated_
ast - Decorated AST for SWC code generation
- swc_
decorator - SWC Decorator - Transforms parser AST into decorated AST with SWC semantics
- swc_
emit - SWC Emitter - Emits Rust code from decorated/rewritten AST
- swc_
hoister - SWC Hoister - Extracts inline visitor structs from traverse statements
- swc_
metadata - SWC-specific metadata attached to AST nodes during decoration phase
- swc_
patterns - Pattern-based SWC code generation
- swc_
rewriter - SWC Rewriter - Transforms decorated AST to prepare it for dumb codegen
- type_
context - Type context for type-aware SWC code generation
Structs§
- Babel
Generator - Generator for Babel plugin JavaScript code
- Generated
Code - Result of code generation
- SwcGenerator
- Stub generator for SWC plugin Rust code
Enums§
- Target
- Target platform for code generation
Functions§
- generate
- Generate code for the given target(s)
- generate_
with_ types - Generate code with semantic type information (for better type inference)