aggregate the tests in library-tests/Closure into a single .ql file

This commit is contained in:
Erik Krogh Kristensen
2020-10-20 13:30:05 +02:00
parent 15fe0bc38a
commit 2707531ddd
12 changed files with 175 additions and 173 deletions

View File

@@ -1,22 +0,0 @@
| tests/importFromEs6.js:9:1:9:15 | es6Module.fun() | tests/es6Module.js:3:8:3:24 | function fun() {} | 0 |
| tests/importFromEs6.js:10:1:10:18 | es6ModuleDefault() | tests/es6ModuleDefault.js:3:16:3:28 | function() {} | 0 |
| tests/importFromEs6.js:12:1:12:16 | googModule.fun() | tests/googModule.js:4:6:4:10 | () {} | 0 |
| tests/importFromEs6.js:13:1:13:19 | googModuleDefault() | tests/googModuleDefault.js:3:11:3:27 | function fun() {} | 0 |
| tests/requireFromEs6.js:12:1:12:18 | globalModule.fun() | tests/globalModule.js:4:6:4:10 | () {} | 0 |
| tests/requireFromEs6.js:13:1:13:21 | globalM ... fault() | tests/globalModuleDefault.js:3:23:3:39 | function fun() {} | 0 |
| tests/requireFromEs6.js:15:1:15:15 | es6Module.fun() | tests/es6Module.js:3:8:3:24 | function fun() {} | 0 |
| tests/requireFromEs6.js:16:1:16:18 | es6ModuleDefault() | tests/es6ModuleDefault.js:3:16:3:28 | function() {} | 0 |
| tests/requireFromEs6.js:18:1:18:16 | googModule.fun() | tests/googModule.js:4:6:4:10 | () {} | 0 |
| tests/requireFromEs6.js:19:1:19:19 | googModuleDefault() | tests/googModuleDefault.js:3:11:3:27 | function fun() {} | 0 |
| tests/requireFromGlobalModule.js:10:1:10:18 | x.y.z.global.fun() | tests/globalModule.js:4:6:4:10 | () {} | 0 |
| tests/requireFromGlobalModule.js:11:1:11:21 | x.y.z.g ... fault() | tests/globalModuleDefault.js:3:23:3:39 | function fun() {} | 0 |
| tests/requireFromGlobalModule.js:13:1:13:16 | x.y.z.goog.fun() | tests/googModule.js:4:6:4:10 | () {} | 0 |
| tests/requireFromGlobalModule.js:14:1:14:19 | x.y.z.googdefault() | tests/googModuleDefault.js:3:11:3:27 | function fun() {} | 0 |
| tests/requireFromGlobalModule.js:16:1:16:15 | x.y.z.es6.fun() | tests/es6Module.js:3:8:3:24 | function fun() {} | 0 |
| tests/requireFromGlobalModule.js:17:1:17:18 | x.y.z.es6default() | tests/es6ModuleDefault.js:3:16:3:28 | function() {} | 0 |
| tests/requireFromGoogModule.js:12:1:12:18 | globalModule.fun() | tests/globalModule.js:4:6:4:10 | () {} | 0 |
| tests/requireFromGoogModule.js:13:1:13:21 | globalM ... fault() | tests/globalModuleDefault.js:3:23:3:39 | function fun() {} | 0 |
| tests/requireFromGoogModule.js:15:1:15:15 | es6Module.fun() | tests/es6Module.js:3:8:3:24 | function fun() {} | 0 |
| tests/requireFromGoogModule.js:16:1:16:18 | es6ModuleDefault() | tests/es6ModuleDefault.js:3:16:3:28 | function() {} | 0 |
| tests/requireFromGoogModule.js:18:1:18:16 | googModule.fun() | tests/googModule.js:4:6:4:10 | () {} | 0 |
| tests/requireFromGoogModule.js:19:1:19:19 | googModuleDefault() | tests/googModuleDefault.js:3:11:3:27 | function fun() {} | 0 |

View File

@@ -1,6 +0,0 @@
import javascript
import semmle.javascript.dataflow.internal.FlowSteps
from DataFlow::InvokeNode node, Function callee
where calls(node, callee)
select node, callee, 0

View File

