Skip to content

Commit 903f364

Browse files
authored
Python: Improve CallCfgNode interface
Call nodes are always local sources (specifically sources of the return value of the call), and so inheriting from `LocalSourceNode` will have no effect on results, but _should_ make it a bit more smooth to use the API.
1 parent f45916e commit 903f364

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/src/semmle/python/dataflow/new/internal/DataFlowPublic.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class CfgNode extends Node, TCfgNode {
180180
}
181181

182182
/** A data-flow node corresponding to a `CallNode` in the control-flow graph. */
183-
class CallCfgNode extends CfgNode {
183+
class CallCfgNode extends CfgNode, LocalSourceNode {
184184
override CallNode node;
185185

186186
/**

0 commit comments

Comments
 (0)