*** empty log message ***
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / FieldDeclaration.java
index c8647f9..69b3616 100644 (file)
@@ -3,6 +3,7 @@ package net.sourceforge.phpdt.internal.compiler.ast;
 import net.sourceforge.phpdt.internal.compiler.parser.Outlineable;
 import net.sourceforge.phpdt.internal.ui.PHPUiImages;
 import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.text.Position;
 
 /**
  * A Field declaration.
@@ -18,6 +19,7 @@ public class FieldDeclaration extends Statement implements Outlineable {
   public VariableDeclaration[] vars;
 
   private Object parent;
+  private Position position;
   /**
    * Create a new field.
    * @param vars the array of variables.
@@ -28,6 +30,7 @@ public class FieldDeclaration extends Statement implements Outlineable {
     super(sourceStart, sourceEnd);
     this.vars = vars;
     this.parent = parent;
+    position = new Position(sourceStart, sourceEnd);
   }
 
   /**
@@ -59,4 +62,8 @@ public class FieldDeclaration extends Statement implements Outlineable {
   public Object getParent() {
     return parent;
   }
+
+  public Position getPosition() {
+    return position;
+  }
 }