We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c1cfe5 commit 5f60583Copy full SHA for 5f60583
python/ql/src/semmle/python/Function.qll
@@ -235,7 +235,10 @@ class Parameter extends Parameter_ {
235
236
Variable getVariable() { result.getAnAccess() = this.asName() }
237
238
- /** Gets the position of this parameter */
+ /**
239
+ * Gets the position of this parameter (if any).
240
+ * No result if this is a "varargs", "kwargs", or keyword-only parameter.
241
+ */
242
int getPosition() { exists(Function f | f.getArg(result) = this) }
243
244
/** Gets the name of this parameter */
0 commit comments