use of com.redhat.ceylon.compiler.typechecker.tree.Tree.MemberOrTypeExpression in project ceylon-compiler by ceylon.
the class BoxingVisitor method visit.
@Override
public void visit(Expression that) {
Stack<Boolean> npebs = setPEB();
super.visit(that);
resetPEB(npebs);
Term term = that.getTerm();
propagateFromTerm(that, term);
// which will need to be marked boxed
if (term instanceof MemberOrTypeExpression) {
Tree.MemberOrTypeExpression expr = (Tree.MemberOrTypeExpression) term;
if (expr.getDeclaration() instanceof Function) {
that.setUnboxed(false);
}
}
}
Aggregations