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:
Taus
2021-06-15 15:13:54 +00:00
committed by GitHub
parent 92063dc191
commit b55c034502

View File

@@ -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()
}