X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/ArrayInitializer.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/ArrayInitializer.java index 247cd34..8dca5e1 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/ArrayInitializer.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/ArrayInitializer.java @@ -1,19 +1,23 @@ package net.sourceforge.phpdt.internal.compiler.ast; -import net.sourceforge.phpdt.internal.compiler.ast.declarations.VariableUsage; - import java.util.List; -import java.util.ArrayList; /** * an array initializer. * array('a','b','c') or array('a' => 2,'b' = '3'); * @author Matthieu Casanova */ -public class ArrayInitializer extends Expression { +public final class ArrayInitializer extends Expression { - public ArrayVariableDeclaration[] vars; + /** the key and values. */ + private final ArrayVariableDeclaration[] vars; + /** + * Create a new array initializer. + * @param vars the keys and values of the array + * @param sourceStart the starting offset + * @param sourceEnd the ending offset + */ public ArrayInitializer(final ArrayVariableDeclaration[] vars, final int sourceStart, final int sourceEnd) { @@ -41,12 +45,13 @@ public class ArrayInitializer extends Expression { /** * Get the variables from outside (parameters, globals ...) + * @param list the list where we will put variables */ - public void getOutsideVariable(final List list) { - } + public void getOutsideVariable(final List list) {} /** * get the modified variables. + * @param list the list where we will put variables */ public void getModifiedVariable(final List list) { for (int i = 0; i < vars.length; i++) { @@ -58,6 +63,7 @@ public class ArrayInitializer extends Expression { /** * Get the variables used. + * @param list the list where we will put variables */ public void getUsedVariable(final List list) { for (int i = 0; i < vars.length; i++) {