Files
codeql/python/ql/examples/snippets/method_call.ql
Taus 2732a652ab Python: Fix example snippets
One might argue that these should be rewritten entirely to use more
modern APIs, but for now I'll be content with just having them compile
properly.
2025-11-26 12:30:30 +00:00

17 lines
345 B
Plaintext

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