[vala] girparser: Mark methods and properties as extern
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] girparser: Mark methods and properties as extern
- Date: Tue, 22 Feb 2011 08:05:27 +0000 (UTC)
commit b327760f086782892d8b9e486ccf6903af7a2675
Author: Jürg Billeter <j bitron ch>
Date: Tue Feb 22 09:04:17 2011 +0100
girparser: Mark methods and properties as extern
Fixes bug 642611.
vala/valagirparser.vala | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index e2ef05d..53fd2e4 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -2105,6 +2105,7 @@ public class Vala.GirParser : CodeVisitor {
var type = parse_type (null, null, false, out no_array_length, out array_null_terminated);
var prop = new Property (name, type, null, null, get_current_src ());
prop.access = SymbolAccessibility.PUBLIC;
+ prop.external = true;
prop.no_accessor_method = true;
prop.no_array_length = no_array_length;
prop.array_null_terminated = array_null_terminated;
@@ -2219,6 +2220,8 @@ public class Vala.GirParser : CodeVisitor {
}
}
+ s.external = true;
+
if (element_name == "virtual-method" || element_name == "callback") {
if (s is Method) {
((Method) s).is_virtual = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]