@@ -1 +0,0 @@
| tests/nestedAccess.js:5:1:5:12 | fooBar.x.y.z |

View File

@@ -1,3 +0,0 @@
import javascript
select Closure::moduleImport("foo.bar.x.y.z")

View File

@@ -1,4 +0,0 @@
| tests/es6Module.js:0:0:0:0 | tests/es6Module.js |
| tests/es6ModuleDefault.js:0:0:0:0 | tests/es6ModuleDefault.js |
| tests/importFromEs6.js:0:0:0:0 | tests/importFromEs6.js |
| tests/requireFromEs6.js:0:0:0:0 | tests/requireFromEs6.js |

View File

@@ -1,5 +0,0 @@
import javascript
from TopLevel tl
where tl.isStrict()
select tl.getFile()

View File

@@ -1 +0,0 @@
| tests/uri.js:5:5:5:11 | net.Uri |

View File

@@ -1,3 +0,0 @@
import javascript
select Closure::moduleImport("goog.net.Uri")

View File

@@ -1,124 +0,0 @@
| foo.bar | tests/nestedAccess.js:3:14:3:36 | goog.re ... o.bar') |
| foo.bar.x | tests/nestedAccess.js:5:1:5:8 | fooBar.x |
| foo.bar.x.y | tests/nestedAccess.js:5:1:5:10 | fooBar.x.y |
| foo.bar.x.y.z | tests/nestedAccess.js:5:1:5:12 | fooBar.x.y.z |
| goog | tests/es6Module.js:1:1:1:4 | goog |
| goog | tests/es6ModuleDefault.js:1:1:1:4 | goog |
| goog | tests/globalModule.js:1:1:1:4 | goog |
| goog | tests/globalModuleDefault.js:1:1:1:4 | goog |
| goog | tests/googModule.js:1:1:1:4 | goog |
| goog | tests/googModuleDefault.js:1:1:1:4 | goog |
| goog | tests/nestedAccess.js:1:1:1:4 | goog |
| goog | tests/nestedAccess.js:3:14:3:17 | goog |
| goog | tests/requireFromEs6.js:3:20:3:23 | goog |
| goog | tests/requireFromEs6.js:4:27:4:30 | goog |
| goog | tests/requireFromEs6.js:6:17:6:20 | goog |
| goog | tests/requireFromEs6.js:7:24:7:27 | goog |
| goog | tests/requireFromEs6.js:9:18:9:21 | goog |
| goog | tests/requireFromEs6.js:10:25:10:28 | goog |
| goog | tests/requireFromGlobalModule.js:1:1:1:4 | goog |
| goog | tests/requireFromGlobalModule.js:2:1:2:4 | goog |
| goog | tests/requireFromGlobalModule.js:4:1:4:4 | goog |
| goog | tests/requireFromGlobalModule.js:5:1:5:4 | goog |
| goog | tests/requireFromGlobalModule.js:7:1:7:4 | goog |
| goog | tests/requireFromGlobalModule.js:8:1:8:4 | goog |
| goog | tests/requireFromGoogModule.js:1:1:1:4 | goog |
| goog | tests/requireFromGoogModule.js:3:20:3:23 | goog |
| goog | tests/requireFromGoogModule.js:4:27:4:30 | goog |
| goog | tests/requireFromGoogModule.js:6:17:6:20 | goog |
| goog | tests/requireFromGoogModule.js:7:24:7:27 | goog |
| goog | tests/requireFromGoogModule.js:9:18:9:21 | goog |
| goog | tests/requireFromGoogModule.js:10:25:10:28 | goog |
| goog | tests/uri.js:1:1:1:4 | goog |
| goog | tests/uri.js:3:11:3:14 | goog |
| goog.declareModuleId | tests/es6Module.js:1:1:1:20 | goog.declareModuleId |
| goog.declareModuleId | tests/es6ModuleDefault.js:1:1:1:20 | goog.declareModuleId |
| goog.module | tests/googModule.js:1:1:1:11 | goog.module |
| goog.module | tests/googModuleDefault.js:1:1:1:11 | goog.module |
| goog.module | tests/nestedAccess.js:1:1:1:11 | goog.module |
| goog.module | tests/requireFromGoogModule.js:1:1:1:11 | goog.module |
| goog.module | tests/uri.js:1:1:1:11 | goog.module |
| goog.net | tests/uri.js:3:11:3:34 | goog.re ... g.net') |
| goog.net.Uri | tests/uri.js:5:5:5:11 | net.Uri |
| goog.provide | tests/globalModule.js:1:1:1:12 | goog.provide |
| goog.provide | tests/globalModuleDefault.js:1:1:1:12 | goog.provide |
| goog.require | tests/nestedAccess.js:3:14:3:25 | goog.require |
| goog.require | tests/requireFromEs6.js:3:20:3:31 | goog.require |
| goog.require | tests/requireFromEs6.js:4:27:4:38 | goog.require |
| goog.require | tests/requireFromEs6.js:6:17:6:28 | goog.require |
| goog.require | tests/requireFromEs6.js:7:24:7:35 | goog.require |
| goog.require | tests/requireFromEs6.js:9:18:9:29 | goog.require |
| goog.require | tests/requireFromEs6.js:10:25:10:36 | goog.require |
| goog.require | tests/requireFromGlobalModule.js:1:1:1:12 | goog.require |
| goog.require | tests/requireFromGlobalModule.js:2:1:2:12 | goog.require |
| goog.require | tests/requireFromGlobalModule.js:4:1:4:12 | goog.require |
| goog.require | tests/requireFromGlobalModule.js:5:1:5:12 | goog.require |
| goog.require | tests/requireFromGlobalModule.js:7:1:7:12 | goog.require |
| goog.require | tests/requireFromGlobalModule.js:8:1:8:12 | goog.require |
| goog.require | tests/requireFromGoogModule.js:3:20:3:31 | goog.require |
| goog.require | tests/requireFromGoogModule.js:4:27:4:38 | goog.require |
| goog.require | tests/requireFromGoogModule.js:6:17:6:28 | goog.require |
| goog.require | tests/requireFromGoogModule.js:7:24:7:35 | goog.require |
| goog.require | tests/requireFromGoogModule.js:9:18:9:29 | goog.require |
| goog.require | tests/requireFromGoogModule.js:10:25:10:36 | goog.require |
| goog.require | tests/uri.js:3:11:3:22 | goog.require |
| x | tests/globalModule.js:3:1:3:1 | x |
| x | tests/globalModuleDefault.js:3:1:3:1 | x |
| x | tests/requireFromGlobalModule.js:10:1:10:1 | x |
| x | tests/requireFromGlobalModule.js:11:1:11:1 | x |
| x | tests/requireFromGlobalModule.js:13:1:13:1 | x |
| x | tests/requireFromGlobalModule.js:14:1:14:1 | x |
| x | tests/requireFromGlobalModule.js:16:1:16:1 | x |
| x | tests/requireFromGlobalModule.js:17:1:17:1 | x |
| x.y | tests/globalModule.js:3:1:3:3 | x.y |
| x.y | tests/globalModuleDefault.js:3:1:3:3 | x.y |
| x.y | tests/requireFromGlobalModule.js:10:1:10:3 | x.y |
| x.y | tests/requireFromGlobalModule.js:11:1:11:3 | x.y |
| x.y | tests/requireFromGlobalModule.js:13:1:13:3 | x.y |
| x.y | tests/requireFromGlobalModule.js:14:1:14:3 | x.y |
| x.y | tests/requireFromGlobalModule.js:16:1:16:3 | x.y |
| x.y | tests/requireFromGlobalModule.js:17:1:17:3 | x.y |
| x.y.z | tests/globalModule.js:3:1:3:5 | x.y.z |
| x.y.z | tests/globalModuleDefault.js:3:1:3:5 | x.y.z |
| x.y.z | tests/requireFromGlobalModule.js:10:1:10:5 | x.y.z |
| x.y.z | tests/requireFromGlobalModule.js:11:1:11:5 | x.y.z |
| x.y.z | tests/requireFromGlobalModule.js:13:1:13:5 | x.y.z |
| x.y.z | tests/requireFromGlobalModule.js:14:1:14:5 | x.y.z |
| x.y.z | tests/requireFromGlobalModule.js:16:1:16:5 | x.y.z |
| x.y.z | tests/requireFromGlobalModule.js:17:1:17:5 | x.y.z |
| x.y.z.es6 | tests/requireFromEs6.js:6:17:6:41 | goog.re ... z.es6') |
| x.y.z.es6 | tests/requireFromGlobalModule.js:7:1:7:25 | goog.re ... z.es6') |
| x.y.z.es6 | tests/requireFromGlobalModule.js:16:1:16:9 | x.y.z.es6 |
| x.y.z.es6 | tests/requireFromGoogModule.js:6:17:6:41 | goog.re ... z.es6') |
| x.y.z.es6.fun | tests/requireFromEs6.js:15:1:15:13 | es6Module.fun |
| x.y.z.es6.fun | tests/requireFromGlobalModule.js:16:1:16:13 | x.y.z.es6.fun |
| x.y.z.es6.fun | tests/requireFromGoogModule.js:15:1:15:13 | es6Module.fun |
| x.y.z.es6default | tests/requireFromEs6.js:7:24:7:55 | goog.re ... fault') |
| x.y.z.es6default | tests/requireFromGlobalModule.js:8:1:8:32 | goog.re ... fault') |
| x.y.z.es6default | tests/requireFromGlobalModule.js:17:1:17:16 | x.y.z.es6default |
| x.y.z.es6default | tests/requireFromGoogModule.js:7:24:7:55 | goog.re ... fault') |
| x.y.z.global | tests/globalModule.js:3:16:5:1 | {\\n fun() {}\\n} |
| x.y.z.global | tests/requireFromEs6.js:3:20:3:47 | goog.re ... lobal') |
| x.y.z.global | tests/requireFromGlobalModule.js:1:1:1:28 | goog.re ... lobal') |
| x.y.z.global | tests/requireFromGlobalModule.js:10:1:10:12 | x.y.z.global |
| x.y.z.global | tests/requireFromGoogModule.js:3:20:3:47 | goog.re ... lobal') |
| x.y.z.global.fun | tests/globalModule.js:4:6:4:10 | () {} |
| x.y.z.global.fun | tests/requireFromEs6.js:12:1:12:16 | globalModule.fun |
| x.y.z.global.fun | tests/requireFromGlobalModule.js:10:1:10:16 | x.y.z.global.fun |
| x.y.z.global.fun | tests/requireFromGoogModule.js:12:1:12:16 | globalModule.fun |
| x.y.z.globaldefault | tests/globalModuleDefault.js:3:23:3:39 | function fun() {} |
| x.y.z.globaldefault | tests/requireFromEs6.js:4:27:4:61 | goog.re ... fault') |
| x.y.z.globaldefault | tests/requireFromGlobalModule.js:2:1:2:35 | goog.re ... fault') |
| x.y.z.globaldefault | tests/requireFromGlobalModule.js:11:1:11:19 | x.y.z.globaldefault |
| x.y.z.globaldefault | tests/requireFromGoogModule.js:4:27:4:61 | goog.re ... fault') |
| x.y.z.goog | tests/requireFromEs6.js:9:18:9:43 | goog.re ... .goog') |
| x.y.z.goog | tests/requireFromGlobalModule.js:4:1:4:26 | goog.re ... .goog') |
| x.y.z.goog | tests/requireFromGlobalModule.js:13:1:13:10 | x.y.z.goog |
| x.y.z.goog | tests/requireFromGoogModule.js:9:18:9:43 | goog.re ... .goog') |
| x.y.z.goog.fun | tests/requireFromEs6.js:18:1:18:14 | googModule.fun |
| x.y.z.goog.fun | tests/requireFromGlobalModule.js:13:1:13:14 | x.y.z.goog.fun |
| x.y.z.goog.fun | tests/requireFromGoogModule.js:18:1:18:14 | googModule.fun |
| x.y.z.googdefault | tests/requireFromEs6.js:10:25:10:57 | goog.re ... fault') |
| x.y.z.googdefault | tests/requireFromGlobalModule.js:5:1:5:33 | goog.re ... fault') |
| x.y.z.googdefault | tests/requireFromGlobalModule.js:14:1:14:17 | x.y.z.googdefault |
| x.y.z.googdefault | tests/requireFromGoogModule.js:10:25:10:57 | goog.re ... fault') |

