mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
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.
17 lines
345 B
Plaintext
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
|