Python: Add QLDoc to Function.getArgByName

This commit is contained in:
Rasmus Wriedt Larsen
2021-09-23 10:01:04 +02:00
parent a66f83644b
commit d4564d5dd1

View File

@@ -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()