package com.redhat.ceylon.eclipse.core.builder;

import com.redhat.ceylon.compiler.java.codegen.BoxingVisitor;
import com.redhat.ceylon.compiler.typechecker.model.Declaration;
import com.redhat.ceylon.compiler.typechecker.model.ProducedReference;
import com.redhat.ceylon.compiler.typechecker.model.ProducedType;

public class IDEBoxingVisitor extends BoxingVisitor {

	@Override
	protected boolean isBooleanTrue(Declaration decl) {
		return IDEBoxingUtil.isBooleanTrue(decl);
	}

	@Override
	protected boolean isBooleanFalse(Declaration decl) {
        return IDEBoxingUtil.isBooleanFalse(decl);
	}

    @Override
    protected boolean hasErasure(ProducedType type) {
        return IDEBoxingUtil.hasErasure(type);
    }

    @Override
    protected boolean isTypeParameter(ProducedType type) {
        return IDEBoxingUtil.isTypeParameter(type);
    }

	@Override
	protected boolean hasErasedTypeParameters(ProducedReference arg0) {
		// TODO Auto-generated method stub
		return false;
	}
}

@@ -924,12 +924,10 @@
 nce 
-arg0
+pr
 ) %7B%0A
@@ -939,53 +939,161 @@
 TODO
- Auto-generated method stub%0A%09%09return false;%0A%09
+!!!! This is wrong!%0A%09%09return false;%0A%09%7D%0A%0A    @Override%0A    protected boolean isRaw(ProducedType pt) %7B%0A        return IDEBoxingUtil.isTurnedToRaw(pt);%0A    
 %7D%0A%7D%0A

add missing method due to change to compiler