JS: Preserve information about 'defer' keyword

This commit is contained in:
Asger F
2025-09-05 11:19:04 +02:00
parent 76ca1a576f
commit 215602c963
12 changed files with 71 additions and 14 deletions

View File

@@ -1 +1 @@
| tst.ts:1:1:1:31 | import ... m "fs"; |
| tst.ts:1:1:1:44 | import ... where"; |

View File

@@ -1,5 +1,3 @@
import javascript
from ImportDeclaration decl
select decl
query predicate deferredImports(ImportDeclaration decl) { decl.isDeferredImport() }

View File

@@ -1 +1,4 @@
import defer * as fs from "fs";
import defer * as deferred from "somewhere";
import type * as t from "somewhere";
import * as normal from "somewhere";
import defer from "somewhere";