mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
16 lines
361 B
Plaintext
16 lines
361 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
|