[vala/0.10-parallel] CodeWriter: add 'new' to methods where appropriate



commit 25e5ccaa94654cd049bfe9d57d1d4af68d6ba2b2
Author: Ryan Lortie <desrt desrt ca>
Date:   Sat Sep 11 12:16:37 2010 -0400

    CodeWriter: add 'new' to methods where appropriate

 vala/valacodewriter.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala
index 32521fc..231262f 100644
--- a/vala/valacodewriter.vala
+++ b/vala/valacodewriter.vala
@@ -1123,6 +1123,10 @@ public class Vala.CodeWriter : CodeVisitor {
 				write_string ("override ");
 			}
 
+			if (m.hides) {
+				write_string ("new ");
+			}
+
 			if (m.coroutine) {
 				write_string ("async ");
 			}



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