mirror of
https://github.com/github/codeql.git
synced 2025-12-19 18:33:16 +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.
12 lines
321 B
Plaintext
12 lines
321 B
Plaintext
import python
|
|
import semmle.python.types.Descriptors
|
|
|
|
from PropertyValue p, string method_name, FunctionValue method
|
|
where
|
|
method_name = "getter" and method = p.getGetter()
|
|
or
|
|
method_name = "setter" and method = p.getSetter()
|
|
or
|
|
method_name = "deleter" and method = p.getDeleter()
|
|
select method, method_name, p
|