mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Will need subsequent PRs fixing up test failures (due to deprecated methods moving around), but other than that everything should be straight-forward.
16 lines
315 B
Plaintext
16 lines
315 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
|