Files
Donny/강동윤andGitHub 82abae03d5 feat(es/parser): add flow syntax mode and strip integration (#11685)
## Summary
- add `Syntax::Flow(FlowSyntax)` and expose Flow parser options (`jsx`,
`all`, `require_directive`, `enums`)
- extend parser syntax flags/helpers with Flow bits and `types_like()`
gating so Flow shares type-aware parsing paths
- parse/normalize Flow type syntax into existing `Ts*` nodes so strip
can remove type-only constructs without adding a new Flow AST
- wire Flow mode into parser+swc fixture coverage, including
`require_directive` and Flow strip e2e fixtures

## Testing
- `git submodule update --init --recursive`
- `cargo test -p swc_ecma_parser`
- `cargo test -p swc_ecma_parser --test flow -- --ignored`
- `cargo test -p swc --test projects -- --ignored flow_strip`
- `cargo clippy -p swc_ecma_parser -p swc --all-targets -- -D warnings`
2026-03-16 01:10:48 -07:00
..