mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
Python: Make API::Node::getACall return a CallCfgNode
This should eliminate the need for explicit casting to `CallCfgNode` (which does not appear in our code as far as I can see, but was observed in an external contribution).
This commit is contained in:
2
python/change-notes/2021-03-22-getacall-callcfgnode.md
Normal file
2
python/change-notes/2021-03-22-getacall-callcfgnode.md
Normal file
@@ -0,0 +1,2 @@
|
||||
lgtm,codescanning
|
||||
* 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.
|
||||
@@ -55,7 +55,7 @@ module API {
|
||||
/**
|
||||
* Gets a call to the function represented by this API component.
|
||||
*/
|
||||
DataFlow::Node getACall() { result = getReturn().getAnImmediateUse() }
|
||||
DataFlow::CallCfgNode getACall() { result = getReturn().getAnImmediateUse() }
|
||||
|
||||
/**
|
||||
* Gets a node representing member `m` of this API component.
|
||||
|
||||
Reference in New Issue
Block a user