summaryrefslogtreecommitdiff
path: root/vala/valacodewriter.vala
Commit message (Collapse)AuthorAgeFilesLines
* Add native support to specify non default length-type for arraysRico Tzschichholz2022-01-041-0/+5
| | | | | | | | | | string[:long] foo = new string[:long] { "foo" }; This applies to generated bindings where this new syntax will be picked up. It will apply a stricter variable type checking for such array types. Fixes https://gitlab.gnome.org/GNOME/vala/issues/607
* Revert "Use ErrorType-based collection for CodeNode.get_error_types()"Rico Tzschichholz2021-10-251-2/+2
| | | | | | 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-2/+2
|
* vala: Improve CodeWriter.visit_catch_clause()Rico Tzschichholz2021-10-231-3/+6
| | | | Properly output general catch clause
* vala: Implement CodeWriter.visit_foreach_statement()Rico Tzschichholz2021-10-231-0/+9
|
* codewriter: Don't write trailing ";" after body of WithStatementRico Tzschichholz2021-02-161-1/+0
|
* codewriter: Output valid vala syntax for LoopStatementRico Tzschichholz2021-02-161-1/+3
|
* vala: Rename Loop to LoopStatement and introduce a common base classRico Tzschichholz2021-02-011-1/+1
|
* codewriter: Append new-line for nested block statementsRico Tzschichholz2021-01-251-0/+3
|
* codewriter: Wrap AddressofExpression and PointerIndirection in parensRico Tzschichholz2020-12-211-2/+4
|
* vala: Make use of new printf-like API of Report.*()Rico Tzschichholz2020-10-261-1/+1
|
* Fix various typos in comments and stringsRico Tzschichholz2020-08-191-1/+1
| | | | See https://gitlab.gnome.org/GNOME/vala/issues/1063
* Add support for "with" statementNick Schrader2020-06-021-0/+10
| | | | | | | | | | | | | | | | | | | Creates data type scoped blocks which allow implicit member access to the given expression or declaration statement. with (expr) { ...; } Within the with-block the expression's members can be directly accessed without the member access operator. Members may hide local, class and instance varibales with the same name. Instance variables are still accessible through this. A local variable can be directly declared in the with statement header. Hidden local and class variables are currently not directly accessible (using this for class members generates the expected warning). Fixes https://gitlab.gnome.org/GNOME/vala/issues/327
* vala: Handle all ctors and dtors in CodeWriterRico Tzschichholz2020-03-291-0/+48
|
* vala: Handle unlock() statement in CodeWriterRico Tzschichholz2020-03-291-0/+8
|
* codewriter: Output inner interface declarationsRico Tzschichholz2020-03-061-0/+2
| | | | | | Missing in d79401ad13a4bc5121f5ae187547c53b6a0a7701 Fixes https://gitlab.gnome.org/GNOME/vala/issues/918
* Add support for sealed classes in bindingsRico Tzschichholz2020-02-191-0/+3
| | | | | | | | | The "sealed" keyword was available and parsed for a long time. So simply pick it up information and expose it in the AST. Issue an error when it is used in vala source. See https://gitlab.gnome.org/GNOME/vala/issues/278
* vala: Write value of constants/enums in fast-vapi if they are constant onlyRico Tzschichholz2019-11-051-2/+2
| | | | | | Introduced by 89a1243a4f066cc9652b26f86eb94fd038874982 Fixes https://gitlab.gnome.org/GNOME/vala/issues/461
* vala: Micro optimizationsRico Tzschichholz2019-09-301-2/+2
|
* codewriter: Write "weak" modifier for propertiesJeremy Philippe2019-09-021-0/+4
|
* vala: Strip "basedir" from Source.filename attributeRico Tzschichholz2019-05-201-1/+5
| | | | | This is gives some control over the written relative filenames and fixes make distcheck due of out-of-source-dir building.
* vala: Trust "value_owned" when writing property getterRico Tzschichholz2019-05-161-1/+1
|
* vala: Write "Source" attribute in fast-vapi modeRico Tzschichholz2019-04-181-0/+13
| | | | | | This enables users to reference to the original source of a symbol. [Source (filename = "...", line = ..., column = ...)]
* vala: Use new to_string() methods of enumerations in CodeWriterRico Tzschichholz2018-11-151-109/+11
|
* Collect error_types on demand to allow transformationsLuca Bruno2018-10-231-2/+6
|
* vala: Enforce "return yield ..." syntax to be expectedRico Tzschichholz2018-09-221-4/+0
| | | | | | "yield return ..." wasn't handled correctly and resulted in broken c-code. Fixes https://gitlab.gnome.org/GNOME/vala/issues/675
* codewriter: Prepend "yield" if is_yield_expression is set on ↵Rico Tzschichholz2018-09-221-0/+8
| | | | MethodCall/ObjectCreationExpression
* codewriter: Use List.sort() instead of custom local implementationRico Tzschichholz2018-09-181-19/+2
|
* Use dedicated version api of libvala internally as wellRico Tzschichholz2018-08-091-1/+1
|
* codewriter: Output bodies of code-blocks if in VAPIGEN modeRico Tzschichholz2018-07-051-4/+6
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/231
* codewriter: Add 'new' to symbols if needed to match the original sourceRico Tzschichholz2018-04-241-4/+21
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=614686
* Drop trailing spaces/tabsRico Tzschichholz2018-03-271-29/+29
| | | | It was about time to do this.
* codewriter: Don't use string.replace() to apply header_to_overrideRico Tzschichholz2018-01-181-1/+7
| | | | | | The underlying regex causes faulty replacements. https://bugzilla.gnome.org/show_bug.cgi?id=731322
* Don't create constant Regex on demand and use static field where possibleRico Tzschichholz2016-11-011-2/+4
|
* writer: Some string optimizationsRico Tzschichholz2016-11-011-15/+10
|
* Add missing generic-type arguments of delegatesRico Tzschichholz2016-10-081-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=772204
* Introduce [Version (...)]Florian Brosch2016-01-301-0/+20
| | | | | | | | | | | | | | | | | Parameters: since: string, version number experimental: bool (was: [Experimental]) experimental_until: string, version number deprecated_since: string, version number (was: [Deprecated (since="")]) replacement: string, symbol name (was: [Deprecated (replacement="")]) deprecated: bool (was: [Deprecated]) Used symbols labeled with [Version (since = "")] are checked against the locally installed package version. Use --disable-since-check to avoid this behaviour. Fixes bug 678912.
* Added option --vapi-comments to include comments in vapi-filesRichard Wiedenhöft2014-09-031-0/+97
|
* Support non-literal length in fixed-size arraysSimon2014-03-301-1/+3
| | | | | | | Now any constant integer expression can be used as length for fixed-size arrays. Fixes bug 638993
* codewriter: Emit 'unowned' keyword for local variablesSimon2014-03-141-0/+3
| | | | Fixes bug 726312
* codewriter: Fix spacing for property accessor attributesJürg Billeter2014-02-031-3/+3
|
* codewriter: Support fixed-length arraysJürg Billeter2012-08-061-1/+12
| | | | Fixes bug 618689.
* Drop Dova profileJürg Billeter2012-08-061-8/+5
|
* Support 'using' directive with nested namespace in fast-vapiSimon Werbeck2012-07-181-1/+18
| | | | Fixes bug 672960.
* codewriter: Write type parameters for struct declarationLuca Bruno2011-08-171-0/+2
| | | | | | Based on patch by Andre Masella. Fixes bug 656708.
* codewriter: Factorize writing type parameters in write_type_parametersLuca Bruno2011-08-171-56/+20
|
* codewriter: Do not use C specific methods of code nodesLuca Bruno2011-08-011-561/+78
|
* codewriter: Reorder attributes and argumentsLuca Bruno2011-08-011-242/+232
|
* codewriter: Write simple_generics argument for methodsLuca Bruno2011-06-281-0/+4
|
* codewriter: Write lower_case_cprefix for classesLuca Bruno2011-06-271-0/+4
|