mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
12 lines
349 B
Plaintext
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
|