[vala] codewriter: Write delegate_target for fields
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] codewriter: Write delegate_target for fields
- Date: Sun, 26 Jun 2011 17:10:35 +0000 (UTC)
commit 76f2c0192df9bfdb6a2d83f33e8a6a069794822f
Author: Luca Bruno <lucabru src gnome org>
Date: Sun Jun 26 19:05:08 2011 +0200
codewriter: Write delegate_target for fields
vala/valacodewriter.vala | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala
index ee5daf1..34d426f 100644
--- a/vala/valacodewriter.vala
+++ b/vala/valacodewriter.vala
@@ -828,6 +828,14 @@ public class Vala.CodeWriter : CodeVisitor {
write_string ("array_length_type = \"%s\"".printf (f.array_length_type));
}
}
+ } else if (f.variable_type is DelegateType) {
+ if (f.no_delegate_target) {
+ if (custom_cname || custom_ctype || custom_cheaders) {
+ write_string (", ");
+ }
+
+ write_string ("delegate_target = false");
+ }
}
write_string (")]");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]