Some minor changes
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / Block.java
index ac3cdb5..1f6c9a0 100644 (file)
@@ -9,10 +9,10 @@ import java.util.List;
  * }.
  * @author Matthieu Casanova
  */
-public class Block extends Statement {
+public final class Block extends Statement {
 
   /** An array of statements inside the block. */
-  public Statement[] statements;
+  public final Statement[] statements;
 
   /**
    * Create a block.
@@ -44,7 +44,7 @@ public class Block extends Statement {
     final String s = AstNode.tabString(tab);
     final StringBuffer buff = new StringBuffer(s);
     buff.append("{\n"); //$NON-NLS-1$
-    if (this.statements != null) {
+    if (statements != null) {
       for (int i = 0; i < statements.length; i++) {
         buff.append(statements[i].toString(tab + 1)).append(";\n");//$NON-NLS-1$
       }
@@ -55,6 +55,8 @@ public class Block extends Statement {
 
   /**
    * Get the variables from outside (parameters, globals ...)
+   *
+   * @param list the list where we will put variables
    */
   public void getOutsideVariable(final List list) {
     for (int i = 0; i < statements.length; i++) {
@@ -64,6 +66,8 @@ public class Block extends Statement {
 
   /**
    * get the modified variables.
+   *
+   * @param list the list where we will put variables
    */
   public void getModifiedVariable(final List list) {
     for (int i = 0; i < statements.length; i++) {
@@ -73,6 +77,8 @@ public class Block extends Statement {
 
   /**
    * Get the variables used.
+   *
+   * @param list the list where we will put variables
    */
   public void getUsedVariable(final List list) {
     for (int i = 0; i < statements.length; i++) {