Files
codeql/python/ql/test/library-tests/PointsTo/inheritance/Declared.ql
2018-11-19 15:15:54 +00:00

8 lines
265 B
Plaintext

import python
import semmle.python.pointsto.PointsTo
from ClassObject cls, string name, PyFunctionObject f
where PointsTo::Types::class_declared_attribute(cls, name, f, _, _)
select cls.toString(), name, f.toString(), f.getFunction().getLocation().getStartLine()