X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/Block.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/Block.java index ce9fd59..b3ef5d1 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/Block.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/Block.java @@ -27,11 +27,16 @@ public class Block extends Statement { return statements == null; } + /** + * Return the block as String. + * @param tab how many tabs + * @return the string representation of the block + */ public String toString(int tab) { final String s = AstNode.tabString(tab); final StringBuffer buff = new StringBuffer(s); buff.append("{\n"); //$NON-NLS-1$ - if (this.statements == null) { + if (this.statements != null) { for (int i = 0; i < statements.length; i++) { buff.append(statements[i].toString(tab+1)).append(";\n");//$NON-NLS-1$ }