Files
codeql/python/ql/test/library-tests/descriptors/Methods.ql
Erik Krogh Kristensen ff73dbc35c delete redundant imports
2022-04-22 12:55:28 +02:00

11 lines
277 B
Plaintext

import python
int lineof(Object o) { result = o.getOrigin().getLocation().getStartLine() }
from Object m, FunctionObject f
where
m.(ClassMethodObject).getFunction() = f
or
m.(StaticMethodObject).getFunction() = f
select lineof(m), m.toString(), lineof(f), f.toString()