CodeQL library for Java/Kotlin
codeql/java-all 5.0.1-dev (changelog, source)
Search

Predicate TypeFlow::bestUnionType

Holds if the runtime type of n is bounded by a union type and if this bound is likely to be better than the static type of n. The union type is made up of the types t related to n by this predicate, and the flag exact indicates whether t is an exact bound or merely an upper bound.

Import path

import codeql.typeflow.internal.TypeFlowImpl
predicate bestUnionType(TypeFlowNode n, Type t, boolean exact)