mirror of
https://github.com/hanzoai/swc.git
synced 2026-10-30 19:42:53 +00:00
## Summary - expand Flow parser fixture coverage for strip-focused high-signal syntax boundaries - add success fixtures for declare export type/interface/opaque type, named declare export default forms, opaque variants, import typeof forms, object boundary forms, and block-comment pragma variants - add error fixtures for @noflow directive behavior and Flow variance misuse on methods ## Notes - no parser/runtime code changes were required; new coverage passes with existing implementation ## Verification - git submodule update --init --recursive - UPDATE=1 cargo test -p swc_ecma_parser --test flow --features flow -- --ignored --nocapture - cargo test -p swc_ecma_parser --test flow --features flow -- --ignored --nocapture - cargo test -p swc --test flow_strip_correctness --features flow -- --ignored --nocapture - cargo test -p swc --test projects flow_strip -- --ignored --nocapture - cargo fmt --all - cargo clippy --all --all-targets -- -D warnings - cargo test -p swc_ecma_parser
15 lines
335 B
Plaintext
15 lines
335 B
Plaintext
x Modifiers cannot appear here
|
|
,-[$DIR/tests/flow-errors/class-variance-method/basic.js:2:1]
|
|
1 | class C {
|
|
2 | +m(): number {
|
|
: ^
|
|
3 | return 1;
|
|
`----
|
|
x Modifiers cannot appear here
|
|
,-[$DIR/tests/flow-errors/class-variance-method/basic.js:6:1]
|
|
5 |
|
|
6 | -n(): number {
|
|
: ^
|
|
7 | return 2;
|
|
`----
|