Refactory: removed unnecessary local variables and imports.
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / lookup / CompilationUnitScope.java
index 0e03ef2..b92b8f3 100644 (file)
@@ -206,7 +206,7 @@ public class CompilationUnitScope extends Scope {
                nextImport: for (int i = 0; i < numberOfStatements; i++) {
                        ImportReference importReference = referenceContext.imports[i];
                        IFile file = importReference.getFile();
-                       SourceTypeBinding typeBinding;
+                       //SourceTypeBinding typeBinding;
                        // char[][] compoundName = importReference.tokens;
                        char[][] compoundName = null;
                        if (file != null) {
@@ -387,7 +387,7 @@ public class CompilationUnitScope extends Scope {
                                }
                                typeBinding.compoundName = compoundName; // compoundName;
                                // this.fPackage = fPackage;
-                               typeBinding.fileName = file.getLocation().toString()
+                               typeBinding.fileName = file.getFullPath().toString()
                                                .toCharArray();
                                // typeBinding.modifiers = scope.referenceContext.modifiers;
                                // typeBinding.sourceName = scope.referenceContext.name;