Files
codeql/python/ql/examples/snippets/override_method.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
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