codeql/python/ql/examples/snippets/override_method.ql

16 строки
335 B
Plaintext

/**
* @id py/examples/override-method
* @name Override of method
* @description Finds methods that overide MyClass.methodName
* @tags method
* override
*/
import python
from FunctionObject override, FunctionObject base
where
base.getQualifiedName() = "MyClass.methodName" and
override.overrides(base)
select override