Files
codeql/python/ql/lib/experimental/cryptography/utils/CallCfgNodeWithTarget.qll
Josh Brown ad86e576a4 autoformat
2023-10-03 13:40:17 -07:00

13 lines
382 B
Plaintext

/**
* Patches all DataFlow::CallCfgNode adding a getTarget predicate to a new
* subclass of CallCfgNode
*/
import python
private import semmle.python.dataflow.new.internal.TypeTrackerSpecific
private import semmle.python.ApiGraphs
class CallCfgNodeWithTarget extends DataFlow::Node instanceof DataFlow::CallCfgNode {
DataFlow::Node getTarget() { returnStep(result, this) }
}