mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
This is currently semi-works -- the import is allowed, but doesn't always work when used :|
19 lines
449 B
Plaintext
19 lines
449 B
Plaintext
private import python
|
|
private import semmle.python.ApiGraphs
|
|
|
|
query API::Node moduleImportWithDots() { result = API::moduleImport("a.b.c.d") }
|
|
|
|
query API::CallNode doesntFullyWork() {
|
|
result = API::moduleImport("a.b.c.d").getMember("method").getACall()
|
|
}
|
|
|
|
query API::CallNode works() {
|
|
result =
|
|
API::moduleImport("a")
|
|
.getMember("b")
|
|
.getMember("c")
|
|
.getMember("d")
|
|
.getMember("method")
|
|
.getACall()
|
|
}
|