expand qldoc for getNumArgument

Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
This commit is contained in:
Erik Krogh Kristensen
2022-05-23 18:51:33 +02:00
committed by GitHub
parent 204e01fc24
commit b6a4f43737

View File

@@ -355,7 +355,12 @@ module API {
result.getAnImmediateUse() = this
}
/** Gets the number of arguments of this call. Both positional and named arguments are counted. */
/**
* Gets the number of positional arguments of this call.
*
* Note: This is used for `WithArity[<n>]` in modeling-as-data, where we thought
* including keyword arguments didn't make much sense.
*/
int getNumArgument() { result = count(this.getArg(_)) }
}