[vala] girparser: Fix finding invoker method for virtual methods
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] girparser: Fix finding invoker method for virtual methods
- Date: Fri, 3 Jun 2011 09:24:52 +0000 (UTC)
commit 7d30880c66c8e3ef9adfc17961fab9422623c659
Author: Luca Bruno <lucabru src gnome org>
Date: Fri Jun 3 10:48:15 2011 +0200
girparser: Fix finding invoker method for virtual methods
vala/valagirparser.vala | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index bd85b41..60b2342 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -681,14 +681,12 @@ public class Vala.GirParser : CodeVisitor {
m.vfunc_name = m.name;
m.name = invoker.symbol.name;
m.attributes.remove (attr);
- invoker.processed = true;
invoker.merged = true;
different_invoker = true;
}
}
}
if (!different_invoker) {
- node.processed = true;
node.merged = true;
}
}
@@ -1165,7 +1163,7 @@ public class Vala.GirParser : CodeVisitor {
var m = (Method) node.symbol;
var prefix = "%s_".printf (m.name);
foreach (var n in node.parent.members) {
- if (!n.symbol.name.has_prefix (prefix)) {
+ if (!n.name.has_prefix (prefix)) {
continue;
}
Method? invoker = n.symbol as Method;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]