]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix writing of object creation expressions with --dump-tree
authorVlad Grecescu <b100dian@gmail.com>
Wed, 4 Aug 2010 13:46:18 +0000 (15:46 +0200)
committerJürg Billeter <j@bitron.ch>
Wed, 4 Aug 2010 13:46:18 +0000 (15:46 +0200)
Fixes bug 618784.

vala/valacodewriter.vala

index 75963fb92594002e8ccdc873bc338c3191f151a9..99ef1c1db1220bb234b0708e817cec7e9e90acdb 100644 (file)
@@ -1585,6 +1585,12 @@ public class Vala.CodeWriter : CodeVisitor {
                }
 
                write_type (expr.type_reference);
+
+               if (expr.constructor.name != ".new") {
+                       write_string (".");
+                       write_string (expr.constructor.name);
+               }
+
                write_string (" (");
 
                bool first = true;