Skip to content

Commit b55c034

Browse files
authored
Python: Fix up getAMethodCall
Now that we have a `MethodCallNode` class, it would be silly not to use that as the return type.
1 parent 92063dc commit b55c034

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/src/semmle/python/dataflow/new/internal/LocalSources.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class LocalSourceNode extends Node {
8484
* Includes both calls that have the syntactic shape of a method call (as in `obj.m(...)`), and
8585
* calls where the callee undergoes some additional local data flow (as in `tmp = obj.m; m(...)`).
8686
*/
87-
CallCfgNode getAMethodCall(string methodName) {
87+
MethodCallNode getAMethodCall(string methodName) {
8888
result = this.getAnAttributeRead(methodName).getACall()
8989
}
9090

0 commit comments

Comments
 (0)