use of org.eclipse.ceylon.langtools.tools.javac.code.Type.UnionClassType in project ceylon by eclipse.
the class JavacTrees method getLub.
public TypeMirror getLub(CatchTree tree) {
JCCatch ct = (JCCatch) tree;
JCVariableDecl v = ct.param;
if (v.type != null && v.type.getKind() == TypeKind.UNION) {
UnionClassType ut = (UnionClassType) v.type;
return ut.getLub();
} else {
return v.type;
}
}
Aggregations