Python: Hook up new implementation

Left as its own commit, as otherwise the diff would have been very
confusing.
This commit is contained in:
Taus
2022-10-17 13:15:07 +00:00
parent 0051ba1596
commit 651afaf11b

View File

@@ -164,10 +164,6 @@ module ImportResolution {
)
}
Module getModule(DataFlow::CfgNode node) {
exists(ModuleValue mv |
node.getNode().pointsTo(mv) and
result = mv.getScope()
Module getModuleImportedByImportStar(ImportStar i) {
isPreferredModuleForName(result.getFile(), i.getImportedModuleName())
}
@@ -288,4 +284,5 @@ module ImportResolution {
)
}
Module getModule(DataFlow::CfgNode node) { node = getModuleReference(result) }
}