GNOME Bugzilla – Bug 732460
girparser: Instance method detection broken
Last modified: 2018-01-09 16:40:26 UTC
Created attachment 279579 [details] [review] girparser: Fix instance method detection The code for detecting instance methods is broken, instead they are picked up as static methods. I attached fix, but of course this breaks API and I don't see how we could deprecate the old behavior. On the other hand, some bindings like for example gobject-introspection are pretty much unusable without this patch so any suggestions for improving it are appreciated.
Created attachment 336389 [details] [review] girparser: Improve instance method detection Improve reparenting static namespace functions to their presumably parent structures. Only allow this if the first parameter is not defined as (out) or (inout) Unfortunately, while this patch fixes detection, nothing can be done about breaking API. Based on patch by Simon Werbeck <simon.werbeck@gmail.com>
Pushed to https://git.gnome.org/browse/vala/log/?h=wip/girparser followed by a regen of gir-bindings.
Attachment 336389 [details] pushed as 1fdaa35 - girparser: Improve instance method detection