[vala] girparser: Support delegates with target
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] girparser: Support delegates with target
- Date: Tue, 29 Jun 2010 19:24:00 +0000 (UTC)
commit 3b9033d886cfd10e8d44a78337bb46171d4255d7
Author: Jürg Billeter <j bitron ch>
Date: Tue Jun 29 21:22:01 2010 +0200
girparser: Support delegates with target
Fixes bug 621834.
vala/valagirparser.vala | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 5177899..03c41e7 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -953,7 +953,12 @@ public class Vala.GirParser : CodeVisitor {
int last = -1;
foreach (MethodInfo info in parameters) {
- if (info.keep
+ if (s is Delegate && info.closure_idx == i + add) {
+ var d = (Delegate) s;
+ d.has_target = true;
+ d.cinstance_parameter_position = (float) j - 0.1;
+ info.keep = false;
+ } else if (info.keep
&& !array_length_parameters.contains (i+add)
&& !closure_parameters.contains (i+add)
&& !destroy_parameters.contains (i+add)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]