mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
QL: fix getArity on PredicateOrBuiltin
This commit is contained in:
@@ -201,7 +201,7 @@ class PredicateOrBuiltin extends TPredOrBuiltin, AstNode {
|
||||
|
||||
Type getReturnType() { none() }
|
||||
|
||||
int getArity() { result = count(this.getParameterType(_)) }
|
||||
int getArity() { result = count(int i | exists(this.getParameterType(i))) }
|
||||
|
||||
predicate isPrivate() { none() }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user