Merge pull request #6738 from RasmusWL/qldoc-getArgByName

Python: Add QLDoc to `Function.getArgByName`
This commit is contained in:
yoff
2021-09-30 14:11:18 +02:00
committed by GitHub

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