feat(es/transformer): Port object rest spread to VisitMutHook pattern
Migrate ES2018 object rest spread transformation from legacy VisitMut to the new VisitMutHook architecture for better composability and maintainability. Ported core transformation logic including object spread expressions, object rest patterns, and support for functions, arrows, constructors, catch clauses, and for-loops.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
ba6f17e
1 day ago
by kdy1
+1.87%
refactor(es/transformer): Use statement_injector in object_rest_spread
Replace manual statement list manipulation with statement_injector:
- Remove exit_stmts implementation
- Add exit_stmt hook to inject pending vars using statement_injector
- Simplify exit_module_items to only handle export var declarations
- Regular statements now handled by statement_injector pattern
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
9c32a72
57 minutes ago
by kdy1
-0.16%
fix(es/transformer): Fix object rest spread in function parameters
- Fix ParamCollector::into_stmts to handle multiple patterns with object rest correctly
- Add support for class methods with object rest parameters
- Preserve default values in patterns when transforming
- Use iterative approach for proper rest element handling
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>