Files
codeql/python/ql/test/library-tests/PointsTo/new/ClassMethod.ql
2020-03-30 11:59:10 +02:00

9 lines
254 B
Plaintext

import python
import semmle.python.types.Descriptors
import Util
from ClassMethodObject cm, CallNode call
where call = cm.getACall()
select locate(call.getLocation(), "lp"), cm.getFunction().toString(),
cm.(ControlFlowNode).getLocation().toString()