]> git.ipfire.org Git - thirdparty/vala.git/commit
girwriter: Evaluate and output non literal enum-value if it is a simple constant wip/issue/996
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 19 May 2020 12:29:06 +0000 (14:29 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 23 May 2020 08:15:53 +0000 (10:15 +0200)
commit086cd345e8d3e78901b963a8fdc0c5d74efc3a7a
tree7d31fef47282e08b3a8dc7660eba95191d2c0a16
parentf844ad1c02fb5b17e923a7ba4e69cf2a7df96a14
girwriter: Evaluate and output non literal enum-value if it is a simple constant

This avoids the output of "(null)" in the generated GIR for these cases.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/996
codegen/valagirwriter.vala
tests/girwriter/GirTest-1.0.gir-expected
tests/girwriter/girtest.vala
tests/girwriter/girtest.vapi-expected