mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
add edge from root type MkHasUnderlyingType
This commit is contained in:
@@ -386,6 +386,8 @@ module API {
|
||||
imports(_, m)
|
||||
or
|
||||
m = any(CanonicalName n | isUsed(n)).getExternalModuleName()
|
||||
or
|
||||
any(TypeAnnotation n).hasQualifiedName(m, _)
|
||||
} or
|
||||
MkClassInstance(DataFlow::ClassNode cls) { cls = trackDefNode(_) and hasSemantics(cls) } or
|
||||
MkAsyncFuncResult(DataFlow::FunctionNode f) {
|
||||
@@ -902,6 +904,12 @@ module API {
|
||||
succ in [mkCanonicalNameDef(cn2), mkCanonicalNameUse(cn2)]
|
||||
)
|
||||
or
|
||||
exists(string moduleName, string exportName |
|
||||
pred = MkModuleImport(moduleName) and
|
||||
lbl = Label::member(exportName) and
|
||||
succ = MkHasUnderlyingType(moduleName, exportName)
|
||||
)
|
||||
or
|
||||
exists(DataFlow::Node nd, DataFlow::FunctionNode f |
|
||||
pred = MkDef(nd) and
|
||||
f = trackDefNode(nd) and
|
||||
|
||||
Reference in New Issue
Block a user