Commit 4ed6304
Fix duplicate export modifier diagnostic message
- Changed diagnostic from "export modifier must precede declare modifier" to "export modifier already seen"
- Skip adding duplicate export modifier to the modifiers list to avoid secondary validation error
- Add test case for duplicate export modifier
- Handle empty modifiers case when all modifiers are skipped
Co-authored-by: camc314 <[email protected]>1 parent 590398a commit 4ed6304
File tree
2 files changed
+7
-1
lines changed- crates/oxc_parser/src
- tasks/coverage/misc/fail
2 files changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
342 | | - | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
343 | 347 | | |
344 | 348 | | |
345 | 349 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments