No successful run was found on main (27329c1) during the generation of this report, so 686d154 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.
feat: Implement private property in object transform for ES2022
Ported the private-in-object transform to the new VisitMutHook system.
This transform converts `#private in object` expressions into WeakSet-based
brand checks as specified by the TC39 proposal.
Key changes:
- Implemented PrivatePropertyInObjectPass with VisitMutHook<TraverseCtx>
- Added necessary hooks to hook_utils.rs (enter/exit for class_decl, class_expr, assign_pat, private_prop)
- Integrated the hook into es2022/mod.rs using HookBuilder pattern
- Handles private fields, methods, and static members correctly
- Optimizes static methods to use simple === comparison
- All tests passing (swc_ecma_compat_es2022, swc_ecma_transforms_compat, projects, tsc)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>