mirror of
https://github.com/github/codeql.git
synced 2025-12-21 03:06:31 +01:00
Simplify functional predicate implementation.
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com>
This commit is contained in:
@@ -187,11 +187,7 @@ private class Function extends ParameterizedType {
|
||||
* Holds if `callable` has a function parameter `f` at parameter position `position`.
|
||||
*/
|
||||
private predicate functional(Callable callable, Function f, int position) {
|
||||
exists(Parameter p |
|
||||
p = callable.getAParameter() and
|
||||
f = p.getType() and
|
||||
position = p.getPosition()
|
||||
)
|
||||
callable.getParameterType(position) = f
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user