[vala/switch-to-gir] girparser: Do not hardcode Implementor, use metadata instead
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/switch-to-gir] girparser: Do not hardcode Implementor, use metadata instead
- Date: Wed, 25 Aug 2010 22:19:33 +0000 (UTC)
commit 312e035033321b814d4ffb32df3ab16017b1db64
Author: Luca Bruno <lethalman88 gmail com>
Date: Thu Aug 26 00:17:37 2010 +0200
girparser: Do not hardcode Implementor, use metadata instead
vala/valagirparser.vala | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 565f400..1742b99 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -1241,8 +1241,8 @@ public class Vala.GirParser : CodeVisitor {
}
end_element ("record");
- if (current_gtype_struct_for != null || (current_namespace.name == "Atk" && st.name == "Implementor")) {
- // skip *Class or *Iface or AtkImplementor empty struct
+ if (current_gtype_struct_for != null) {
+ // skip *Class or *Iface
current_gtype_struct_for = null;
return null;
}
@@ -1449,11 +1449,7 @@ public class Vala.GirParser : CodeVisitor {
Interface parse_interface () {
start_element ("interface");
- var name = reader.get_attribute ("name");
- if (current_namespace.name == "Atk" && name == "ImplementorIface") {
- name = "Implementor";
- }
- var iface = new Interface (name, get_current_src ());
+ var iface = new Interface (element_get_string (ArgumentType.NAME, "name"), get_current_src ());
iface.access = SymbolAccessibility.PUBLIC;
iface.external = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]