mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
JS: Preserve information about 'defer' keyword
This commit is contained in:
@@ -1 +1 @@
|
||||
| tst.ts:1:1:1:31 | import ... m "fs"; |
|
||||
| tst.ts:1:1:1:44 | import ... where"; |
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import javascript
|
||||
|
||||
from ImportDeclaration decl
|
||||
select decl
|
||||
|
||||
query predicate deferredImports(ImportDeclaration decl) { decl.isDeferredImport() }
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user