[vala] girparser: support changing names of virtual methods without wrappers
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] girparser: support changing names of virtual methods without wrappers
- Date: Wed, 1 Feb 2012 01:02:09 +0000 (UTC)
commit 952a2d7351a9cc22857624152493a6c8ce50c8d1
Author: Evan Nemerson <evan coeus-group com>
Date: Tue Jan 31 16:50:02 2012 -0800
girparser: support changing names of virtual methods without wrappers
Fixes bug 668991.
vala/valagirparser.vala | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index f760f3a..1fc2185 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -2748,10 +2748,8 @@ public class Vala.GirParser : CodeVisitor {
}
if (invoker == null && !metadata.has_argument (ArgumentType.VFUNC_NAME)) {
s.set_attribute ("NoWrapper", true, s.source_reference);
- } else {
- if (current.girdata["name"] != name) {
- m.set_attribute_string ("CCode", "vfunc_name", current.girdata["name"]);
- }
+ } if (current.girdata["name"] != name) {
+ m.set_attribute_string ("CCode", "vfunc_name", current.girdata["name"]);
}
} else if (element_name == "function") {
m.binding = MemberBinding.STATIC;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]