]> 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, 18 Dec 2018 08:06:02 +0000 (09:06 +0100)
commit901b52af0ef0319afb731fb36df922863f7b7f6e
treea4906f479d78554fa798aad2fa46a96a2d439306
parent9a63389970781da557a37073c3ac31b6e30f5cde
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