A little bug in the tostring method fixed
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / Define.java
index ad05eb7..8a85495 100644 (file)
@@ -17,11 +17,11 @@ public class Define extends Statement implements Outlineable {
   private Object parent;
   private Position position;
 
-  public Define(Object parent,
-                Expression defineName,
-                Expression defineValue,
-                int sourceStart,
-                int sourceEnd) {
+  public Define(final Object parent,
+                final Expression defineName,
+                final Expression defineValue,
+                final int sourceStart,
+                final int sourceEnd) {
     super(sourceStart, sourceEnd);
     this.parent = parent;
     this.defineName = defineName;
@@ -29,10 +29,11 @@ public class Define extends Statement implements Outlineable {
     position = new Position(sourceStart, sourceEnd);
   }
 
-  public String toString(int tab) {
+  public String toString(final int tab) {
     final StringBuffer buff = new StringBuffer(tabString(tab));
     buff.append("define(");
     buff.append(defineName.toStringExpression());
+    buff.append(", ");
     buff.append(defineValue.toStringExpression());
     buff.append(")");
     return buff.toString();