use of dyvilx.tools.compiler.ast.type.compound.IntersectionType in project Dyvil by Dyvil.
the class TypeParameter method getUpperBounds.
private static void getUpperBounds(List<IType> list, IType upperBound) {
if (upperBound.typeTag() != IType.INTERSECTION) {
list.add(upperBound);
return;
}
final IntersectionType intersection = (IntersectionType) upperBound;
getUpperBounds(list, intersection.getLeft());
getUpperBounds(list, intersection.getRight());
}
Aggregations