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 / MemberTypeDeclaration.java
index 7320bbd..ea576bd 100644 (file)
@@ -17,50 +17,51 @@ import net.sourceforge.phpdt.internal.compiler.problem.AbortType;
 
 public class MemberTypeDeclaration extends InnerTypeDeclaration {
        public TypeDeclaration enclosingType;
-       
-public MemberTypeDeclaration(CompilationResult compilationResult){
-       super(compilationResult);
-}              
-/**
- *     Iteration for a member innertype
- *
- */
-public void traverse(ASTVisitor visitor, ClassScope classScope) {
-       if (ignoreFurtherInvestigation)
-               return;
-       try {
-               if (visitor.visit(this, classScope)) {
-                       if (superclass != null)
-                               superclass.traverse(visitor, scope);
-                       if (superInterfaces != null) {
-                               int superInterfaceLength = superInterfaces.length;
-                               for (int i = 0; i < superInterfaceLength; i++)
-                                       superInterfaces[i].traverse(visitor, scope);
-                       }
-                       if (memberTypes != null) {
-                               int memberTypesLength = memberTypes.length;
-                               for (int i = 0; i < memberTypesLength; i++)
-                                       memberTypes[i].traverse(visitor, scope);
-                       }
-                       if (fields != null) {
-                               int fieldsLength = fields.length;
-                               for (int i = 0; i < fieldsLength; i++) {
-                                       FieldDeclaration field;
-                                       if ((field = fields[i]).isStatic()) {
-                                               field.traverse(visitor, staticInitializerScope);
-                                       } else {
-                                               field.traverse(visitor, initializerScope);
+
+       public MemberTypeDeclaration(CompilationResult compilationResult) {
+               super(compilationResult);
+       }
+
+       /**
+        * Iteration for a member innertype
+        * 
+        */
+       public void traverse(ASTVisitor visitor, ClassScope classScope) {
+               if (ignoreFurtherInvestigation)
+                       return;
+               try {
+                       if (visitor.visit(this, classScope)) {
+                               if (superclass != null)
+                                       superclass.traverse(visitor, scope);
+                               if (superInterfaces != null) {
+                                       int superInterfaceLength = superInterfaces.length;
+                                       for (int i = 0; i < superInterfaceLength; i++)
+                                               superInterfaces[i].traverse(visitor, scope);
+                               }
+                               if (memberTypes != null) {
+                                       int memberTypesLength = memberTypes.length;
+                                       for (int i = 0; i < memberTypesLength; i++)
+                                               memberTypes[i].traverse(visitor, scope);
+                               }
+                               if (fields != null) {
+                                       int fieldsLength = fields.length;
+                                       for (int i = 0; i < fieldsLength; i++) {
+                                               FieldDeclaration field;
+                                               if ((field = fields[i]).isStatic()) {
+                                                       field.traverse(visitor, staticInitializerScope);
+                                               } else {
+                                                       field.traverse(visitor, initializerScope);
+                                               }
                                        }
                                }
+                               if (methods != null) {
+                                       int methodsLength = methods.length;
+                                       for (int i = 0; i < methodsLength; i++)
+                                               methods[i].traverse(visitor, scope);
+                               }
                        }
-                       if (methods != null) {
-                               int methodsLength = methods.length;
-                               for (int i = 0; i < methodsLength; i++)
-                                       methods[i].traverse(visitor, scope);
-                       }
+                       visitor.endVisit(this, classScope);
+               } catch (AbortType e) {
                }
-               visitor.endVisit(this, classScope);
-       } catch (AbortType e) {
        }
 }
-}