View File

@@ -1,4 +0,0 @@
import javascript
from string name
select name, Closure::moduleImport(name)

View File

@@ -0,0 +1,157 @@
callGraph
| tests/importFromEs6.js:9:1:9:15 | es6Module.fun() | tests/es6Module.js:3:8:3:24 | function fun() {} |
| tests/importFromEs6.js:10:1:10:18 | es6ModuleDefault() | tests/es6ModuleDefault.js:3:16:3:28 | function() {} |
| tests/importFromEs6.js:12:1:12:16 | googModule.fun() | tests/googModule.js:4:6:4:10 | () {} |
| tests/importFromEs6.js:13:1:13:19 | googModuleDefault() | tests/googModuleDefault.js:3:11:3:27 | function fun() {} |
| tests/requireFromEs6.js:12:1:12:18 | globalModule.fun() | tests/globalModule.js:4:6:4:10 | () {} |
| tests/requireFromEs6.js:13:1:13:21 | globalM ... fault() | tests/globalModuleDefault.js:3:23:3:39 | function fun() {} |
| tests/requireFromEs6.js:15:1:15:15 | es6Module.fun() | tests/es6Module.js:3:8:3:24 | function fun() {} |
| tests/requireFromEs6.js:16:1:16:18 | es6ModuleDefault() | tests/es6ModuleDefault.js:3:16:3:28 | function() {} |
| tests/requireFromEs6.js:18:1:18:16 | googModule.fun() | tests/googModule.js:4:6:4:10 | () {} |
| tests/requireFromEs6.js:19:1:19:19 | googModuleDefault() | tests/googModuleDefault.js:3:11:3:27 | function fun() {} |
| tests/requireFromGlobalModule.js:10:1:10:18 | x.y.z.global.fun() | tests/globalModule.js:4:6:4:10 | () {} |
| tests/requireFromGlobalModule.js:11:1:11:21 | x.y.z.g ... fault() | tests/globalModuleDefault.js:3:23:3:39 | function fun() {} |
| tests/requireFromGlobalModule.js:13:1:13:16 | x.y.z.goog.fun() | tests/googModule.js:4:6:4:10 | () {} |
| tests/requireFromGlobalModule.js:14:1:14:19 | x.y.z.googdefault() | tests/googModuleDefault.js:3:11:3:27 | function fun() {} |
| tests/requireFromGlobalModule.js:16:1:16:15 | x.y.z.es6.fun() | tests/es6Module.js:3:8:3:24 | function fun() {} |
| tests/requireFromGlobalModule.js:17:1:17:18 | x.y.z.es6default() | tests/es6ModuleDefault.js:3:16:3:28 | function() {} |
| tests/requireFromGoogModule.js:12:1:12:18 | globalModule.fun() | tests/globalModule.js:4:6:4:10 | () {} |
| tests/requireFromGoogModule.js:13:1:13:21 | globalM ... fault() | tests/globalModuleDefault.js:3:23:3:39 | function fun() {} |
| tests/requireFromGoogModule.js:15:1:15:15 | es6Module.fun() | tests/es6Module.js:3:8:3:24 | function fun() {} |
| tests/requireFromGoogModule.js:16:1:16:18 | es6ModuleDefault() | tests/es6ModuleDefault.js:3:16:3:28 | function() {} |
| tests/requireFromGoogModule.js:18:1:18:16 | googModule.fun() | tests/googModule.js:4:6:4:10 | () {} |
| tests/requireFromGoogModule.js:19:1:19:19 | googModuleDefault() | tests/googModuleDefault.js:3:11:3:27 | function fun() {} |
moduleImport
| tests/es6Module.js:1:1:1:4 | goog | goog |
| tests/es6Module.js:1:1:1:20 | goog.declareModuleId | goog.declareModuleId |
| tests/es6ModuleDefault.js:1:1:1:4 | goog | goog |
| tests/es6ModuleDefault.js:1:1:1:20 | goog.declareModuleId | goog.declareModuleId |
| tests/globalModule.js:1:1:1:4 | goog | goog |
| tests/globalModule.js:1:1:1:12 | goog.provide | goog.provide |
| tests/globalModule.js:3:1:3:1 | x | x |
| tests/globalModule.js:3:1:3:3 | x.y | x.y |
| tests/globalModule.js:3:1:3:5 | x.y.z | x.y.z |
| tests/globalModule.js:3:16:5:1 | {\\n fun() {}\\n} | x.y.z.global |
| tests/globalModule.js:4:6:4:10 | () {} | x.y.z.global.fun |
| tests/globalModuleDefault.js:1:1:1:4 | goog | goog |
| tests/globalModuleDefault.js:1:1:1:12 | goog.provide | goog.provide |
| tests/globalModuleDefault.js:3:1:3:1 | x | x |
| tests/globalModuleDefault.js:3:1:3:3 | x.y | x.y |
| tests/globalModuleDefault.js:3:1:3:5 | x.y.z | x.y.z |
| tests/globalModuleDefault.js:3:23:3:39 | function fun() {} | x.y.z.globaldefault |
| tests/googModule.js:1:1:1:4 | goog | goog |
| tests/googModule.js:1:1:1:11 | goog.module | goog.module |
| tests/googModuleDefault.js:1:1:1:4 | goog | goog |
| tests/googModuleDefault.js:1:1:1:11 | goog.module | goog.module |
| tests/nestedAccess.js:1:1:1:4 | goog | goog |
| tests/nestedAccess.js:1:1:1:11 | goog.module | goog.module |
| tests/nestedAccess.js:3:14:3:17 | goog | goog |
| tests/nestedAccess.js:3:14:3:25 | goog.require | goog.require |
| tests/nestedAccess.js:3:14:3:36 | goog.re ... o.bar') | foo.bar |
| tests/nestedAccess.js:5:1:5:8 | fooBar.x | foo.bar.x |
| tests/nestedAccess.js:5:1:5:10 | fooBar.x.y | foo.bar.x.y |
| tests/nestedAccess.js:5:1:5:12 | fooBar.x.y.z | foo.bar.x.y.z |
| tests/requireFromEs6.js:3:20:3:23 | goog | goog |
| tests/requireFromEs6.js:3:20:3:31 | goog.require | goog.require |
| tests/requireFromEs6.js:3:20:3:47 | goog.re ... lobal') | x.y.z.global |
| tests/requireFromEs6.js:4:27:4:30 | goog | goog |
| tests/requireFromEs6.js:4:27:4:38 | goog.require | goog.require |
| tests/requireFromEs6.js:4:27:4:61 | goog.re ... fault') | x.y.z.globaldefault |
| tests/requireFromEs6.js:6:17:6:20 | goog | goog |
| tests/requireFromEs6.js:6:17:6:28 | goog.require | goog.require |
| tests/requireFromEs6.js:6:17:6:41 | goog.re ... z.es6') | x.y.z.es6 |
| tests/requireFromEs6.js:7:24:7:27 | goog | goog |
| tests/requireFromEs6.js:7:24:7:35 | goog.require | goog.require |
| tests/requireFromEs6.js:7:24:7:55 | goog.re ... fault') | x.y.z.es6default |
| tests/requireFromEs6.js:9:18:9:21 | goog | goog |
| tests/requireFromEs6.js:9:18:9:29 | goog.require | goog.require |
| tests/requireFromEs6.js:9:18:9:43 | goog.re ... .goog') | x.y.z.goog |
| tests/requireFromEs6.js:10:25:10:28 | goog | goog |
| tests/requireFromEs6.js:10:25:10:36 | goog.require | goog.require |
| tests/requireFromEs6.js:10:25:10:57 | goog.re ... fault') | x.y.z.googdefault |
| tests/requireFromEs6.js:12:1:12:16 | globalModule.fun | x.y.z.global.fun |
| tests/requireFromEs6.js:15:1:15:13 | es6Module.fun | x.y.z.es6.fun |
| tests/requireFromEs6.js:18:1:18:14 | googModule.fun | x.y.z.goog.fun |
| tests/requireFromGlobalModule.js:1:1:1:4 | goog | goog |
| tests/requireFromGlobalModule.js:1:1:1:12 | goog.require | goog.require |
| tests/requireFromGlobalModule.js:1:1:1:28 | goog.re ... lobal') | x.y.z.global |
| tests/requireFromGlobalModule.js:2:1:2:4 | goog | goog |
| tests/requireFromGlobalModule.js:2:1:2:12 | goog.require | goog.require |
| tests/requireFromGlobalModule.js:2:1:2:35 | goog.re ... fault') | x.y.z.globaldefault |
| tests/requireFromGlobalModule.js:4:1:4:4 | goog | goog |
| tests/requireFromGlobalModule.js:4:1:4:12 | goog.require | goog.require |
| tests/requireFromGlobalModule.js:4:1:4:26 | goog.re ... .goog') | x.y.z.goog |
| tests/requireFromGlobalModule.js:5:1:5:4 | goog | goog |
| tests/requireFromGlobalModule.js:5:1:5:12 | goog.require | goog.require |
| tests/requireFromGlobalModule.js:5:1:5:33 | goog.re ... fault') | x.y.z.googdefault |
| tests/requireFromGlobalModule.js:7:1:7:4 | goog | goog |
| tests/requireFromGlobalModule.js:7:1:7:12 | goog.require | goog.require |
| tests/requireFromGlobalModule.js:7:1:7:25 | goog.re ... z.es6') | x.y.z.es6 |
| tests/requireFromGlobalModule.js:8:1:8:4 | goog | goog |
| tests/requireFromGlobalModule.js:8:1:8:12 | goog.require | goog.require |
| tests/requireFromGlobalModule.js:8:1:8:32 | goog.re ... fault') | x.y.z.es6default |
| tests/requireFromGlobalModule.js:10:1:10:1 | x | x |
| tests/requireFromGlobalModule.js:10:1:10:3 | x.y | x.y |
| tests/requireFromGlobalModule.js:10:1:10:5 | x.y.z | x.y.z |
| tests/requireFromGlobalModule.js:10:1:10:12 | x.y.z.global | x.y.z.global |
| tests/requireFromGlobalModule.js:10:1:10:16 | x.y.z.global.fun | x.y.z.global.fun |
| tests/requireFromGlobalModule.js:11:1:11:1 | x | x |
| tests/requireFromGlobalModule.js:11:1:11:3 | x.y | x.y |
| tests/requireFromGlobalModule.js:11:1:11:5 | x.y.z | x.y.z |
| tests/requireFromGlobalModule.js:11:1:11:19 | x.y.z.globaldefault | x.y.z.globaldefault |
| tests/requireFromGlobalModule.js:13:1:13:1 | x | x |
| tests/requireFromGlobalModule.js:13:1:13:3 | x.y | x.y |
| tests/requireFromGlobalModule.js:13:1:13:5 | x.y.z | x.y.z |
| tests/requireFromGlobalModule.js:13:1:13:10 | x.y.z.goog | x.y.z.goog |
| tests/requireFromGlobalModule.js:13:1:13:14 | x.y.z.goog.fun | x.y.z.goog.fun |
| tests/requireFromGlobalModule.js:14:1:14:1 | x | x |
| tests/requireFromGlobalModule.js:14:1:14:3 | x.y | x.y |
| tests/requireFromGlobalModule.js:14:1:14:5 | x.y.z | x.y.z |
| tests/requireFromGlobalModule.js:14:1:14:17 | x.y.z.googdefault | x.y.z.googdefault |
| tests/requireFromGlobalModule.js:16:1:16:1 | x | x |
| tests/requireFromGlobalModule.js:16:1:16:3 | x.y | x.y |
| tests/requireFromGlobalModule.js:16:1:16:5 | x.y.z | x.y.z |
| tests/requireFromGlobalModule.js:16:1:16:9 | x.y.z.es6 | x.y.z.es6 |
| tests/requireFromGlobalModule.js:16:1:16:13 | x.y.z.es6.fun | x.y.z.es6.fun |
| tests/requireFromGlobalModule.js:17:1:17:1 | x | x |
| tests/requireFromGlobalModule.js:17:1:17:3 | x.y | x.y |
| tests/requireFromGlobalModule.js:17:1:17:5 | x.y.z | x.y.z |
| tests/requireFromGlobalModule.js:17:1:17:16 | x.y.z.es6default | x.y.z.es6default |
| tests/requireFromGoogModule.js:1:1:1:4 | goog | goog |
| tests/requireFromGoogModule.js:1:1:1:11 | goog.module | goog.module |
| tests/requireFromGoogModule.js:3:20:3:23 | goog | goog |
| tests/requireFromGoogModule.js:3:20:3:31 | goog.require | goog.require |
| tests/requireFromGoogModule.js:3:20:3:47 | goog.re ... lobal') | x.y.z.global |
| tests/requireFromGoogModule.js:4:27:4:30 | goog | goog |
| tests/requireFromGoogModule.js:4:27:4:38 | goog.require | goog.require |
| tests/requireFromGoogModule.js:4:27:4:61 | goog.re ... fault') | x.y.z.globaldefault |
| tests/requireFromGoogModule.js:6:17:6:20 | goog | goog |
| tests/requireFromGoogModule.js:6:17:6:28 | goog.require | goog.require |
| tests/requireFromGoogModule.js:6:17:6:41 | goog.re ... z.es6') | x.y.z.es6 |
| tests/requireFromGoogModule.js:7:24:7:27 | goog | goog |
| tests/requireFromGoogModule.js:7:24:7:35 | goog.require | goog.require |
| tests/requireFromGoogModule.js:7:24:7:55 | goog.re ... fault') | x.y.z.es6default |
| tests/requireFromGoogModule.js:9:18:9:21 | goog | goog |
| tests/requireFromGoogModule.js:9:18:9:29 | goog.require | goog.require |
| tests/requireFromGoogModule.js:9:18:9:43 | goog.re ... .goog') | x.y.z.goog |
| tests/requireFromGoogModule.js:10:25:10:28 | goog | goog |
| tests/requireFromGoogModule.js:10:25:10:36 | goog.require | goog.require |
| tests/requireFromGoogModule.js:10:25:10:57 | goog.re ... fault') | x.y.z.googdefault |
| tests/requireFromGoogModule.js:12:1:12:16 | globalModule.fun | x.y.z.global.fun |
| tests/requireFromGoogModule.js:15:1:15:13 | es6Module.fun | x.y.z.es6.fun |
| tests/requireFromGoogModule.js:18:1:18:14 | googModule.fun | x.y.z.goog.fun |
| tests/uri.js:1:1:1:4 | goog | goog |
| tests/uri.js:1:1:1:11 | goog.module | goog.module |
| tests/uri.js:3:11:3:14 | goog | goog |
| tests/uri.js:3:11:3:22 | goog.require | goog.require |
| tests/uri.js:3:11:3:34 | goog.re ... g.net') | goog.net |
| tests/uri.js:5:5:5:11 | net.Uri | goog.net.Uri |
nestedAccess
| tests/nestedAccess.js:5:1:5:12 | fooBar.x.y.z |
strictMode
| tests/es6Module.js:1:1:4:0 | <toplevel> | tests/es6Module.js:0:0:0:0 | tests/es6Module.js |
| tests/es6ModuleDefault.js:1:1:4:0 | <toplevel> | tests/es6ModuleDefault.js:0:0:0:0 | tests/es6ModuleDefault.js |
| tests/importFromEs6.js:1:1:14:0 | <toplevel> | tests/importFromEs6.js:0:0:0:0 | tests/importFromEs6.js |
| tests/requireFromEs6.js:1:1:20:0 | <toplevel> | tests/requireFromEs6.js:0:0:0:0 | tests/requireFromEs6.js |
uri
| tests/uri.js:5:5:5:11 | net.Uri |

View File

@@ -0,0 +1,18 @@
import javascript
import semmle.javascript.dataflow.internal.FlowSteps as FlowSteps
query predicate callGraph(DataFlow::InvokeNode node, Function callee) {
FlowSteps::calls(node, callee)
}
query predicate moduleImport(DataFlow::SourceNode imp, string name) {
imp = Closure::moduleImport(name)
}
query predicate nestedAccess(DataFlow::SourceNode imp) {
imp = Closure::moduleImport("foo.bar.x.y.z")
}
query predicate strictMode(TopLevel tl, File file) { tl.isStrict() and file = tl.getFile() }
query predicate uri(DataFlow::SourceNode imp) { imp = Closure::moduleImport("goog.net.Uri") }