Skip to content

Commit c1c63d0

Browse files
authored
Merge pull request github#6738 from RasmusWL/qldoc-getArgByName
Python: Add QLDoc to `Function.getArgByName`
2 parents 45cf634 + d4564d5 commit c1c63d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/ql/lib/semmle/python/Function.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ class Function extends Function_, Scope, AstNode {
5858
/** Gets the name of the nth argument (for simple arguments) */
5959
string getArgName(int index) { result = this.getArg(index).(Name).getId() }
6060

61+
/** Gets the parameter of this function with the name `name`. */
6162
Parameter getArgByName(string name) {
6263
(
6364
result = this.getAnArg()

0 commit comments

Comments
 (0)