encapsulatingType

fun TypeResolver.encapsulatingType(exprList: List<SqlExpr>, vararg typeOrder: DialectType): IntermediateType
fun TypeResolver.encapsulatingType(exprList: List<SqlExpr>, nullableIfAny: Boolean, vararg typeOrder: DialectType): IntermediateType

Return

the type from the expr list which is the highest order in the typeOrder list