mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
Python: Add QLDoc to Function.getArgByName
This commit is contained in:
@@ -58,6 +58,7 @@ class Function extends Function_, Scope, AstNode {
|
||||
/** Gets the name of the nth argument (for simple arguments) */
|
||||
string getArgName(int index) { result = this.getArg(index).(Name).getId() }
|
||||
|
||||
/** Gets the parameter of this function with the name `name`. */
|
||||
Parameter getArgByName(string name) {
|
||||
(
|
||||
result = this.getAnArg()
|
||||
|
||||
Reference in New Issue
Block a user