summaryrefslogtreecommitdiff
path: root/vala/valagirparser.vala
Commit message (Collapse)AuthorAgeFilesLines
...
* gidl/girparser: Creation methods must not be marked as staticRico Tzschichholz2019-11-171-1/+0
|
* girparser: Detect and replace "-" in parameter namesRico Tzschichholz2019-10-221-0/+3
| | | | ... to avoid generating bindings with invalid syntax.
* girparser: Add required copy/free attributes for gtype-boxed structsRico Tzschichholz2019-10-081-0/+8
| | | | See https://gitlab.gnome.org/GNOME/vala/issues/863
* vala: Rename DataType.data_type property to DataType.type_symbolRico Tzschichholz2019-09-301-3/+3
|
* girparser/gidlparser: "value_owned = true" by default for property typesRico Tzschichholz2019-09-021-0/+3
| | | | | This represents an internal implementation detail which is available from vala sources and it does not effect the ownership of property accessors.
* girparser: Improve evalution of instance-parameter informationRico Tzschichholz2019-08-281-5/+19
| | | | See https://gitlab.gnome.org/GNOME/vala/issues/836
* girparser: Handle "function-macro" by skipping themRico Tzschichholz2019-07-221-0/+14
| | | | See https://gitlab.gnome.org/GNOME/gobject-introspection/merge_requests/159
* vala: Add Symbol.is_extern and use/set is accordinglyRico Tzschichholz2019-07-041-16/+0
| | | | | | | | This actually holds the information whether a symbol was declared with `extern` modificator. Adjust the setting of Symbol.external and usage of Symbol.external_package. See https://gitlab.gnome.org/GNOME/vala/issues/745
* girparser: Skip 'attribute' elementsRico Tzschichholz2019-06-151-0/+4
|
* girparser: Add support for string "ctype" metadataRico Tzschichholz2019-05-071-2/+7
| | | | https://gitlab.gnome.org/GNOME/vala/issues/793
* girparser: Create correct output in get_default_lower_case_suffix()Rico Tzschichholz2019-03-281-1/+17
| | | | | | | | It must match the output of CCodeAttribute.get_default_lower_case_suffix() Add metadata support to set lower_case_csuffix See https://gitlab.gnome.org/GNOME/vala/issues/778
* girparser: Correctly set array_length_type for delegates returning an arrayRico Tzschichholz2019-02-201-6/+2
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/754
* girparser: Recognize error parameter before delegate target parameterRico Tzschichholz2019-01-101-1/+16
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/265
* vala: Async methods don't allow out-parameters before in-parametersRico Tzschichholz2019-01-081-0/+14
| | | | | | | | | out-parameters are always handled in the *_finish implementation and therefore are asynchronous. Report an error for occurances in source and a warning for GIR sources where convert them to pointer-types to create a usuable signature for bindings. Fixes https://gitlab.gnome.org/GNOME/vala/issues/636
* codegen: Handle non-default AsyncResult parameter positionRico Tzschichholz2018-12-111-0/+13
| | | | | | | | | | | Unfortunately gdbus-codegen puts the AsyncResult parameter after possible out-parameters therefore there is an "async_result_pos" attribute required to handle this correctly. Vala supposely follows the common practice to put the AsyncResult before out-parameters by default. Fixes https://gitlab.gnome.org/GNOME/vala/issues/709
* girparser: Skip possible docs in transparent unionRico Tzschichholz2018-12-051-0/+2
| | | | See https://gitlab.gnome.org/GNOME/gobject-introspection/merge_requests/75
* girparser: Skip "source-position" elementsRico Tzschichholz2018-12-031-0/+4
| | | | See https://gitlab.gnome.org/GNOME/gobject-introspection/merge_requests/75
* vala: Drop "explicit" from ValaSourceFile and use "from_commandline"Rico Tzschichholz2018-11-031-1/+1
|
* Collect error_types on demand to allow transformationsLuca Bruno2018-10-231-9/+22
|
* girparser: Actually resolve type-arguments to be able to box them if neededRico Tzschichholz2018-08-091-10/+16
|
* girparser: Handle unsupported aliases which could not be fully processedRico Tzschichholz2018-07-121-0/+4
| | | | This avoids criticals for e.g. aliases of error-domains
* girparser: Allow changing the type of constants using metadataRico Tzschichholz2018-06-211-1/+11
| | | | See https://gitlab.gnome.org/GNOME/vala/issues/643
* girparser: Add support for bool delegate_targetRico Tzschichholz2018-05-311-1/+5
| | | | https://gitlab.gnome.org/GNOME/vala/issues/520
* girparser: Deal with missing "name" attribute by falling back on "c:type"Rico Tzschichholz2018-04-221-0/+4
| | | | This is simply a last resort to report a meaningfull error.
* girparser: Add support for NoAccessorMethod metadataRico Tzschichholz2018-04-141-0/+5
|
* Drop trailing spaces/tabsRico Tzschichholz2018-03-271-13/+13
| | | | It was about time to do this.
* girparser: Don't accept methods as property-accessor which throw errorsRico Tzschichholz2018-01-291-2/+2
| | | | | | This should be considered a temporary fix. https://bugzilla.gnome.org/show_bug.cgi?id=792998
* girparser: Ignore conflicting closure/destroy indexesRico Tzschichholz2018-01-291-2/+6
| | | | | Reverse references from closure/destroy parameters back to the callback break our later logic, so skip this additional information.
* girparser: Set NoAccessorMethod for non-readable and construct-only propertiesRico Tzschichholz2018-01-201-1/+1
|
* girparser: Improve instance method detectionRico Tzschichholz2018-01-091-4/+4
| | | | | | | | | | | | | Improve reparenting static namespace functions to their presumably parent structures. Only allow this if the first parameter is not defined as (out) or (inout) Unfortunately, while this patch fixes detection, nothing can be done about breaking API. Based on patch by Simon Werbeck <simon.werbeck@gmail.com> https://bugzilla.gnome.org/show_bug.cgi?id=732460
* parser: Allow custom invocations of parse_file()Rico Tzschichholz2018-01-021-0/+8
| | | | | | Use CodeContext of SourceFile if needed https://bugzilla.gnome.org/show_bug.cgi?id=791936
* Release taken references to CodeContext after using itRico Tzschichholz2017-12-141-0/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=712694
* girparser: Don't mark simple-type out-parameters with '?' as nullableRico Tzschichholz2017-12-111-0/+18
| | | | | Using '?' on simple-types has a different meaning in vala and would create a boxed-type which is not compatible with the original type.
* girparser: Accept setters with boolean return-type as valid property-accessorRico Tzschichholz2017-12-091-7/+10
|
* girparser: Handle metadata for fields inside a transparent unionRico Tzschichholz2017-12-091-0/+4
|
* girparser: Allow change of parameter namesRico Tzschichholz2017-12-051-1/+4
|
* codegen: Prioritize "array_length=true" over "array_null_terminated=true"Rico Tzschichholz2017-10-101-9/+9
| | | | | | | | | If arrays claim to have an array-length and also are null-terminated then use and rely on the given length. Adapt the girparser for this and add "array_length = true" accordingly. https://bugzilla.gnome.org/show_bug.cgi?id=788775
* codegen: Use array_length_cexpr to support fixed-arrays for return-valuesRico Tzschichholz2017-09-151-7/+8
| | | | | | Based on patch by David Lechner https://bugzilla.gnome.org/show_bug.cgi?id=784691
* girparser: Better support of "cprefix" argument in metadataRico Tzschichholz2017-08-261-1/+6
|
* girparser: Support "cname" argument in metadataRico Tzschichholz2017-08-261-2/+8
|
* vapigen: Mark given source-files as such and force girparser to handle themRico Tzschichholz2017-08-191-1/+4
| | | | | | E.g. gtk+-4.0 is *one* library with multiple namespaces and gir files. So we need to handle this case and allow all explicitly given GIR files to be parsed.
* gee: Add some useful symbols from gee-0.8Rico Tzschichholz2017-06-271-4/+2
|
* girparser: Fix parsing of delegate-alias without targetRico Tzschichholz2017-06-211-1/+0
| | | | | | "has_target" is a ccode-attribute-based property, so don't explicitly set it and rely on attribute-list-copy. Otherwise there will a fatal duplicated CCode attribute.
* codegen: Support renamed signalsRico Tzschichholz2017-06-071-0/+6
| | | | | | | The CCode attribute 'cname' needs to be the canonical representation as it is expected in C. https://bugzilla.gnome.org/show_bug.cgi?id=731547
* vala: Enums require at least one value otherwise report an errorRico Tzschichholz2017-04-241-0/+6
|
* girparser: Add destroy argument for metadataRico Tzschichholz2017-03-271-0/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=750838
* girparser: Add metadata-support for "returns_modified_pointer"Rico Tzschichholz2017-03-081-0/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=759255
* Add "finish_instance" CCode attributeFlorian Brosch2017-03-061-0/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=710103
* girparser: Let alias inherit more information from base_typeRico Tzschichholz2017-01-051-0/+10
|
* girparser: Allow to specify the base_type of an aliasRico Tzschichholz2017-01-041-0/+4
|