]>
git.ipfire.org Git - thirdparty/vala.git/log
Rico Tzschichholz [Sat, 23 Oct 2021 13:27:12 +0000 (15:27 +0200)]
vala: Implement CodeWriter.visit_foreach_statement()
Rico Tzschichholz [Sat, 23 Oct 2021 13:27:12 +0000 (15:27 +0200)]
parser: Make sure ErrorCodes are accessible as needed
Rico Tzschichholz [Sat, 23 Oct 2021 13:27:12 +0000 (15:27 +0200)]
codegen: Use ErrorType.error_domain if possible
Rico Tzschichholz [Sat, 23 Oct 2021 13:27:12 +0000 (15:27 +0200)]
vala: Report error for non ErrorType in throws
Rico Tzschichholz [Sat, 23 Oct 2021 13:27:12 +0000 (15:27 +0200)]
tests: Add "no error type in catch" tests to increase coverage
Rico Tzschichholz [Sat, 23 Oct 2021 13:27:12 +0000 (15:27 +0200)]
vala: Replace and drop UnaryExpression.find_member_access()
Rico Tzschichholz [Sat, 23 Oct 2021 13:27:12 +0000 (15:27 +0200)]
tests: Add invalid "unary decrement" test to increase coverage
Rico Tzschichholz [Sat, 23 Oct 2021 13:27:12 +0000 (15:27 +0200)]
tests: Add more invalid "(un)lock" tests to increase coverage
Rico Tzschichholz [Thu, 21 Oct 2021 15:42:37 +0000 (17:42 +0200)]
vala: Correctly output signature of callable throwing error
Rico Tzschichholz [Thu, 21 Oct 2021 11:34:51 +0000 (13:34 +0200)]
vala: Really check compatiblity of error types for delegate symbol
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1242
Rico Tzschichholz [Tue, 19 Oct 2021 06:25:14 +0000 (08:25 +0200)]
Sync NEWS from 0.54
Rico Tzschichholz [Mon, 18 Oct 2021 10:23:21 +0000 (12:23 +0200)]
tests: Split "Variant (de)serialization" test to trigger one error at a time
Rico Tzschichholz [Mon, 18 Oct 2021 10:23:21 +0000 (12:23 +0200)]
tests: Extend "access virtual signal of interface" test to increase coverage
Rico Tzschichholz [Mon, 18 Oct 2021 10:23:21 +0000 (12:23 +0200)]
tests: Add more invalid "member access" tests to increase coverage
Rico Tzschichholz [Mon, 18 Oct 2021 10:23:21 +0000 (12:23 +0200)]
tests: Add missing tests/enums/bug614424.c-expected
Rico Tzschichholz [Mon, 18 Oct 2021 07:19:07 +0000 (09:19 +0200)]
tests: Add "instance access to implicit to_string() method of enum" test
Rico Tzschichholz [Mon, 18 Oct 2021 07:02:33 +0000 (09:02 +0200)]
tests: Add invalid "target/destroy access" tests to increase coverage
Rico Tzschichholz [Sun, 17 Oct 2021 07:15:58 +0000 (09:15 +0200)]
vala: Set more missing source references of CodeNode instances
Rico Tzschichholz [Sun, 17 Oct 2021 07:15:58 +0000 (09:15 +0200)]
codegen: Move some errors to semantic analyzer pass
Rico Tzschichholz [Sun, 17 Oct 2021 07:15:58 +0000 (09:15 +0200)]
parser: Don't bail parsing of yield expression on error
Reporting the error is enough to handle this properly.
Rico Tzschichholz [Sun, 17 Oct 2021 07:15:58 +0000 (09:15 +0200)]
tests: Avoid causing unrelated errors in invalid test cases
Rico Tzschichholz [Sun, 17 Oct 2021 07:15:58 +0000 (09:15 +0200)]
tests: Add more "type-arguments" tests to increase coverage
Rico Tzschichholz [Sun, 17 Oct 2021 07:15:58 +0000 (09:15 +0200)]
tests: Rename invalid yield-return test to avoid conflict
Rico Tzschichholz [Thu, 14 Oct 2021 17:44:55 +0000 (19:44 +0200)]
codegen: Actually free data when using "remove(_all)" on GLib.Queue/(S)List
When using e.g. GLib.List.remove() there is no context/feedback whether an
item was removed or needed manual free'ing.
Replace such calls with custom wrappers where items required free'ing if
they were found.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1238
Rico Tzschichholz [Fri, 15 Oct 2021 10:02:21 +0000 (12:02 +0200)]
vala: More thorough check of ValueType and set CodeNode.error on failure
Rico Tzschichholz [Fri, 15 Oct 2021 10:02:21 +0000 (12:02 +0200)]
vala: No need to run return_type.check() twice for method
Rico Tzschichholz [Fri, 15 Oct 2021 10:02:21 +0000 (12:02 +0200)]
tests: Add more "type-arguments" tests to increase coverage
Rico Tzschichholz [Fri, 15 Oct 2021 10:02:21 +0000 (12:02 +0200)]
tests/girwriter: Add missing type-argument
Rico Tzschichholz [Fri, 15 Oct 2021 10:21:48 +0000 (12:21 +0200)]
gee: Add missing type-arguments
Rico Tzschichholz [Tue, 5 Oct 2021 13:14:27 +0000 (15:14 +0200)]
girparser: Add support for "ref_/ref_sink_/unref_function" metadata for classes
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1233
wxx [Thu, 14 Oct 2021 09:48:00 +0000 (17:48 +0800)]
vala: Parameter following ellipsis parameter is not allowed
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1237
Rico Tzschichholz [Wed, 29 Sep 2021 16:16:35 +0000 (18:16 +0200)]
glib-2.0: Add Unicode 14.0 symbols
Rico Tzschichholz [Tue, 28 Sep 2021 22:29:20 +0000 (00:29 +0200)]
Set TypeParameter as symbol of GenericType
Rico Tzschichholz [Tue, 28 Sep 2021 15:42:47 +0000 (17:42 +0200)]
vala: Drop RealLiteral.get_type_name()
Rico Tzschichholz [Tue, 28 Sep 2021 12:13:12 +0000 (14:13 +0200)]
vala: Set source references of created DataType instances in OCE
This improves error message for expected type arguments.
Rico Tzschichholz [Fri, 1 Oct 2021 07:06:39 +0000 (09:06 +0200)]
vala: Preserve the source reference when resolving data types
Rico Tzschichholz [Tue, 28 Sep 2021 13:09:25 +0000 (15:09 +0200)]
vala: Add optional SourceReference parameter to DataType classes
Rico Tzschichholz [Tue, 28 Sep 2021 14:03:48 +0000 (16:03 +0200)]
Bump version suffix to 0.56
Rico Tzschichholz [Wed, 29 Sep 2021 16:16:53 +0000 (18:16 +0200)]
glib-2.0: Update 2.70 symbols
Rico Tzschichholz [Wed, 29 Sep 2021 15:38:33 +0000 (17:38 +0200)]
gtk4: Update to 4.5.0~
da5efea6
Rico Tzschichholz [Wed, 29 Sep 2021 15:38:01 +0000 (17:38 +0200)]
gio-2.0: Update to 2.71.0~
a0d2efdc
Rico Tzschichholz [Tue, 28 Sep 2021 15:36:50 +0000 (17:36 +0200)]
tests: Add "integer/float literal" tests to increase coverage
Rico Tzschichholz [Wed, 29 Sep 2021 06:41:41 +0000 (08:41 +0200)]
tests: Add missing generics/null-type.c-expected
Rico Tzschichholz [Sun, 26 Sep 2021 11:49:51 +0000 (13:49 +0200)]
vala: Accept NullType as generic type argument
Rico Tzschichholz [Sat, 25 Sep 2021 13:52:51 +0000 (15:52 +0200)]
docs: Add myself to AUTHORS
Rico Tzschichholz [Sat, 25 Sep 2021 13:35:42 +0000 (15:35 +0200)]
docs: Bump vala version references in README.md
Rico Tzschichholz [Sat, 25 Sep 2021 13:31:28 +0000 (15:31 +0200)]
build: At least valac 0.16.1 is required
Rico Tzschichholz [Wed, 22 Sep 2021 11:44:35 +0000 (13:44 +0200)]
vala: Multi-dimensional params-array not allowed
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1230
Rico Tzschichholz [Tue, 21 Sep 2021 10:51:51 +0000 (12:51 +0200)]
Release 0.54.1
Rico Tzschichholz [Tue, 21 Sep 2021 06:00:11 +0000 (08:00 +0200)]
gtk4: Update to 4.5.0~
3e20ecd6
Rico Tzschichholz [Tue, 21 Sep 2021 05:59:50 +0000 (07:59 +0200)]
gstreamer: Update from 1.19.0+ git master
Rico Tzschichholz [Mon, 20 Sep 2021 19:57:27 +0000 (21:57 +0200)]
codegen: Sealed class in external package is not special
Don't falsely generate macros and typedefs leading to conflicts
Regression of
7ebb25ffa2226a8a098b8b1ea2cef64d1015b4de
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1229
Rico Tzschichholz [Sat, 18 Sep 2021 21:30:31 +0000 (23:30 +0200)]
codegen: Add type declaration for implicit temporary local variable
Rico Tzschichholz [Fri, 17 Sep 2021 06:27:57 +0000 (08:27 +0200)]
Release 0.54.0
Rico Tzschichholz [Wed, 15 Sep 2021 12:38:19 +0000 (14:38 +0200)]
vala: Don't restrict element type of GLib.Array
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1227
Gustav Hartvigsson [Tue, 14 Sep 2021 17:48:03 +0000 (19:48 +0200)]
valadoc: Correctly format background of inline @link's
Tested in Firefox, Chromium and Gnome Web.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1226
Rico Tzschichholz [Tue, 14 Sep 2021 21:28:43 +0000 (23:28 +0200)]
tests: Add missing cast-void-not-allowed.c-expected
Rico Tzschichholz [Tue, 14 Sep 2021 21:28:43 +0000 (23:28 +0200)]
vala: Warn about unsupported cast to void and drop it
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1070
Rico Tzschichholz [Tue, 7 Sep 2021 07:51:06 +0000 (09:51 +0200)]
gio-2.0: Unhide a few usable symbols which are marked not introspectable
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1222
Rico Tzschichholz [Sat, 4 Sep 2021 17:55:41 +0000 (19:55 +0200)]
Release 0.53.2
Rico Tzschichholz [Fri, 3 Sep 2021 13:16:40 +0000 (15:16 +0200)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Fri, 3 Sep 2021 13:15:59 +0000 (15:15 +0200)]
gtk4: Update to 4.5.0~
e681fdd9
Rico Tzschichholz [Fri, 3 Sep 2021 13:15:25 +0000 (15:15 +0200)]
gstreamer: Update from 1.19.0+ git master
Rico Tzschichholz [Thu, 1 Nov 2018 17:38:02 +0000 (18:38 +0100)]
glib-2.0: Add RefString since 2.58
Thanks to Jiří Janoušek
See https://gitlab.gnome.org/GNOME/vala/issues/666
Fixes https://gitlab.gnome.org/GNOME/vala/issues/723
Rico Tzschichholz [Tue, 31 Aug 2021 14:28:05 +0000 (16:28 +0200)]
codegen: Add missing cast to access base-class members in class/static ctor
Regression of
9cbd53b8d79aa4c394ddf49e766f2c15fc476906
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1221
Rico Tzschichholz [Mon, 30 Aug 2021 07:55:32 +0000 (09:55 +0200)]
glib-2.0: Current constants in GLib.Math are part of glib.h
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1220
Princeton Ferro [Mon, 30 Aug 2021 02:02:26 +0000 (22:02 -0400)]
codegen: Fix property access inside opaque compact class
Avoid using "priv" when accessing a private or internal field backing a
property of a compact class.
Rico Tzschichholz [Sat, 28 Aug 2021 17:41:09 +0000 (19:41 +0200)]
gtk4: Update to 4.5.0~
2db8d7f6
Rico Tzschichholz [Sat, 28 Aug 2021 17:40:13 +0000 (19:40 +0200)]
pango: Update to 1.49.0+
54e1aed0
Rico Tzschichholz [Sat, 28 Aug 2021 17:39:56 +0000 (19:39 +0200)]
gstreamer: Update from 1.19.0+ git master
Rico Tzschichholz [Fri, 20 Aug 2021 12:18:38 +0000 (14:18 +0200)]
Release 0.53.1
Princeton Ferro [Thu, 15 Jul 2021 06:32:00 +0000 (02:32 -0400)]
girwriter: Improve struct creation method binding
Struct creation methods are supposed to have `void` return type and take
an implicit `self` as the first instance parameter.
Rico Tzschichholz [Wed, 18 Aug 2021 10:36:04 +0000 (12:36 +0200)]
webkit2gtk-4.0: Update to 2.33.3
Rico Tzschichholz [Tue, 17 Aug 2021 11:26:40 +0000 (13:26 +0200)]
tests: Add more "null-safe access" tests to increase coverage
See https://gitlab.gnome.org/GNOME/vala/issues/1216
Rico Tzschichholz [Tue, 17 Aug 2021 06:42:15 +0000 (08:42 +0200)]
Sync NEWS from 0.52
wxx [Tue, 3 Aug 2021 15:07:49 +0000 (23:07 +0800)]
vala: Disallow resize() for constant arrays
See https://gitlab.gnome.org/GNOME/vala/issues/944
Ole André Vadla Ravnås [Thu, 8 Jul 2021 23:59:07 +0000 (01:59 +0200)]
gobject-2.0: Fix the Closure.invoke() signature
The return value must be initialized by the caller, as is clear from
GLib's internal callers, and e.g. dummy_closure_marshal() on the callee
side. So it appears the GLib type annotation is incorrect, as it
specifies `out` but should be `inout`.
Rico Tzschichholz [Tue, 10 Aug 2021 15:09:06 +0000 (17:09 +0200)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Tue, 10 Aug 2021 15:08:51 +0000 (17:08 +0200)]
gstreamer: Update from 1.19.0+ git master
Rico Tzschichholz [Tue, 10 Aug 2021 15:08:07 +0000 (17:08 +0200)]
gtk4: Update to 4.3.2+
04f3c805
Rico Tzschichholz [Tue, 10 Aug 2021 12:03:08 +0000 (14:03 +0200)]
girwriter: Write missing c:type attribute of compact class record
Thanks to Niels De Graef
Jeremy Philippe [Wed, 18 Dec 2019 15:54:05 +0000 (16:54 +0100)]
vala: Add support for null-safe access operator
This implements support for the "null-safe" operator of C#
(also called "safe navigation" operator).
var foo = bar?.foo;
var foo = bar?.foo();
var foo = bar?[3];
var foo = bar?[1:2];
It applies to plain member access, method calls, element access and
slice expressions (including void method calls, which are simply bypassed
if the inner expression is null).
Fixes https://gitlab.gnome.org/GNOME/vala/issues/522
Rico Tzschichholz [Fri, 6 Aug 2021 06:40:31 +0000 (08:40 +0200)]
Slightly improve source_reference for get_dup_func_expression()
Rico Tzschichholz [Tue, 27 Jul 2021 12:55:22 +0000 (14:55 +0200)]
Add support for sealed classes
Fixes https://gitlab.gnome.org/GNOME/vala/issues/278
Rico Tzschichholz [Tue, 27 Jul 2021 12:34:39 +0000 (14:34 +0200)]
girparser: Add support for "final" class attribute
Rico Tzschichholz [Thu, 5 Aug 2021 15:14:48 +0000 (17:14 +0200)]
girwriter: Fix position of "result" parameter for struct constructor
Thanks to Princeton Ferro
Rico Tzschichholz [Thu, 5 Aug 2021 13:16:50 +0000 (15:16 +0200)]
Regenerate GIR-based bindings for improved instance method detection
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1210
Rico Tzschichholz [Tue, 3 Aug 2021 16:11:06 +0000 (18:11 +0200)]
girparser: Improve instance method detection
See https://gitlab.gnome.org/GNOME/vala/issues/1210
Rico Tzschichholz [Tue, 3 Aug 2021 16:11:06 +0000 (18:11 +0200)]
girparser: Add "move-to" value of functions as Version.replacement
Rico Tzschichholz [Tue, 3 Aug 2021 16:11:06 +0000 (18:11 +0200)]
girparser: Never skip "function" elements
Princeton Ferro [Thu, 15 Jul 2021 03:52:59 +0000 (23:52 -0400)]
girwriter: Add explicit writable attribute to all field elements
This addresses issues with bindings to Vala structs.
Princeton Ferro [Thu, 15 Jul 2021 06:31:32 +0000 (02:31 -0400)]
vala: this_parameter property for subroutines is nullable
Rico Tzschichholz [Sun, 18 Jul 2021 06:28:52 +0000 (08:28 +0200)]
tests: Don't check generated C for conditional glib test
Rico Tzschichholz [Sat, 17 Jul 2021 06:35:06 +0000 (08:35 +0200)]
vala: Rely on DataType.to_qualified_string() implementation for error-types
DataType.type_symbol is properly initialized and can be used.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1206
Rico Tzschichholz [Sun, 23 May 2021 15:50:12 +0000 (17:50 +0200)]
tests: Add expected generated C sources
Rico Tzschichholz [Sun, 23 May 2021 15:48:49 +0000 (17:48 +0200)]
testrunner: Allow checking generated C sources
satmandu [Thu, 15 Jul 2021 14:55:22 +0000 (14:55 +0000)]
docs: Update bootstrap instructions in README.md
Rico Tzschichholz [Thu, 15 Jul 2021 10:35:41 +0000 (12:35 +0200)]
codegen: Fix params-array in constructor for struct
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1202
Princeton Ferro [Thu, 15 Jul 2021 07:08:11 +0000 (07:08 +0000)]
glib-2.0: Add Uri.to_string/to_string_partial() (since 2.66)
Rico Tzschichholz [Mon, 12 Jul 2021 05:43:32 +0000 (07:43 +0200)]
codegen: Use detroy_value() for delete statement
It is required to deal with special free functions here.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1201