]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girparser: Mark methods and properties as extern
authorJürg Billeter <j@bitron.ch>
Tue, 22 Feb 2011 08:04:17 +0000 (09:04 +0100)
committerJürg Billeter <j@bitron.ch>
Tue, 22 Feb 2011 08:04:17 +0000 (09:04 +0100)
Fixes bug 642611.

vala/valagirparser.vala

index e2ef05dc2ecc9c167e22cef9b5c3ab03c756464d..53fd2e40bdad15dcd9e71ab15ff0a54766d269e2 100644 (file)
@@ -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;