Python: Omit all unresolved parameter nodes.

Drops the results further to 139.
This commit is contained in:
Rasmus Lerchedahl Petersen
2021-01-24 16:16:07 +01:00
parent baf0917524
commit 89e56707c3
2 changed files with 2 additions and 3 deletions

View File

@@ -181,8 +181,8 @@ class ParameterNode extends CfgNode {
ParameterNode() {
node = def.getDefiningNode() and
// Disregard parameters to the function the extractor has synthesised for comprehensions
not def.getScope() = any(Comp comp).getNthInnerLoop(0).getIter().getScope()
// Disregard parameters that we cannot resolve
exists(DataFlowCallable c | node = c.getParameter(_))
}
/**