X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/VariableDeclaration.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/VariableDeclaration.java index 4ba1ba5..46340d1 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/VariableDeclaration.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/VariableDeclaration.java @@ -33,6 +33,19 @@ public class VariableDeclaration extends AbstractVariableDeclaration implements this.parent = parent; } + /** + * Create a variable. + * @param name the name of the variable + * @param sourceStart the start point + */ + public VariableDeclaration(Object parent, + char[] name, + int sourceStart, + int sourceEnd) { + super(name, sourceStart, sourceEnd); + this.parent = parent; + } + public void setReference(boolean reference) { this.reference = reference; } @@ -49,6 +62,17 @@ public class VariableDeclaration extends AbstractVariableDeclaration implements super(name, sourceStart, initialization.sourceEnd); this.initialization = initialization; } + + /** + * Create a variable. + * @param name the name of the variable + * @param sourceStart the start point + */ + public VariableDeclaration(char[] name, + int sourceStart) { + super(name, sourceStart, sourceStart + name.length); + } + /** * Return the variable into String. * @return a String