A massive organize imports and formatting of the sources using default Eclipse code...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / Argument.java
index 27da26c..aa0bd08 100644 (file)
@@ -17,7 +17,7 @@ import net.sourceforge.phpdt.internal.compiler.lookup.MethodScope;
 import net.sourceforge.phpdt.internal.compiler.lookup.TypeBinding;
 
 public class Argument extends LocalDeclaration {
-       
+
        public Argument(char[] name, long posNom, TypeReference tr, int modifiers) {
 
                super(null, name, (int) (posNom >>> 32), (int) posNom);
@@ -34,17 +34,18 @@ public class Argument extends LocalDeclaration {
                // record the resolved type into the type reference
                int modifierFlag = this.modifiers;
                if ((this.binding = scope.duplicateName(this.name)) != null) {
-                       //the name already exist....may carry on with the first binding ....
+                       // the name already exist....may carry on with the first binding
+                       // ....
                        scope.problemReporter().redefineArgument(this);
                } else {
-                       scope.addLocalVariable(
-                               this.binding =
-                                       new LocalVariableBinding(this, typeBinding, modifierFlag, true));
-                       //true stand for argument instead of just local
+                       scope.addLocalVariable(this.binding = new LocalVariableBinding(
+                                       this, typeBinding, modifierFlag, true));
+                       // true stand for argument instead of just local
                        if (typeBinding != null && isTypeUseDeprecated(typeBinding, scope))
                                scope.problemReporter().deprecatedType(typeBinding, this.type);
                        this.binding.declaration = this;
-                       this.binding.useFlag = used ? LocalVariableBinding.USED : LocalVariableBinding.UNUSED;
+                       this.binding.useFlag = used ? LocalVariableBinding.USED
+                                       : LocalVariableBinding.UNUSED;
                }
        }
 
@@ -54,15 +55,25 @@ public class Argument extends LocalDeclaration {
                // provide the scope with a side effect : insertion of a LOCAL
                // that represents the argument. The type must be from JavaThrowable
 
-               TypeBinding tb = type.resolveTypeExpecting(scope, scope.getJavaLangThrowable());
+               TypeBinding tb = type.resolveTypeExpecting(scope, scope
+                               .getJavaLangThrowable());
                if (tb == null)
                        return null;
                if ((binding = scope.duplicateName(name)) != null) {
-                       // the name already exists....may carry on with the first binding ....
+                       // the name already exists....may carry on with the first binding
+                       // ....
                        scope.problemReporter().redefineArgument(this);
                        return null;
                }
-               binding = new LocalVariableBinding(this, tb, modifiers, false); // argument decl, but local var  (where isArgument = false)
+               binding = new LocalVariableBinding(this, tb, modifiers, false); // argument
+                                                                                                                                               // decl,
+                                                                                                                                               // but
+                                                                                                                                               // local
+                                                                                                                                               // var
+                                                                                                                                               // (where
+                                                                                                                                               // isArgument
+                                                                                                                                               // =
+                                                                                                                                               // false)
                scope.addLocalVariable(binding);
                binding.constant = NotAConstant;
                return tb;
@@ -84,7 +95,7 @@ public class Argument extends LocalDeclaration {
        }
 
        public void traverse(ASTVisitor visitor, BlockScope scope) {
-               
+
                if (visitor.visit(this, scope)) {
                        if (type != null)
                                type.traverse(visitor, scope);