Add support for virtual and abstract metadata attributes, patch by Andrea
authorJürg Billeter <j@bitron.ch>
Tue, 16 Sep 2008 10:26:42 +0000 (10:26 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Tue, 16 Sep 2008 10:26:42 +0000 (10:26 +0000)
2008-09-16  Jürg Billeter  <j@bitron.ch>

* vapigen/valagidlparser.vala:

Add support for virtual and abstract metadata attributes,
patch by Andrea Del Signore, fixes bug 551205

svn path=/trunk/; revision=1767

ChangeLog
vapigen/valagidlparser.vala

index c2fecb9..b99cc8d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-09-16  Jürg Billeter  <j@bitron.ch>
+
+       * vapigen/valagidlparser.vala:
+
+       Add support for virtual and abstract metadata attributes,
+       patch by Andrea Del Signore, fixes bug 551205
+
 2008-09-13  Andrea Del Signore  <sejerpz@tin.it>
 
        * vapi/libbonoboui-2.0.vapi: 
index dd8eb2a..830d371 100644 (file)
@@ -429,6 +429,10 @@ public class Vala.GIdlParser : CodeVisitor {
                                                        if (eval (nv[1]) == "1") {
                                                                cl.is_immutable = true;
                                                        }
+                                               } else if (nv[0] == "abstract" && base_class != null) {
+                                                       if (eval (nv[1]) == "1") {
+                                                               cl.is_abstract = true;
+                                                       }
                                                }
                                        }
                                }
@@ -1352,7 +1356,12 @@ public class Vala.GIdlParser : CodeVisitor {
                                        if (eval (nv[1]) == "1") {
                                                m.is_abstract = true;
                                        }
+                               } else if (nv[0] == "virtual") {
+                                       if (eval (nv[1]) == "1") {
+                                               m.is_virtual = true;
+                                       }
                                }
+
                        }
                }