From: Vlad Grecescu Date: Wed, 4 Aug 2010 13:46:18 +0000 (+0200) Subject: Fix writing of object creation expressions with --dump-tree X-Git-Tag: 0.9.5~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc694eff6f98ee82411a4af927be53e337b523c9;p=thirdparty%2Fvala.git Fix writing of object creation expressions with --dump-tree Fixes bug 618784. --- diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala index 75963fb92..99ef1c1db 100644 --- a/vala/valacodewriter.vala +++ b/vala/valacodewriter.vala @@ -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;