Skip to content

Commit 9deeb67

Browse files
Update shared/typeflow/codeql/typeflow/internal/TypeFlowImpl.qll
Co-authored-by: Anders Schack-Mulligen <[email protected]>
1 parent bffa262 commit 9deeb67

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

shared/typeflow/codeql/typeflow/internal/TypeFlowImpl.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,11 @@ module TypeFlow<LocationSig Location, TypeFlowInput<Location> I> {
301301
not irrelevantBound(n, t)
302302
}
303303

304+
/**
305+
* Holds if the runtime type of `n` is bounded by `t` and if this bound is
306+
* likely to be better than the static type of `n`. The flag `exact` indicates
307+
* whether `t` is an exact bound or merely an upper bound.
308+
*/
304309
predicate bestTypeFlow(TypeFlowNode n, Type t, boolean exact) {
305310
exactType(n, t) and exact = true
306311
or

0 commit comments

Comments
 (0)