[vala] girparser: Set vfunc_name for virtual methods if name differs from invoker



commit ffd5afaab7f4930aa124165f1d4ddd8b80d83414
Author: Luca Bruno <lucabru src gnome org>
Date:   Sun Jun 5 11:16:16 2011 +0200

    girparser: Set vfunc_name for virtual methods if name differs from invoker

 vala/valagirparser.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index ddcdbb2..da2c082 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -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") {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]