Files
codeql/python/ql/test/library-tests/PointsTo/calls/getParameterByName.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
135 B
Plaintext

import python
from CallableValue callable, string name
select callable.toString(), name, callable.getParameterByName(name).toString()