]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girparser: Set vfunc_name for virtual methods if name differs from invoker
authorLuca Bruno <lucabru@src.gnome.org>
Sun, 5 Jun 2011 09:16:16 +0000 (11:16 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Sun, 5 Jun 2011 09:17:06 +0000 (11:17 +0200)
vala/valagirparser.vala

index ddcdbb285052f4d84d427223a874747733344208..da2c0821915d3efc3b7cba29a01a696d93db2e59 100644 (file)
@@ -2465,6 +2465,10 @@ public class Vala.GirParser : CodeVisitor {
                                ((Method) s).is_virtual = true;
                                if (invoker == null && !metadata.has_argument (ArgumentType.VFUNC_NAME)) {
                                        s.attributes.append (new Attribute ("NoWrapper", s.source_reference));
+                               } else {
+                                       if (current.girdata["name"] != name) {
+                                               ((Method) s).vfunc_name = current.girdata["name"];
+                                       }
                                }
                        }
                } else if (element_name == "function") {