Python: Improve QLdoc for Parameter.getPosition

This commit is contained in:
Rasmus Wriedt Larsen
2020-04-27 15:21:48 +02:00
parent 8c1cfe52f6
commit 5f6058363f

View File

@@ -235,7 +235,10 @@ class Parameter extends Parameter_ {
Variable getVariable() { result.getAnAccess() = this.asName() }
/** Gets the position of this parameter */
/**
* Gets the position of this parameter (if any).
* No result if this is a "varargs", "kwargs", or keyword-only parameter.
*/
int getPosition() { exists(Function f | f.getArg(result) = this) }
/** Gets the name of this parameter */