[vala/0.10] CodeWriter: add 'new' to methods where appropriate
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.10] CodeWriter: add 'new' to methods where appropriate
- Date: Wed, 15 Sep 2010 21:07:01 +0000 (UTC)
commit 5e2fc917ac9ebd81f00e8f8873c32a28a5daa601
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 a1cda97..f84409b 100644
--- a/vala/valacodewriter.vala
+++ b/vala/valacodewriter.vala
@@ -1067,6 +1067,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]