Files
codeql/javascript/ql/test/library-tests/ModuleImportNodes/CustomImport.ql
Anders Schack-Mulligen ca45fb5a60 JavaScript: Autoformat.
2019-09-06 09:04:51 +02:00

12 lines
349 B
Plaintext

import javascript
class CustomImport extends DataFlow::ModuleImportNode::Range, DataFlow::CallNode {
CustomImport() { getCalleeName() = "customImport" }
override string getPath() { result = getArgument(0).getStringValue() }
}
from string path, CustomImport imprt
where imprt = DataFlow::moduleImport(path)
select path, imprt.getPath(), imprt