swc/crates/swc_ecma_parser
David Sherret 2bbd1e8485
feat(es/parser): Ability to get script's potential module errors (#9682)
**Description:**

In Deno I'm now parsing stuff as a program more often because I sometimes now need to discover if something is a script or es module by looking at the contents. A problem is that the module errors are discarded when parsing as a script, but I still might need them later if I discover the program the program should be treated as an ES module.

**BREAKING CHANGE:**

Adds a new method to the `Tokens` trait.
2024-10-29 09:50:14 +09:00
..
benches chore: Fix for the rebase 2024-07-12 13:13:20 +09:00
examples feat(allocator): Add maybe types (#9278) 2024-07-19 13:22:34 +09:00
scripts chore(xtask): Migrate scripts to xtask (#8072) 2023-10-06 14:44:53 +00:00
src feat(es/parser): Ability to get script's potential module errors (#9682) 2024-10-29 09:50:14 +09:00
tests fix(es/parser): Fix failure of TS instantiation followed by satisfies (#9583) 2024-10-01 11:41:58 +09:00
.gitignore test(es): Update tsc test suite (#7323) 2023-04-24 14:59:19 +00:00
Cargo.toml chore: Publish crates with swc_core v1.0.2 2024-10-17 10:54:06 +09:00
colors.js chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00