2003-10-21 cesar lopez nataren <cesar@ciencias.unam.mx>
authorCésar Natarén <cesar@mono-cvs.ximian.com>
Wed, 22 Oct 2003 01:04:38 +0000 (01:04 -0000)
committerCésar Natarén <cesar@mono-cvs.ximian.com>
Wed, 22 Oct 2003 01:04:38 +0000 (01:04 -0000)
* VariableDeclaration.cs: added the initializer to ToString.

svn path=/trunk/mcs/; revision=19290

mcs/class/Microsoft.JScript/Microsoft.JScript/ChangeLog
mcs/class/Microsoft.JScript/Microsoft.JScript/VariableDeclaration.cs

index 54d0c875499b02f2a3808076d6b7c32fad79ee63..0da8b1ace4b12d569c33a448e3a32ceecd35a226 100644 (file)
@@ -1,5 +1,7 @@
 2003-10-21  cesar lopez nataren  <cesar@ciencias.unam.mx>
 
+       * VariableDeclaration.cs: added the initializer to ToString.
+       
        * jscript-lexer-parser.g: Allow "christmas trees" (aka expression
        trees) building.
        
@@ -31,6 +33,7 @@
        * README: added some info about hacking the grammar
 
        * JSparser.cs: Updated the constructor to not receiving params.
+
        * JScriptLexer.cs, JScriptParser.cs, JScriptParserTokenTypes.cs,
        JScriptParserTokenTypes.txt: update of antlr generated files from
        grammar changes. 
index 1aaee349a76089e2f087d34b905c3236de5bce6e..fb3b52cdeb9729fc84ca2000ad8c0d1fe7ccf848 100644 (file)
@@ -41,10 +41,9 @@ namespace Microsoft.JScript {
                {
                        StringBuilder sb = new StringBuilder ();
 
-                       // FIXME: we must add the string 
-                       // representation of val, too.
-
                        sb.Append (Id);
+                       sb.Append (" = ");
+                       sb.Append (val.ToString ());
 
                        return sb.ToString ();
                }