mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Python: Fix up getAMethodCall
Now that we have a `MethodCallNode` class, it would be silly not to use that as the return type.
This commit is contained in:
@@ -84,7 +84,7 @@ class LocalSourceNode extends Node {
|
||||
* Includes both calls that have the syntactic shape of a method call (as in `obj.m(...)`), and
|
||||
* calls where the callee undergoes some additional local data flow (as in `tmp = obj.m; m(...)`).
|
||||
*/
|
||||
CallCfgNode getAMethodCall(string methodName) {
|
||||
MethodCallNode getAMethodCall(string methodName) {
|
||||
result = this.getAnAttributeRead(methodName).getACall()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user