added class fields to outline
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / internal / compiler / ast / FieldDeclaration.java
index 2fac9eb..9b90707 100644 (file)
@@ -39,7 +39,19 @@ public class FieldDeclaration extends AbstractVariableDeclaration {
 
        public FieldDeclaration() {
        }
+       public FieldDeclaration(
+                       char[] name,
+                       int sourceStart,
+                       int sourceEnd) {
+
+                       this.name = name;
 
+                       //due to some declaration like 
+                       // int x, y = 3, z , x ;
+                       //the sourceStart and the sourceEnd is ONLY on  the name
+                       this.sourceStart = sourceStart;
+                       this.sourceEnd = sourceEnd;
+               }
        public FieldDeclaration(
                Expression initialization,
                char[] name,