/*

*/
package kalang.ast;
import java.util.*;
import kalang.core.*;
public class CastExpr extends ExprNode{
    
    protected Type toType;
    
    protected ExprNode expr;
    
    public CastExpr(Type type,ExprNode expr){
            this.toType = type;
            this.expr = expr;
    }
    
    public List<AstNode> getChildren(){
        List<AstNode> ls = new LinkedList();
        addChild(ls, getExpr());
        return ls;
    }
    
    @Override
    public Type getType() {
        return getToType();
    }

    /**
     * @return the toType
     */
    public Type getToType() {
        return toType;
    }

    /**
     * @param toType the toType to set
     */
    public void setToType(Type toType) {
        Objects.requireNonNull(toType);
        this.toType = toType;
    }

    /**
     * @return the expr
     */
    public ExprNode getExpr() {
        return expr;
    }

    /**
     * @param expr the expr to set
     */
    public void setExpr(ExprNode expr) {
        this.expr = expr;
    }
}
@@ -639,386 +639,89 @@
  * @
-param toType the toType to set%0A     */%0A    public void setToType(Type toType) %7B%0A        Objects.requireNonNull(toType);%0A        this.toType = toType;%0A    %7D%0A%0A    /**%0A     * @return the expr%0A     */%0A    public ExprNode getExpr() %7B%0A        return expr;%0A    %7D%0A%0A    /**%0A     * @param expr the expr to set%0A     */%0A    public void setExpr(ExprNode expr) %7B%0A        this.expr = expr;%0A    %7D
+return the expr%0A     */%0A    public ExprNode getExpr() %7B%0A        return expr;%0A    %7D%0A
 %0A%7D

remove setter