*** empty log message ***
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / Case.java
index 71d445f..6e885e0 100644 (file)
 package net.sourceforge.phpdt.internal.compiler.ast;
 
 import net.sourceforge.phpdt.internal.compiler.IAbstractSyntaxTreeVisitor;
-import net.sourceforge.phpdt.internal.compiler.impl.*;
-import net.sourceforge.phpdt.internal.compiler.codegen.*;
-import net.sourceforge.phpdt.internal.compiler.flow.*;
-import net.sourceforge.phpdt.internal.compiler.lookup.*;
+import net.sourceforge.phpdt.internal.compiler.codegen.CaseLabel;
+import net.sourceforge.phpdt.internal.compiler.codegen.CodeStream;
+import net.sourceforge.phpdt.internal.compiler.flow.FlowContext;
+import net.sourceforge.phpdt.internal.compiler.flow.FlowInfo;
+import net.sourceforge.phpdt.internal.compiler.impl.Constant;
+import net.sourceforge.phpdt.internal.compiler.lookup.BlockScope;
+import net.sourceforge.phpdt.internal.compiler.lookup.TypeBinding;
 
 public class Case extends Statement {
        
@@ -70,7 +73,7 @@ public class Case extends Statement {
                        return null;
                if (constantExpression.isConstantValueOfTypeAssignableToType(caseTb, testTb))
                        return constantExpression.constant;
-               if (scope.areTypesCompatible(caseTb, testTb))
+               if (BlockScope.areTypesCompatible(caseTb, testTb))
                        return constantExpression.constant;
                scope.problemReporter().typeMismatchErrorActualTypeExpectedType(
                        constantExpression,