Files
codeql/python/ql/examples/snippets/method_call.ql
2019-08-08 10:55:45 +01:00

16 lines
321 B
Plaintext

/**
* @id py/examples/method-call
* @name Call to method
* @description Finds calls to MyClass.methodName
* @tags call
* method
*/
import python
from AstNode call, PythonFunctionValue method
where
method.getQualifiedName() = "MyClass.methodName" and
method.getACall().getNode() = call
select call