mirror of
https://github.com/github/codeql.git
synced 2025-12-22 11:46:32 +01:00
expand qldoc for getNumArgument
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
This commit is contained in:
committed by
GitHub
parent
204e01fc24
commit
b6a4f43737
@@ -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(_)) }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user