summaryrefslogtreecommitdiff
path: root/vala/valagenieparser.vala
Commit message (Collapse)AuthorAgeFilesLines
* parser: Move parsing of IS and AS type checks to dedicated functionRico Tzschichholz2022-12-221-18/+17
|
* vala: Add support for verbatim template string星外之神2022-10-301-0/+7
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1373
* vala: Drop unused MemberAccess.creation_member property APIRico Tzschichholz2022-02-221-6/+0
|
* Properly use [Flags] feature for ModifierFlags and CCodeModifiersRico Tzschichholz2021-12-171-14/+15
| | | | See 2afaae5e0755b2d8619808d2d148761b92c355b5
* genie: Accept accessibility and async modifiers on "construct" creation methodsRico Tzschichholz2021-11-231-2/+14
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1235
* genie: Use TokenType.EXCEPTION instead of TokenType.ERRORDOMAINRico Tzschichholz2021-11-051-4/+4
|
* genie: Properly handle plain "get" or "set" property accessorsRico Tzschichholz2021-11-041-0/+4
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1248
* genie: Accept INTERR token before type arguments when parsing typeRico Tzschichholz2021-11-031-1/+4
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/1245
* genie: Amend text of indent and dedent for error messagesAlistair Thomas2021-11-031-1/+1
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/497
* parser: Make sure ErrorCodes are accessible as neededRico Tzschichholz2021-10-231-0/+1
|
* vala: Properly parse and handle chained initialization of membersRico Tzschichholz2021-02-161-1/+9
| | | | | | | Make MemberInitializer an Expression, so it is possible to descibe nested/chained member initializers in the AST. Fixes https://gitlab.gnome.org/GNOME/vala/issues/1137
* vala: Rename Loop to LoopStatement and introduce a common base classRico Tzschichholz2021-02-011-1/+1
|
* vala: Make use of new printf-like API of Report.*()Rico Tzschichholz2020-10-261-2/+2
|
* parser: Map empty start/end index to 0/length for slice expressionswb96882020-05-261-3/+16
| | | | | | | | This allows a syntax like a[:], a[2:] or a[:3] for arrays and strings. Co-authored-by: Simon Werbeck <simon.werbeck@gmail.com> Fixes https://gitlab.gnome.org/GNOME/vala/issues/238
* Use "str_equal" as equal_func for ArrayList<string> instancesRico Tzschichholz2020-05-081-1/+1
|
* genie: Fix parser's inner state when a struct is declared after a classJeremy Philippe2020-01-061-0/+2
| | | | | | | | | | | If the struct is declared after a class and has a default creation method, the parser will raise a "missing return type in method ..." error. The cause of the bug is that the global 'class_name' variable is not updated when the parser encounters a struct, so the previous value is used, and if a class has been parsed before, this value will be the name of the class instead of the struct.
* vala: Let the parser have set namespace members as staticRico Tzschichholz2019-11-241-2/+2
| | | | ... and move error reporting for invalid members into check()
* vala: Micro optimizationsRico Tzschichholz2019-09-301-3/+3
|
* genie: Creation methods should not be staticRico Tzschichholz2019-09-031-1/+0
| | | | Revealed by ba8122d3a64e44eac44c5254c93fb181df601b0a
* vala: Add Symbol.is_extern and use/set is accordinglyRico Tzschichholz2019-07-041-17/+15
| | | | | | | | 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
* genie: Make 'self' match its TokenType nameRico Tzschichholz2019-06-141-6/+6
|
* parser: Implicit creation method of abstract classes must be protectedRico Tzschichholz2019-03-121-1/+1
|
* genieparser: Don't create VoidType unconditionallyRico Tzschichholz2019-02-261-2/+4
|
* genie: Allow the main function "init" to return an integer as exit statusAlistair Thomas2019-02-261-6/+13
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/402
* genie: Support `protected` accessibility and allow explicit `public`Michal Proszek2019-01-201-19/+55
| | | | Fixes https://gitlab.gnome.org/GNOME/vala/issues/346
* genieparser: Use dedicated Class.add_constructor/destructor() methodsRico Tzschichholz2018-11-171-36/+2
|
* Drop deprecated syntax support of # modifier and operatorRico Tzschichholz2018-09-221-12/+0
| | | | | | owned modifier and (owned) cast should be used instead for a long time. Fixes https://gitlab.gnome.org/GNOME/vala/issues/677
* vala: Enforce "return yield ..." syntax to be expectedRico Tzschichholz2018-09-221-6/+2
| | | | | | "yield return ..." wasn't handled correctly and resulted in broken c-code. Fixes https://gitlab.gnome.org/GNOME/vala/issues/675
* Replace `%s` with `%s' in format strings of output messagesRico Tzschichholz2018-08-081-1/+1
|
* Reintroduce POSIX profileRico Tzschichholz2018-05-081-4/+7
| | | | This reverts commit ca020bf04a09fe16e5583eea5a3a341e7796bff5.
* vala: Move creation of reference field from parser into propertyRico Tzschichholz2018-04-191-16/+0
|
* Drop trailing spaces/tabsRico Tzschichholz2018-03-271-182/+182
| | | | It was about time to do this.
* 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
* vala: Add dedicated CastExpression.silent() constructorRico Tzschichholz2017-12-141-2/+2
|
* Release taken references to CodeContext after using itRico Tzschichholz2017-12-141-0/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=712694
* genieparser: Allow comma-separated identifiers in definition of enumsRico Tzschichholz2017-02-171-3/+25
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=776833
* vala: Fix output of syntax errors reportsRico Tzschichholz2017-01-051-23/+24
| | | | | | | | | get_error() did not take printf-formatted strings, it expected fully populated ones for direct usage with Report.error(). Output error message with report_parse_error() from try-catch-statements. https://bugzilla.gnome.org/show_bug.cgi?id=776827
* vala: Pass through the format-literalRico Tzschichholz2016-11-071-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=774060
* Do not use non-literal printf format stringsJürg Billeter2016-11-031-3/+3
|
* Add [FormatArg] attribute to Parser.get_errorJürg Billeter2016-11-031-1/+1
|
* parser: Cache current token if possibleRico Tzschichholz2016-11-011-6/+7
|
* genie: Warn about "const static" declarations where "static" is superfluousRico Tzschichholz2016-06-131-0/+5
|
* genie: anonymous functions as function return values and assignment to variablesnieka@dsv.nl2015-11-251-48/+49
| | | | Fixes bug 746704
* Support non-literal length in fixed-size arraysSimon2014-03-301-8/+3
| | | | | | | Now any constant integer expression can be used as length for fixed-size arrays. Fixes bug 638993
* Genie: Fixed use of print statements when variables are nullJamie McCracken2013-09-081-6/+6
|
* Fix spelling errors using 'codespell' toolAnatol Pomozov2013-04-261-1/+1
|
* GENIE: Updated genie to include fixes from vala parserJamie McCracken2012-09-151-150/+218
|
* Genie: Fix functions can take only one Generic as argument (611191)Jamie McCracken2012-08-281-19/+39
|
* Drop POSIX profileJürg Billeter2012-08-061-7/+4
|
* Use SourceLocation in SourceReferenceJürg Billeter2012-06-021-4/+3
|