X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/InclusionStatement.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/InclusionStatement.java index 0f18233..3a403a2 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/InclusionStatement.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/InclusionStatement.java @@ -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; /** * @author Matthieu Casanova @@ -20,6 +21,7 @@ public class InclusionStatement extends Statement implements Outlineable { private Object parent; + private Position position; public InclusionStatement(Object parent, int keyword, Expression expression, @@ -28,6 +30,7 @@ public class InclusionStatement extends Statement implements Outlineable { this.keyword = keyword; this.expression = expression; this.parent = parent; + position = new Position(sourceStart, sourceEnd); } public String keywordToString() { @@ -77,4 +80,8 @@ public class InclusionStatement extends Statement implements Outlineable { public Object getParent() { return parent; } + + public Position getPosition() { + return position; + } }