mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
On saltstack this drops the number of consistency errors
of type uniqueEnclosingCallable from 4026 to 614.
This commit is contained in:
@@ -179,7 +179,11 @@ ExprNode exprNode(DataFlowExpr e) { result.getNode().getNode() = e }
|
||||
class ParameterNode extends CfgNode {
|
||||
ParameterDefinition def;
|
||||
|
||||
ParameterNode() { node = def.getDefiningNode() }
|
||||
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()
|
||||
}
|
||||
|
||||
/**
|
||||
* Holds if this node is the parameter of callable `c` at the
|
||||
|
||||
Reference in New Issue
Block a user