mirror of
https://github.com/hanzoai/swc.git
synced 2026-10-30 19:42:53 +00:00
## 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`
4 lines
31 B
JSON
4 lines
31 B
JSON
{
|
|
"requireDirective": true
|
|
}
|