Files
codeql/python/ql/test/library-tests/descriptors/Properties.ql
Taus Brock-Nannestad f07a7bf8cf Python: Autoformat everything using qlformat.
Will need subsequent PRs fixing up test failures (due to deprecated
methods moving around), but other than that everything should be
straight-forward.
2020-07-07 15:43:52 +02:00

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