mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Update shared/typeflow/codeql/typeflow/internal/TypeFlowImpl.qll
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
bffa262a2c
commit
9deeb67af4
@@ -301,6 +301,11 @@ module TypeFlow<LocationSig Location, TypeFlowInput<Location> I> {
|
||||
not irrelevantBound(n, t)
|
||||
}
|
||||
|
||||
/**
|
||||
* Holds if the runtime type of `n` is bounded by `t` and if this bound is
|
||||
* likely to be better than the static type of `n`. The flag `exact` indicates
|
||||
* whether `t` is an exact bound or merely an upper bound.
|
||||
*/
|
||||
predicate bestTypeFlow(TypeFlowNode n, Type t, boolean exact) {
|
||||
exactType(n, t) and exact = true
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user