summaryrefslogtreecommitdiff
path: root/vala
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* girparser: Pick up type_id of error domainsRico Tzschichholz2022-02-241-2/+1
|
* codegen: Emit GType definition for error domainsRico Tzschichholz2022-02-241-0/+16
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/699
* vala: Allow delegate without target to be used as constant typeRico Tzschichholz2022-02-221-0/+3
|
* vala: Keep error-code symbol reference in callable expression contextRico Tzschichholz2022-02-221-2/+4
|
* vala: Add common CallableExpression.call property APIRico Tzschichholz2022-02-223-6/+15
|
* vala: Drop unused MemberAccess.creation_member property APIRico Tzschichholz2022-02-224-15/+1
|
* vala: Member reference for ObjectCreationExpression is never nullRico Tzschichholz2022-02-221-62/+48
|
* vala: Only add catch clause if an inner error is possibleRico Tzschichholz2022-02-111-7/+11
| | | | See d9f702289b4b39683d0c9361e1ea02fd51ecae22
* vala: Catch and throw possible inner error of lock statementsRico Tzschichholz2022-02-101-1/+9
| | | | | | See 40c1dbfbfedb6c4a6b88df045eb1c2e7bdd38d93 Fixes https://gitlab.gnome.org/GNOME/vala/issues/83
* vala: Clear SemanticAnalyzer.current_{symbol,source_file} when not needed ↵Rico Tzschichholz2022-02-091-0/+3
| | | | anymore
* vala: Free empty stack list for code contextsRico Tzschichholz2022-02-091-0/+5
| | | | | | While having the stack list created on demand, make sure to destroy it when it is not required anymore. Otherwise it will be leaked without an option to avoid that to happen.
* vala: Remove some public API from symbols and typesRico Tzschichholz2022-02-065-6/+6
|