mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
13 lines
398 B
Plaintext
13 lines
398 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.TypeTrackingImpl
|
|
private import semmle.python.ApiGraphs
|
|
|
|
class CallCfgNodeWithTarget extends DataFlow::Node instanceof DataFlow::CallCfgNode {
|
|
DataFlow::Node getTarget() { TypeTrackingInput::returnStep(result, this) }
|
|
}
|