SIGN IN SIGN UP
facebook / react UNCLAIMED

The library for web and native user interfaces.

0 0 117 JavaScript

[rust-compiler] Fix OXC scope info, rest params, class decl, and test normalization

Major OXC scope info fixes:
- Fix function parameter binding kind (FormalParameter before FunctionScopedVariable)
- Fix catch parameter and rest parameter binding kinds
- Add object method scope mapping for property positions
- Handle TS type alias/enum/module bindings

AST conversion fixes:
- Include rest parameters in function param conversion
- Fix optional chain base expression conversion
- Implement ClassDeclaration reverse conversion
- Add TS declaration source text extraction
- Script source type detection via @script pragma

Test normalization improvements:
- HTML entity and unicode quote normalization
- Multi-line ternary collapsing and block comment stripping
- JSX paren wrapping normalization

OXC e2e results: 1467 → 1695 passing. SWC remains at 1717/1717.
J
Joe Savona committed
1a1b6aeebfc196200e3904dcbf36a7e42ffbf632
Parent: b533d50