Skip to content

Commit 5f60583

Browse files
committed
Python: Improve QLdoc for Parameter.getPosition
1 parent 8c1cfe5 commit 5f60583

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

python/ql/src/semmle/python/Function.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,10 @@ class Parameter extends Parameter_ {
235235

236236
Variable getVariable() { result.getAnAccess() = this.asName() }
237237

238-
/** Gets the position of this parameter */
238+
/**
239+
* Gets the position of this parameter (if any).
240+
* No result if this is a "varargs", "kwargs", or keyword-only parameter.
241+
*/
239242
int getPosition() { exists(Function f | f.getArg(result) = this) }
240243

241244
/** Gets the name of this parameter */

0 commit comments

Comments
 (0)