Refactored packagename to net.sourceforge.phpdt.internal.compiler.ast
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / lookup / BlockScope.java
index 35c9d53..b6cc496 100644 (file)
 package net.sourceforge.phpdt.internal.compiler.lookup;
 
 import net.sourceforge.phpdt.core.compiler.CharOperation;
-import net.sourceforge.phpdt.internal.compiler.impl.Constant;
+import net.sourceforge.phpdt.internal.compiler.ast.AbstractMethodDeclaration;
+import net.sourceforge.phpdt.internal.compiler.ast.ConstructorDeclaration;
+import net.sourceforge.phpdt.internal.compiler.ast.TypeDeclaration;
 import net.sourceforge.phpdt.internal.compiler.problem.ProblemReporter;
-import net.sourceforge.phpeclipse.internal.compiler.ast.AbstractMethodDeclaration;
-import net.sourceforge.phpeclipse.internal.compiler.ast.Argument;
-import net.sourceforge.phpeclipse.internal.compiler.ast.AstNode;
-import net.sourceforge.phpeclipse.internal.compiler.ast.ConstructorDeclaration;
-import net.sourceforge.phpeclipse.internal.compiler.ast.TypeDeclaration;
 
 public class BlockScope extends Scope {
 
@@ -227,7 +224,7 @@ public class BlockScope extends Scope {
 //                             // do not report fake used variable
 //                             if (local.useFlag == LocalVariableBinding.UNUSED
 //                                     && (local.declaration != null) // unused (and non secret) local
-//                                     && ((local.declaration.bits & AstNode.IsLocalDeclarationReachableMASK) != 0)) { // declaration is reachable
+//                                     && ((local.declaration.bits & ASTNode.IsLocalDeclarationReachableMASK) != 0)) { // declaration is reachable
 //                                             
 //                                     if (!(local.declaration instanceof Argument))  // do not report unused catch arguments
 //                                             this.problemReporter().unusedLocalVariable(local.declaration);
@@ -258,7 +255,7 @@ public class BlockScope extends Scope {
 //                                     if (this.offset > 0xFFFF) { // no more than 65535 words of locals
 //                                             this.problemReporter().noMoreAvailableSpaceForLocal(
 //                                                     local, 
-//                                                     local.declaration == null ? (AstNode)this.methodScope().referenceContext : local.declaration);
+//                                                     local.declaration == null ? (ASTNode)this.methodScope().referenceContext : local.declaration);
 //                                     }
 //                             } else {
 //                                     local.resolvedPosition = -1; // not generated
@@ -421,7 +418,7 @@ public class BlockScope extends Scope {
                                        if (!((ReferenceBinding) binding).canBeSeenBy(this))
                                                return new ProblemReferenceBinding(
                                                        CharOperation.subarray(compoundName, 0, currentIndex),
-                                                       binding,
+                                                       (ReferenceBinding)binding,
                                                        NotVisible);
                                        break foundType;
                                }
@@ -525,7 +522,7 @@ public class BlockScope extends Scope {
                                        if (!((ReferenceBinding) binding).canBeSeenBy(this))
                                                return new ProblemReferenceBinding(
                                                        CharOperation.subarray(compoundName, 0, currentIndex),
-                                                       binding, 
+                                                       (ReferenceBinding)binding, 
                                                        NotVisible);
                                        break foundType;
                                }