mirror of
https://github.com/github/codeql.git
synced 2026-05-03 20:58:03 +02:00
change getNumArgument to only count positional arguments
This commit is contained in:
@@ -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(_)) }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user