summaryrefslogtreecommitdiff
path: root/vala/valabinaryexpression.vala
Commit message (Collapse)AuthorAgeFilesLines
* parser: Properly handle chained equality expressionswszqkzqk2022-12-221-9/+35
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1385
* vala: NullLiteral is not a valid argument for string concatenationwxx2021-12-081-1/+3
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1260
* Revert "Use ErrorType-based collection for CodeNode.get_error_types()"Rico Tzschichholz2021-10-251-1/+1
| | | | | | Unfortunately, it is causing issues with the way the GIR/GIDL parser works. This reverts commit 0751a9e3bf46fc830d3e7ca3d0cfd3ae48846e68.
* Use ErrorType-based collection for CodeNode.get_error_types()Rico Tzschichholz2021-10-231-1/+1
|
* vala: Don't allow "in" operation with different enum typesRico Tzschichholz2021-02-211-0/+5
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1139
* vala: Infer needle type for "in" expression on enumRico Tzschichholz2021-02-211-0/+5
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1138
* Revert errornous git pushRico Tzschichholz2020-11-141-5/+5
| | | | | | | This reverts commit 9319f309dd97532a3174de995a83884739d70460. This reverts commit 9ccdd25eaf0c57ac0cb18380b81d76a9d7113f7f. This reverts commit 6689c356dade08a0d04a4d6f3add15a71125e925. This reverts commit 4f560d0bb2753bed14b2f0688f2d3e686a39d6ca.
* vala: More copying of dedicated data-type instances for code-nodesRico Tzschichholz2020-11-141-5/+5
|
* vala: Use DataType.compatible() to check for string concatenationRico Tzschichholz2020-11-021-3/+3
| | | | | | | Make the checks match the ones performed by the code-generator to prevent invalid c-code to be created. See https://gitlab.gnome.org/GNOME/vala/issues/1100
* vala: Make use of new printf-like API of Report.*()Rico Tzschichholz2020-10-261-10/+10
|
* Fix various typos in comments and stringsRico Tzschichholz2020-08-191-1/+1
| | | | See https://gitlab.gnome.org/GNOME/vala/issues/1063
* vala: Fix code indentationRico Tzschichholz2020-07-171-2/+2
|
* vala: Remove some public API from expressions and statementsRico Tzschichholz2020-03-241-3/+3
|
* vala: Properly set CodeNode.error when reporting an errorRico Tzschichholz2020-02-101-0/+1
|
* vala: Fix short-circuiting behavior of coalescing operatorJeremy Philippe2020-01-111-10/+27
| | | | | | | It is closely modeled after how ConditionalExpression implements short-circuiting behavior. Fixes https://gitlab.gnome.org/GNOME/vala/issues/534
* vala: Non-nullable value-type in coalesce expression needs to be copiedJeremy Philippe2020-01-081-0/+6
| | | | | | | | The code generated by the coalesce expression could lead to stale pointers to the stack if the right-side expression is an immediate value (such as an integer literal or a struct). Fixes https://gitlab.gnome.org/GNOME/vala/issues/893
* vala: Infer target_type in coalescing expressionsJeremy Philippe2020-01-081-0/+5
| | | | | | Correctly handle reference tranfers of inner expressions. Fixes https://gitlab.gnome.org/GNOME/vala/issues/892
* vala: Do not allow += for arrays with fixed lengthFlorian Brosch2019-10-291-0/+4
|
* vala: Don't falsely resolve binary-expression to boolRico Tzschichholz2019-10-241-1/+7
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/869
* vala: Replace if-else-tree with switch in BinaryExpression.check()Rico Tzschichholz2019-10-131-24/+39
|
* vala: Micro optimizationsRico Tzschichholz2019-09-301-3/+3
|
* vala: Rename DataType.data_type property to DataType.type_symbolRico Tzschichholz2019-09-301-10/+10
|
* vala: Implicit GValue cast requires GOBJECT profileRico Tzschichholz2019-07-191-17/+19
| | | | | | | This fixes criticals like vala_data_type_get_data_type: assertion 'self != NULL' failed Regression of 7d771a0c07d63cb7605cbdc28dd8df50719731f8
* vala: Report error for unsupported operator instead of assertionRico Tzschichholz2019-03-271-1/+3
|
* codegen: Move implicit GValue cast for comparison to BinaryExpressionRico Tzschichholz2019-03-251-0/+20
| | | | | | | | | Handle "==" and "!=" only as it was done before. This generates correct c-code for boxed simple-types and will perform value-based comparisons. See https://bugzilla.gnome.org/show_bug.cgi?id=585063
* vala: More regular invocations of check() on inferred Expression.value_typeRico Tzschichholz2019-03-061-0/+2
|
* vala: Report invalid instance member access to propertyRico Tzschichholz2018-12-311-2/+2
| | | | See https://gitlab.gnome.org/GNOME/vala/issues/605
* vala: Add BinaryOperator.to_string()Rico Tzschichholz2018-11-151-28/+28
|
* vala: Fix and add more to_string() methods to expressionsLuca Bruno2018-10-231-1/+1
|
* Collect error_types on demand to allow transformationsLuca Bruno2018-10-231-0/+5
|
* vala: Always analyze nodes after they are inserted into the ASTLuca Bruno2018-10-231-3/+6
|
* Drop trailing spaces/tabsRico Tzschichholz2018-03-271-8/+8
| | | | It was about time to do this.
* vala: Add dedicated BinaryExpression.chained() constructorRico Tzschichholz2017-12-141-3/+12
|
* vala: Allow unscoped enum values where possibleRico Tzschichholz2017-11-191-0/+18
| | | | | | | | | If the scope for an enumeration value can be determined from current context it is possible to omit the enum's scope. Based on patch by Timo Kluck https://bugzilla.gnome.org/show_bug.cgi?id=666035
* vala: Handle non-null in coalescing expressionMarvin W2017-04-171-4/+29
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=611223
* vala: Avoid superfluous string copyingRico Tzschichholz2016-10-301-1/+1
|
* vala: Check accessibility of default argumentsSimon Werbeck2016-10-061-0/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=648030
* Fix parameter names in the documentation for libvalaBen Iofel2015-11-111-5/+5
| | | | Fixes bug 755917
* Support XOR operation for booleansLuca Bruno2014-12-051-3/+3
| | | | Fixes bug 729907
* Fix critical when using binary expression in a generics contextLuca Bruno2014-08-291-0/+1
| | | | Fixes bug 735117
* Fix comparison of nullable value typesSimon Werbeck2014-06-301-6/+6
| | | | Fixes bug 678791
* Fix regression when coalescing: value owned if either of the two is ownedLuca Bruno2014-01-261-2/+18
|
* Avoid unnecessary copies when using the coalescing operatorLuca Bruno2014-01-261-13/+9
| | | | Fixes bug 661985
* Fix semantics for coalesce operator when target_type is null.Luca Bruno2014-01-261-3/+11
| | | | Fixes bug 639482
* Fix coalescing operator semantics check.Luca Bruno2014-01-111-1/+5
| | | | | | | The left operand was not put in any code block before the check, thus it wasn't able to transform itself. Fixes bug 691514.
* Drop Dova profileJürg Billeter2012-08-061-43/+2
|
* Improve error message for static access to instance variablesGeert Jordaens2012-08-021-0/+11
| | | | Fixes bug 642254.
* Enable flow analysis for out parametersLuca Bruno2011-07-151-2/+2
| | | | Fixes bug 638363.
* Fix arithmetic expressions whose operands have different typesLuca Bruno2011-07-051-5/+14
|
* Fix binary operations between nullable typesLuca Bruno2011-04-091-12/+25
| | | | | | Based on patch by Geert Jordaens. Fixes bug 591552.