mirror of
https://github.com/github/codeql.git
synced 2026-01-06 11:10:23 +01:00
14 lines
363 B
Plaintext
14 lines
363 B
Plaintext
|
|
import python
|
|
import semmle.python.types.Descriptors
|
|
|
|
int lineof(Object o) {
|
|
result = o.getOrigin().getLocation().getStartLine()
|
|
}
|
|
|
|
from PropertyObject p, FunctionObject getter, FunctionObject setter
|
|
where
|
|
getter = p.getGetter() and setter = p.getSetter()
|
|
select lineof(p), p.toString(), lineof(getter), getter.toString(), lineof(setter), setter.toString()
|
|
|