]> git.ipfire.org Git - thirdparty/vala.git/commit
codegen: Handle non-default AsyncResult parameter position
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 10 Dec 2018 15:07:46 +0000 (16:07 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Tue, 11 Dec 2018 13:18:35 +0000 (14:18 +0100)
commit013bb64cc8ef97326db1a44affcf420b0bc941cf
tree60e565a6e69db8eb692fd87d0d4a1a8bf0ca2607
parent3763b4c6c296fa3bc467050ae50e1dc320e85039
codegen: Handle non-default AsyncResult parameter position

Unfortunately gdbus-codegen puts the AsyncResult parameter after possible
out-parameters therefore there is an "async_result_pos" attribute required
to handle this correctly.

Vala supposely follows the common practice to put the AsyncResult before
out-parameters by default.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/709
codegen/valaccode.vala
codegen/valaccodebasemodule.vala
codegen/valaccodemethodcallmodule.vala
codegen/valagasyncmodule.vala
codegen/valagdbusclientmodule.vala
tests/Makefile.am
tests/asynchronous/result-pos.vala [new file with mode: 0644]
tests/gir/async-result-pos.test [new file with mode: 0644]
vala/valagirparser.vala
vala/valamethod.vala
vala/valausedattr.vala