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
366 B
Plaintext
17 lines
366 B
Plaintext
/**
|
|
* @id py/examples/override-method
|
|
* @name Override of method
|
|
* @description Finds methods that override MyClass.methodName
|
|
* @tags method
|
|
* override
|
|
*/
|
|
|
|
import python
|
|
private import LegacyPointsTo
|
|
|
|
from FunctionObject override, FunctionObject base
|
|
where
|
|
base.getQualifiedName() = "MyClass.methodName" and
|
|
override.overrides(base)
|
|
select override
|