change getNumArgument to only count positional arguments

This commit is contained in:
Erik Krogh Kristensen
2022-05-19 21:03:59 +02:00
parent a5b11e88b4
commit 204e01fc24
3 changed files with 5 additions and 4 deletions

View File

@@ -356,7 +356,7 @@ module API {
}
/** Gets the number of arguments of this call. Both positional and named arguments are counted. */
int getNumArgument() { result = count([this.getArg(_), this.getArgByName(_)]) }
int getNumArgument() { result = count(this.getArg(_)) }
}
/**