[vala] Fix writing of object creation expressions with --dump-tree



commit dc694eff6f98ee82411a4af927be53e337b523c9
Author: Vlad Grecescu <b100dian gmail com>
Date:   Wed Aug 4 15:46:18 2010 +0200

    Fix writing of object creation expressions with --dump-tree
    
    Fixes bug 618784.

 vala/valacodewriter.vala |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala
index 75963fb..99ef1c1 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]