mirror of
https://github.com/github/codeql.git
synced 2026-02-17 23:43:42 +01:00
Python: change type of LibraryCallable::getACall
The other callables return control flow nodes, so it is slightly inconsistent for this to return a data flow node, but it does make models based on API graphs nicer.
This commit is contained in:
@@ -10,7 +10,7 @@ private import semmle.python.ApiGraphs
|
||||
class ReversedSummary extends SummarizedCallable {
|
||||
ReversedSummary() { this = "builtins.reversed" }
|
||||
|
||||
override CallNode getACall() { result = API::builtin("reversed").getACall().getNode() }
|
||||
override DataFlow::CallCfgNode getACall() { result = API::builtin("reversed").getACall() }
|
||||
|
||||
override DataFlow::ArgumentNode getACallback() {
|
||||
result = API::builtin("reversed").getAValueReachableFromSource()
|
||||
|
||||
Reference in New Issue
Block a user