mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
Python: Hook up new implementation
Left as its own commit, as otherwise the diff would have been very confusing.
This commit is contained in:
@@ -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) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user