summaryrefslogtreecommitdiff
path: root/vala
Commit message (Collapse)AuthorAgeFilesLines
* girparser: Classes are considered sealed when there were no fields foundRico Tzschichholz2023-04-162-1/+11
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1036
* vala: Don't make GenericType nullable by defaultRico Tzschichholz2023-04-144-12/+11
| | | | | | Allow equality between nullable and non-nullable generic-types for now Fixes https://gitlab.gnome.org/GNOME/vala/issues/1191
* vala: Improve check of type_referene in ObjectCreationExpressionLorenz Wildberg2023-04-111-14/+12
|
* vala: Check type-arguments in more declarationsRico Tzschichholz2023-04-117-12/+7
|
* girparser: Add support for type_parameters, implements and prerequisites ↵Rico Tzschichholz2023-04-111-1/+129
| | | | metadata
* vala: Don't report consequential error when base_method is incompatible alreadyRico Tzschichholz2023-04-111-1/+2
|
* vala: Add GenericSymbol interface for symbols supporting type-parametersRico Tzschichholz2023-04-118-18/+69
|
* vala: Improve error message for wrong number of type-argumentsRico Tzschichholz2023-04-082-4/+4
|
* vala: Improve Symbol.to_string() to include TypeParametersRico Tzschichholz2023-04-081-1/+27
|
* Use already available glib_ns instead of root_symbol.scope.lookup ("GLib")Rico Tzschichholz2023-04-081-1/+1
|
* vala: Check type-argument count of interface prerequisitesRico Tzschichholz2023-04-081-0/+6
| | | | Additionally add test case for type-argument count of class base-types
* girparser: Apply "instance_idx" metadata for delegatesRico Tzschichholz2023-04-061-0/+7
|
* codegen: Stabilize CCode.cname for backing method of lamdba expressionRico Tzschichholz2023-04-061-3/+1
| | | | Move lambda_id generation to CCodeAttribute and use _vala_lambda%d_ pattern
* vala: Improve initialization of namespace fields with compound literalRico Tzschichholz2023-03-271-1/+1
| | | | | | Regression of 9c35019ef300082243ef7c71c22088c52d3db38e Fixes https://gitlab.gnome.org/GNOME/vala/issues/1424
* vala: Owned property accessors are not allowed for non-null simple typesRico Tzschichholz2023-03-211-0/+6
| | | | Additionally drop invalid g_value_take_* references for enums
* vala: Allow assignment of namespace fields with inline allocated arraysRico Tzschichholz2023-03-201-1/+4
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/945
* vala: Set proper value-type of unary ref/out expression in initializersRico Tzschichholz2023-03-192-5/+7
| | | | | | So the expected pointer-type for these expressions is available in AST. Fixes https://gitlab.gnome.org/GNOME/vala/issues/1421
* vala: Correctly handle pre/post-increment expression as index of element accessRico Tzschichholz2023-03-081-1/+1
| | | | | | Regression of cb1828cfc5273aca752de9b39a77e0cd53305e61 Fixes https://gitlab.gnome.org/GNOME/vala/issues/1417
* Require and target GLib >= 2.56Rico Tzschichholz2023-02-281-1/+1
| | | | | | | The next stable release of vala will happen over 5 years after the release of GLib 2.56.0. Fixes https://gitlab.gnome.org/GNOME/vala/issues/1415
* vala: Replace '.' with ':' in SourceReference.to_string()Lorenz Wildberg2023-02-261-1/+1
| | | | | This makes it possible to click on the file path and let the location being opened in the editor.
* vala: Better handling of [NoReturn] call inside finally clauseRico Tzschichholz2023-02-061-1/+3
| | | | | | | | | This caused the following criticals: vala_flow_analyzer_jump_target_construct_finally_clause: assertion 'last_block != NULL' failed vala_flow_analyzer_jump_target_get_is_exit_target: assertion 'self != NULL' failed vala_flow_analyzer_jump_target_get_is_error_target: assertion 'self != NULL' failed vala_flow_analyzer_jump_target_get_is_finally_clause: assertion 'self != NULL' failed
* vala: Allow more general usage of PropertyAccessor.get_method()Rico Tzschichholz2023-02-051-1/+1
|
* vala: Inherit more important attributes for PropertyAccessor methodRico Tzschichholz2023-02-051-0/+7
|
* vala: Add support for Hexadecimal floating point literalswszqkzqk2023-01-302-5/+46
| | | | https://gcc.gnu.org/onlinedocs/gcc/Hex-Floats.html#Hex-Floats
* vala: Improve missing exponent check for real literalsRico Tzschichholz2023-01-301-1/+1
|
* vala: Improve compatibility type checks of array elements in assignmentsRico Tzschichholz2023-01-301-0/+6
|
* codegen: Add foreach support for stringsFrederik Zipp2023-01-111-0/+2
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/108
* parser: Support one-line declaration of multiple fields in classes/structswszqkzqk2023-01-051-35/+38
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/6
* vala: Allow to use store_field() for initializationsRico Tzschichholz2023-01-042-2/+2
|
* vala,libvaladoc: Properly check for colored terminal output on Windowswszqkzqk2023-01-041-2/+5
| | | | | | Additionally look for `_isatty()` and adjust for more possible results Fixes https://gitlab.gnome.org/GNOME/vala/issues/1383
* parser: Properly handle chained equality expressionswszqkzqk2022-12-222-32/+39
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1385
* parser: Move parsing of IS and AS type checks to dedicated functionRico Tzschichholz2022-12-222-36/+34
|
* vala: Add support for binary/octal integer literal星外之神2022-12-083-30/+137
|
* vala: Improve integer literal checksRico Tzschichholz2022-12-081-1/+30
|
* Fix output decoding error of non-ASCII character on Win32wszqkzqk2022-11-272-6/+6
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1379
* Actually use printf-like way of Report.*()Rico Tzschichholz2022-11-201-4/+4
|
* vala: Fix assignment operators for element accessSimon Werbeck2022-11-141-0/+30
| | | | | | | This transforms an assignment to element access other than `=' to a binary expression i.e. `a[b] += 1' will become `a.set(a.get(b) + 1)' Fixes https://gitlab.gnome.org/GNOME/vala/issues/135
* vala: Minor scanner optimizationwszqkzqk2022-11-142-10/+10
|
* vala: Add support for verbatim template string星外之神2022-10-306-22/+90
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1373
* vala: Report error in real literal if exponent has no digits星外之神2022-10-261-0/+5
|
* vala: Avoid problems with '\' in #line directives on Windows星外之神2022-08-281-1/+8
| | | | | | | | | | | Replace '\' with '/' in SourceFile.relative_path like in CodeContext.realpath(). F:/msys64/home/x/test/test.vala.c: In function '_vala_main': F:/msys64/home/x/test/test.vala.c:12:9: warning: unknown escape sequence: '\M' 12 | #line 3 "C:\MyFiles\test.vala" | ^~~~~~~~~~~~~~~~~~~~~~ Fixes https://gitlab.gnome.org/GNOME/vala/issues/1353
* vala: Make try-statement parsing more resilientRico Tzschichholz2022-08-151-1/+3
| | | | | | Regression of f5934184d050d1a19f394fdab6f2ee66ff30965f Fixes https://gitlab.gnome.org/GNOME/vala/issues/1304
* vala: Enforce required type-arguments on parameter/return types of callablesRico Tzschichholz2022-08-094-0/+18
| | | | | | This stricter check applies to delegate types in source files only. Fixes https://gitlab.gnome.org/GNOME/vala/issues/1342
* vala: Don't unconditionally expect ObjectType of ClassRico Tzschichholz2022-07-301-1/+1
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1341
* vala: Avoid critical in SourceFile.get_mapped_length()Rico Tzschichholz2022-06-141-0/+4
| | | | See https://gitlab.gnome.org/GNOME/vala/issues/1330
* vala: Improve accessibility check inside member initializerRico Tzschichholz2022-04-042-4/+44
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1300
* vala: Don't allow nullable enum value as real GObject propertyRico Tzschichholz2022-03-291-0/+4
| | | | | | It is basically a boxed integer value. Fixes https://gitlab.gnome.org/GNOME/vala/issues/1074
* girparser: Don't count instance-parameter when checking for backwards ↵Rico Tzschichholz2022-03-041-2/+4
| | | | | | closure reference Fixes https://gitlab.gnome.org/GNOME/vala/issues/721
* girparser: Add support for "copy_/free_function" metadata for compact classesRico Tzschichholz2022-02-281-0/+8
|
* girparser: Handle duplicated and unnamed symbolsRico Tzschichholz2022-02-281-0/+12
| | | | Issue warnings and skip such symbols to avoid errors on vala's side.