Files
codeql/python/ql/test/library-tests/PointsTo/calls/getParameter.ql
Rasmus Wriedt Larsen 96fdb7a5b6 Python: Add tests for getParameter[byName]
These already have results for BoundMethodValue, although

1) it's a bit strange that `getParameter(-1)` has results
2) why does `Method(Function C.n, class C)` exists? this would only be relevant
if `n` was a classmethod, but it isn't. It's not a problem that it exsits per
se, but curious.
2020-05-04 20:51:04 +02:00

5 lines
117 B
Plaintext

import python
from CallableValue callable, int i
select callable.toString(), i, callable.getParameter(i).toString()