Search in sources :

Example 1 with IntersectionType

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());
}
Also used : IntersectionType(dyvilx.tools.compiler.ast.type.compound.IntersectionType)

Aggregations

IntersectionType (dyvilx.tools.compiler.ast.type.compound.IntersectionType)1