Skip to content

Commit 921b560

Browse files
authored
Merge pull request github#5489 from tausbn/python-make-getacall-return-a-callcfgnode
Python: Make `API::Node::getACall` return a `CallCfgNode`
2 parents 34e2562 + 4a6589d commit 921b560

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
lgtm,codescanning
2+
* The `API::Node::getACall` method now has the more specific return type `DataFlow::CallCfgNode`, which improves the ease of use when working with calls to API functions.

python/ql/src/semmle/python/ApiGraphs.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ module API {
5555
/**
5656
* Gets a call to the function represented by this API component.
5757
*/
58-
DataFlow::Node getACall() { result = getReturn().getAnImmediateUse() }
58+
DataFlow::CallCfgNode getACall() { result = getReturn().getAnImmediateUse() }
5959

6060
/**
6161
* Gets a node representing member `m` of this API component.

0 commit comments

Comments
 (0)