Repository navigation
Commit c0478d3
JS: Migrate the parser to native TypeScript 7.1
Pin the native compiler and adopt its ESM API. Project native AST nodes into the existing JSON protocol and adapt Java conversion to native fields, token kinds, namespaces, and import attributes.
Reuse one lazy API instance across files and prepare-files batches, disposing each program after serialization. Close the API on reset, quit, EOF, and failure.
Add wrapper, lifecycle, and Java regression coverage, teach the Java test harness to install native runtimes, and regenerate import-attribute expectations. Cover source-phase import bindings with a QL fixture.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 9f12f7cb-26aa-405b-a1f0-9dcc239778cb1 parent dba7357 commit c0478d3
15 files changed
Lines changed: 2185 additions & 1134 deletions
File tree
- javascript
- extractor
- lib/typescript
- src
- test
- src/com/semmle/ts/extractor
- tests/ts/output/trap
- test/com/semmle/js/extractor/test
- ql/test/library-tests/TypeScript/SourceImports
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
4 | 8 | | |
5 | | - | |
| 9 | + | |
6 | 10 | | |
7 | 11 | | |
8 | | - | |
9 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
10 | 15 | | |
11 | 16 | | |
12 | | - | |
| 17 | + | |
13 | 18 | | |
14 | 19 | | |
15 | 20 | | |
| |||
0 commit comments