X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/AstNode.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/AstNode.java index 237ce92..2f0fe2d 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/AstNode.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/AstNode.java @@ -9,7 +9,7 @@ import java.util.List; public abstract class AstNode { /** Starting and ending position of the node in the sources. */ - public int sourceStart, sourceEnd; + private int sourceStart, sourceEnd; /** * Create a node giving starting and ending offset @@ -17,8 +17,8 @@ public abstract class AstNode { * @param sourceEnd ending offset */ public AstNode(final int sourceStart, final int sourceEnd) { - this.sourceStart = sourceStart; - this.sourceEnd = sourceEnd; + this.setSourceStart(sourceStart); + this.setSourceEnd(sourceEnd); } /** @@ -67,4 +67,20 @@ public abstract class AstNode { * @return the variables used */ public abstract List getUsedVariable(); + + public int getSourceStart() { + return sourceStart; + } + + public int getSourceEnd() { + return sourceEnd; + } + + public void setSourceStart(int sourceStart) { + this.sourceStart = sourceStart; + } + + public void setSourceEnd(int sourceEnd) { + this.sourceEnd = sourceEnd; + } }