[vala] CodeWriter: add 'new' to methods where appropriate



commit 806836b8e2f100e290b592899aef153d5792f6cd
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]