summaryrefslogtreecommitdiff
path: root/vala/valagirparser.vala
Commit message (Collapse)AuthorAgeFilesLines
* girparser: Classes are considered sealed when there were no fields foundRico Tzschichholz2023-04-161-0/+10
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1036
* girparser: Add support for type_parameters, implements and prerequisites ↵Rico Tzschichholz2023-04-111-1/+129
| | | | metadata
* girparser: Apply "instance_idx" metadata for delegatesRico Tzschichholz2023-04-061-0/+7
|
* 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
|
* girparser: Avoid possibily creating duplicated attributesRico Tzschichholz2021-12-151-2/+2
| | | | | Don't append an attribute without checking if there is an existing one. In case the attribute already exists append the new key/value pairs.
* girparser: Accept "sealed" for transformed records and compact classesRico Tzschichholz2021-10-301-0/+8
|
* Revert "Use ErrorType-based collection for CodeNode.get_error_types()"Rico Tzschichholz2021-10-251-3/+3
| | | | | | 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-3/+3
|
* girparser: Add support for "ref_/ref_sink_/unref_function" metadata for classesRico Tzschichholz2021-10-141-0/+22
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1233
* girwriter: Improve struct creation method bindingPrinceton Ferro2021-08-181-3/+22
| | | | | Struct creation methods are supposed to have `void` return type and take an implicit `self` as the first instance parameter.
* girparser: Add support for "final" class attributeRico Tzschichholz2021-08-051-1/+1
|
* girparser: Improve instance method detectionRico Tzschichholz2021-08-051-3/+29
| | | | See https://gitlab.gnome.org/GNOME/vala/issues/1210
* girparser: Add "move-to" value of functions as Version.replacementRico Tzschichholz2021-08-051-0/+1
|
* girparser: Never skip "function" elementsRico Tzschichholz2021-08-051-4/+4
|
* girparser: Don't guess length of xml header, iterate forward to <repository>Rico Tzschichholz2021-03-191-3/+7
| | | | | | | If e.g. the xml header is missing, it resulted in errors like: error: expected start element of `repository' error: unsupported GIR version (null) (supported: 1.2)
* girparser: Add support for NoWrapper metadata for methodsRico Tzschichholz2021-03-161-2/+6
|
* girparser: Handle empty "<type/>" element and report an errorRico Tzschichholz2021-03-151-1/+10
|
* girparser: Allow overriding of "Compact" attribute for classesRico Tzschichholz2021-03-141-1/+6
|
* girparser: Evaluate "glib:type-struct" twice to pick up reparented structsRico Tzschichholz2021-03-041-16/+30
|
* girparser: Reuse populated Node.gtype_struct_for instead of resolving againRico Tzschichholz2021-03-031-2/+1
| | | | This fixes the discovery of non-default type_cname for re-parented symbols.
* girparser: Set CCode.type_cname for classes if it doesn't match our defaultRico Tzschichholz2021-01-311-3/+6
|
* girparser: Apply "type_get_function" metadata for classes and inferfacesRico Tzschichholz2021-01-301-0/+8
|
* girparser: Apply "destroy_notify_cname" metadata for fieldsRico Tzschichholz2021-01-261-0/+4
|
* girparser: Apply "delegate_target" metadata for methods and parametersRico Tzschichholz2021-01-251-0/+6
|
* girparser: Discover our very own array length fieldsRico Tzschichholz2021-01-191-0/+3
|
* vala: Make Class.is_compat/is_immutable/is_singleton read-onlyRico Tzschichholz2021-01-191-2/+2
|
* girparser: Minor improvement to field getter detectionRico Tzschichholz2021-01-141-3/+7
| | | | | | Allow DataType.compatible() to be called without initialized SemanticAnalyzer Additionally report a warning if field collides with method
* girparser: Handle anonymous delegate not backed by virtual-method or signalRico Tzschichholz2021-01-141-0/+22
|
* vala: Make use of new printf-like API of Report.*()Rico Tzschichholz2020-10-261-27/+27
|
* girparser: Additionally fallback to "glib:type-name" to retrieve the cnameRico Tzschichholz2020-08-241-0/+3
|
* Fix various typos in comments and stringsRico Tzschichholz2020-08-191-1/+1
| | | | See https://gitlab.gnome.org/GNOME/vala/issues/1063
* girparser: Add support for string "feature_test_macro" metadataRico Tzschichholz2020-08-051-0/+5
|
* girparser: Skip 'docsection' elements in <namespace>Rico Tzschichholz2020-07-231-0/+2
| | | | See https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/226
* girparser: Warn about conflicting signals and propertiesRico Tzschichholz2020-07-171-0/+1
|
* girparser: Actually respect given cprefix metadata for enumerationsRico Tzschichholz2020-06-171-2/+8
|
* girparser: Add support for boolean "new" argument for methodsRico Tzschichholz2020-05-181-0/+4
|
* girparser: Improve detection of AsyncReadyCallback/AsyncResult parametersRico Tzschichholz2020-04-191-10/+23
|
* girparser: Drop special handling of GLib.Data, GLib.PtrArray and GLib.StringRico Tzschichholz2020-04-191-9/+0
|
* girparser: Move special handling for certain parameters to process_callable()Rico Tzschichholz2020-04-191-34/+36
| | | | | | - Detect delegate throwing error when GLib.Error out-parameter exists - Mark method as async based on finding an AsyncReadyCallback parameter - Apply null-literal default-value for trailing GLib.Cancellable? parameters
* girparser: Strip "Enum"-suffix only from enumerationRico Tzschichholz2020-03-251-1/+5
| | | | | | | This lead to superfluous symbol clashes when applied widely. e.g. GLib.ParamSpecEnum which is subclass of GLib.ParamSpec Introduced with 37201b0016a6f710dea6c9db08ff351641086686
* girparser: Delay adding of "GLib.Object" prerequisite to interfacesPrinceton Ferro2020-03-031-3/+12
|
* girparser: Decrease return_array_length_idx for transformed functionRico Tzschichholz2020-03-021-0/+1
|
* Add support for sealed classes in bindingsRico Tzschichholz2020-02-191-0/+2
| | | | | | | | | 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
* girparser: Report a warning for conflicting class and instance methodsRico Tzschichholz2020-02-161-0/+3
|
* girparser: Apply explicitly given ctype metadata attributes on callablesRico Tzschichholz2020-01-201-0/+9
|
* girparser: Improve source_reference of parametersRico Tzschichholz2020-01-201-2/+11
|
* vala: Let the parser have set namespace members as staticRico Tzschichholz2019-11-241-2/+10
| | | | ... and move error reporting for invalid members into check()