oxc/tasks/coverage/snapshots
DonIsaac 58467a53a1 feat(parser): better handling of invalid modifiers (#6482)
## What This PR Does

1. Recover on, and provide a better message for, invalid `export` modifier on constructor parameters. Before, an `unexpected token` error would be produced and the parser would panic. Now, the parser recovers and produces a message saying `'export' modifier cannot appear on a parameter.`
  ```ts
class Foo {
    constructor(export x: number) {}
}
  ```

2. Recover on, and provide a better message for, invalid modifiers on index signatures. Same recovery/message characteristics as above.
  ```ts
class Foo {
    public [x: string]: string;
}
```
2024-10-13 03:16:02 +00:00
..
codegen_babel.snap
codegen_misc.snap fix(semantic): ? on variable declaration type annotations is a syntax error (#5956) 2024-09-22 00:01:47 +00:00
codegen_runtime_test262.snap
codegen_test262.snap feat(regular_expression): Support RegExp Modifiers (#6410) 2024-10-10 14:46:17 +00:00
codegen_typescript.snap
minifier_babel.snap
minifier_test262.snap feat(regular_expression): Support RegExp Modifiers (#6410) 2024-10-10 14:46:17 +00:00
parser_babel.snap feat(parser): better errors for reserved words used as identifier names (#6478) 2024-10-13 03:16:01 +00:00
parser_misc.snap fix(parser): do not parse as and satisfies expression in javascript (#6442) 2024-10-11 03:31:24 +00:00
parser_test262.snap feat(parser): better errors for reserved words used as identifier names (#6478) 2024-10-13 03:16:01 +00:00
parser_typescript.snap feat(parser): better handling of invalid modifiers (#6482) 2024-10-13 03:16:02 +00:00
prettier_babel.snap
prettier_misc.snap
prettier_test262.snap
prettier_typescript.snap
semantic_babel.snap refactor(ast): type params field before params in TS function declaration types (#6391) 2024-10-11 09:57:28 +00:00
semantic_misc.snap test(transformer): transform checker output symbol name for mismatches (#6286) 2024-10-05 14:42:06 +00:00
semantic_test262.snap feat(regular_expression): Support RegExp Modifiers (#6410) 2024-10-10 14:46:17 +00:00
semantic_typescript.snap refactor(ast): type params field before params in TS function declaration types (#6391) 2024-10-11 09:57:28 +00:00
transformer_babel.snap
transformer_misc.snap fix(semantic): ? on variable declaration type annotations is a syntax error (#5956) 2024-09-22 00:01:47 +00:00
transformer_test262.snap feat(regular_expression): Support RegExp Modifiers (#6410) 2024-10-10 14:46:17 +00:00
transformer_typescript.snap
transpile.snap