summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_parser.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
| * Fix @export_multiline for PackedStringArraykobewi2023-02-041-0/+7
| |
* | Merge pull request #72330 from MinusKube/unreachable_code_bugRémi Verschelde2023-02-061-0/+8
|\ \ | | | | | | | | | Fix unreachable code warning for elif block
| * | Fix unreachable code warning for elif blockMinusKube2023-01-291-0/+8
| | |
* | | Merge pull request #72794 from vnen/gdscript-no-onready-without-nodeRémi Verschelde2023-02-061-0/+4
|\ \ \ | | | | | | | | | | | | GDScript: Don't allow @onready without inheriting Node
| * | | GDScript: Don't allow @onready without inheriting NodeGeorge Marques2023-02-061-0/+4
| | | |
* | | | GDScript: Better handling of `@rpc` annotation and autocompletionDanil Alexeev2023-02-051-11/+31
|/ / /
* | | Merge pull request #72608 from vnen/gdscript-warning-default-errorYuri Sizov2023-02-051-7/+7
|\ \ \ | | | | | | | | GDScript: Add warnings that are set to error by default (take 2)
| * | | GDScript: Add warnings that are set to error by defaultGeorge Marques2023-02-021-7/+7
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Adds a list of default levels for all warning so they can be set individually. - Add warnings set by default to error for: - Using `get_node()` without `@onready`. - Using `@onready` together with `@export`. - Inferring a static type with a Variant value. - Overriding a native engine method. - Adjust how annotations to ignore warnings are treated so they also apply to method parameters. - Clean up a bit how ignored warnings are set. There were two sets but only one was actually being used. - Set all warnings to the `WARN` level for tests, so they they can be properly tested. - Fix enum types in native methods signatures being set to `int`. - Fix native enums being treated as Dictionary by mistake. - Make name of native enum types use the class they are defined in, not the direct super class of the script. This ensures they are always equal even when coming from different sources. - Fix error for signature mismatch that was only showing the first default argument as having a default. Now it shows for all.
* / | Improve docs for rpc annotationsGeroVeni2023-02-041-1/+1
|/ /
* | GDScript: Fix crash in export group annotationsDanil Alexeev2023-02-021-1/+6
| |
* | Revert "GDScript: Add warnings that are set to error by default"Rémi Verschelde2023-02-011-7/+7
| | | | | | | | | | | | | | | | | | This reverts commit a166833bfa23a21a7bff196a85a20b014e7c1396. This caused multiple regressions. Needs to be redone with more testing before merge. Fixes #72501.
* | GDScript: Add warnings that are set to error by defaultGeorge Marques2023-02-011-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Adds a list of default levels for all warning so they can be set individually. - Add warnings set by default to error for: - Using `get_node()` without `@onready`. - Using `@onready` together with `@export`. - Inferring a static type with a Variant value. - Overriding a native engine method. - Adjust how annotations to ignore warnings are treated so they also apply to method parameters. - Clean up a bit how ignored warnings are set. There were two sets but only one was actually being used. - Set all warnings to the `WARN` level for tests, so they they can be properly tested. - Fix enum types in native methods signatures being set to `int`. - Fix native enums being treated as Dictionary by mistake. - Make name of native enum types use the class they are defined in, not the direct super class of the script. This ensures they are always equal even when coming from different sources. - Fix error for signature mismatch that was only showing the first default argument as having a default. Now it shows for all.
* | GDScript: Fix `@icon` annotationDanil Alexeev2023-01-311-4/+30
| |
* | GDScript: Fix issues with typed arraysDmitrii Maganov2023-01-311-43/+5
| |
* | GDScript: Fix match branches return check on releaseGeorge Marques2023-01-301-5/+1
| | | | | | | | | | | | The check for existence of `return` only existed on debug builds for match branches. This could lead on an invalid error after exporting. Now this is checked on relase too, so it works the same as the editor.
* | Merge pull request #72305 from dalexeev/gfs-fix-export-enumRémi Verschelde2023-01-301-1/+23
|\ \ | | | | | | | | | GDScript: Fix `@export_enum` works only with `int`
| * | GDScript: Fix `@export_enum` works only with `int`Danil Alexeev2023-01-301-1/+23
| | |
* | | Merge pull request #72175 from dalexeev/gds-fix-export-group-annotationsRémi Verschelde2023-01-301-3/+7
|\ \ \ | |/ / |/| | | | | GDScript: Fix broken export group annotations
| * | GDScript: Fix broken export group annotationsDanil Alexeev2023-01-271-3/+7
| |/
* / GDScript: Allow variables in match patternsGeorge Marques2023-01-281-11/+3
|/ | | | To restore an ability available in 3.x and reduce compatibility changes.
* GDScript: Allow constant expressions in annotationsDanil Alexeev2023-01-251-62/+4
|
* Merge pull request #71120 from jordigcs/ternaryGeorge Marques2023-01-251-0/+1
|\ | | | | Closes https://github.com/godotengine/godot/issues/71065
| * Allow standalone ternary expressionsjordi2023-01-191-0/+1
| |
* | Clarify error message about script-level annotationDanil Alexeev2023-01-241-1/+5
| |
* | Merge pull request #71914 from vnen/gdscript-no-continue-matchRémi Verschelde2023-01-231-19/+1
|\ \ | | | | | | | | | GDScript: Remove function of `continue` for match statement
| * | GDScript: Remove function of `continue` for match statementGeorge Marques2023-01-221-19/+1
| | | | | | | | | | | | | | | | | | The keyword is confusing and rarely is used in the intended way. It is removed now in favor of a future feature (pattern guards) to avoid breaking compatibility later.
* | | Add support for Unicode identifiers in GDScriptGeorge Marques2023-01-211-19/+9
|/ / | | | | | | | | | | This is using an adapted version of UAX#31 to not rely on the ICU database (which isn't available in builds without TextServerAdvanced). It allows most characters used in diverse scripts but not everything.
* | Merge pull request #67774 from aaronfranke/script-annotationsRémi Verschelde2023-01-161-43/+11
|\ \ | | | | | | Make script annotations be placed before `class_name` and `extends`
| * | Make script annotations placed before class_name and extendsAaron Franke2022-12-191-43/+11
| | |
* | | Merge pull request #70540 from vaartis/multiline-arrays-dictionariesRémi Verschelde2023-01-131-0/+20
|\ \ \ | | | | | | | | | | | | Implement export_multiline support for Array[String] and Dictionary
| * | | Implement export_multiline support for Array[String] and DictionaryEkaterina Vaartis2022-12-251-0/+20
| |/ / | | | | | | | | | | | | | | | | | | | | | For arrays, specifically check if it's a string array and pass the type on to the editor. For dictionaries, save the hint on the type and use it later to draw the multiline editor, except for when adding a string key, because that doesn't make much sense. All string values however will be drawn as multiline.
* | | Merge pull request #70713 from vonagam/fix-unnamed-enum-outer-conflictsGeorge Marques2023-01-121-8/+2
|\ \ \
| * | | GDScript: Fix false name conflicts for unnamed enumsDmitrii Maganov2022-12-291-8/+2
| |/ /
* | | Merge pull request #69590 from anvilfolk/enumsRémi Verschelde2023-01-091-9/+14
|\ \ \ | | | | | | | | | | | | GDScript enum fixes & refactor
| * | | Assorted enum and native type fixesocean (they/them)2023-01-091-9/+14
| | |/ | |/|
* | | Merge pull request #70655 from vonagam/fix-assert-multilineRémi Verschelde2023-01-091-2/+7
|\ \ \ | |/ / |/| | | | | GDScript: Fix multiline and trailing comma for assert
| * | GDScript: Fix multiline and trailing comma for assertDmitrii Maganov2023-01-081-2/+7
| |/
* | Unify typing of variables, constants and parameters in GDScriptDmitrii Maganov2023-01-061-5/+5
| |
* | One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
|/ | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* GDScript: Allow out of order member resolutionrune-scape2022-12-141-2/+50
|
* Merge pull request #69303 from Chaosus/gds_fix_loopsRémi Verschelde2022-12-011-1/+2
|\ | | | | Reset unassigned local variables to null in the loops
| * Reset unassigned local variables to null in the loopsYuri Rubinsky2022-11-281-1/+2
| |
* | Merge pull request #69269 from red1939/red1939/masterRémi Verschelde2022-11-301-3/+2
|\ \ | |/ |/| | | Acknowledge that a CLASS kind of a DataType might not have an identifier
| * Acknowledge that a CLASS kind of a DataType might not have an identifierBartosz Bielecki2022-11-301-3/+2
| |
* | GDScript: Avoid using `get_global_class_native_base`rune-scape2022-11-271-2/+5
|/
* GDScript: Properly respect `int` type hint for `@export_range`unknown2022-11-241-0/+6
| | | | | | Fixes #69104. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* GDScript: Only check if ignoring warnings in debug buildRémi Verschelde2022-11-241-0/+2
|
* GDScript: Fix setting to disable all warningsRémi Verschelde2022-11-201-0/+2
| | | | | | The boolean was never set with the value from the project settings. Fixes #64559.
* Merge pull request #68854 from anvilfolk/highlight-varRémi Verschelde2022-11-181-2/+2
|\ | | | | | | Add error highlighting for duplicate variables/constants
| * Add error highlighting for duplicate variables/constantsocean (they/them)2022-11-181-2/+2
| |