Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | Merge pull request #73489 from vonagam/type-check-node | Rémi Verschelde | 2023-02-20 | 2 | -0/+129 | |
|\ \ | | | | | | | | | | GDScript: Rework type check | |||||
| * | | GDScript: Rework type check | Dmitrii Maganov | 2023-02-17 | 2 | -0/+129 | |
| |/ | ||||||
* / | Fix inability to assign null regression | ocean (they/them) | 2023-02-17 | 2 | -0/+22 | |
|/ | | | | Co-authored-by: Dmitry Maganov <vonagam@gmail.com> | |||||
* | Merge pull request #72925 from vonagam/fix-enum-typed-array-error | Yuri Sizov | 2023-02-17 | 1 | -0/+4 | |
|\ | | | | | GDScript: Fix error about enum typed arrays | |||||
| * | GDScript: Fix error about enum typed arrays | Dmitrii Maganov | 2023-02-09 | 1 | -0/+4 | |
| | | ||||||
* | | Merge pull request #73398 from anvilfolk/fix-getter | Rémi Verschelde | 2023-02-17 | 2 | -0/+11 | |
|\ \ | | | | | | | | | | Fix unset getter return types resulting in strange behavior | |||||
| * | | Add return type for GDScript getters | ocean (they/them) | 2023-02-15 | 2 | -0/+11 | |
| | | | ||||||
* | | | Fix crash by freed object assign to typed variable | ocean (they/them) | 2023-02-16 | 4 | -0/+29 | |
|/ / | ||||||
* / | GDScript: Fix usage of ints with typed array of floats | Dmitrii Maganov | 2023-02-13 | 1 | -1/+2 | |
|/ | ||||||
* | Revert "Remove script class checks when getting function signature" | Rémi Verschelde | 2023-02-07 | 6 | -16/+0 | |
| | | | | | | This reverts commit 0fef203b1f39c3373f9f25b8e75e75f6b03f7c88. This introduced some other issues, as discussed in #72144. | |||||
* | Remove script class checks when getting function signature | Adam Scott | 2023-02-07 | 6 | -0/+16 | |
| | ||||||
* | Merge pull request #72546 from vonagam/fix-typed-array-can-reference | Yuri Sizov | 2023-02-06 | 1 | -0/+6 | |
|\ | | | | | GDScript: Fix can_reference check for typed arrays | |||||
| * | GDScript: Fix can_reference check for typed arrays | Dmitrii Maganov | 2023-02-06 | 1 | -0/+6 | |
| | | ||||||
* | | Merge pull request #72677 from dalexeev/gds-await-infer-type | Yuri Sizov | 2023-02-06 | 4 | -0/+23 | |
|\ \ | | | | | | | GDScript: Fix `await` type inference | |||||
| * | | GDScript: Fix `await` type inference | Danil Alexeev | 2023-02-06 | 4 | -0/+23 | |
| | | | ||||||
* | | | Merge pull request #72804 from vnen/gdscript-no-onready-without-node | Yuri Sizov | 2023-02-06 | 4 | -0/+18 | |
|\ \ \ | |/ / |/| | | GDScript: Fix inheritance check of @onready for inner classes | |||||
| * | | GDScript: Fix inheritance check of @onready for inner classes | George Marques | 2023-02-06 | 4 | -0/+18 | |
| | | | ||||||
* | | | GDScript: Fix recently merged test not ignoring warnings | Rémi Verschelde | 2023-02-06 | 1 | -0/+3 | |
|/ / | ||||||
* | | Merge pull request #72512 from vonagam/fix-ternary-type-source | Yuri Sizov | 2023-02-06 | 4 | -0/+22 | |
|\ \ | | | | | | | GDScript: Fix type certainty for result of ternary operator | |||||
| * | | GDScript: Fix type certainty for result of ternary operator | Dmitrii Maganov | 2023-02-01 | 4 | -0/+22 | |
| | | | ||||||
* | | | GDScript: Don't allow @onready without inheriting Node | George Marques | 2023-02-06 | 4 | -0/+15 | |
| |/ |/| | ||||||
* | | Merge pull request #72608 from vnen/gdscript-warning-default-error | Yuri Sizov | 2023-02-05 | 14 | -2/+119 | |
|\ \ | | | | | | | GDScript: Add warnings that are set to error by default (take 2) | |||||
| * | | GDScript: Add warnings that are set to error by default | George Marques | 2023-02-02 | 14 | -2/+119 | |
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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: Improve usability of setter chains | George Marques | 2023-02-02 | 4 | -0/+12 | |
|/ | | | | | | | | | - Consider PackedArrays non-shared since they are copied on C++/script boundaries. - Add error messages in the analyzer when assigning to read-only properties. - Add specific error message at runtime when assignment fails because the property is read-only. | |||||
* | Revert "GDScript: Add warnings that are set to error by default" | Rémi Verschelde | 2023-02-01 | 10 | -68/+2 | |
| | | | | | | | | | 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 default | George Marques | 2023-02-01 | 10 | -2/+68 | |
| | | | | | | | | | | | | | | | | | | | | | | | - 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: Allow void functions to return calls to other void functions | George Marques | 2023-01-31 | 2 | -0/+30 | |
| | ||||||
* | GDScript: Fix issues with typed arrays | Dmitrii Maganov | 2023-01-31 | 13 | -4/+231 | |
| | ||||||
* | GDScript: Fix vararg method calls with exact arguments | Dmitrii Maganov | 2023-01-30 | 2 | -0/+8 | |
| | ||||||
* | Merge pull request #72285 from vnen/gdscript-variable-match | Rémi Verschelde | 2023-01-29 | 4 | -0/+14 | |
|\ | | | | | GDScript: Allow variables in match patterns | |||||
| * | GDScript: Allow variables in match patterns | George Marques | 2023-01-28 | 4 | -0/+14 | |
| | | | | | | | | To restore an ability available in 3.x and reduce compatibility changes. | |||||
* | | Merge pull request #71844 from vonagam/fix-constant-conversions | Rémi Verschelde | 2023-01-29 | 23 | -15/+72 | |
|\ \ | | | | | | | GDScript: Fix constant conversions | |||||
| * | | GDScript: Fix constant conversions | Dmitrii Maganov | 2023-01-29 | 23 | -15/+72 | |
| |/ | ||||||
* / | GDScript: Fix implicit conversions for function returns | Dmitrii Maganov | 2023-01-28 | 2 | -0/+36 | |
|/ | ||||||
* | GDScript: Fix test from #69163 after annotations change | Rémi Verschelde | 2023-01-28 | 1 | -1/+1 | |
| | ||||||
* | Merge pull request #69163 from vonagam/variant-safe-lines | Rémi Verschelde | 2023-01-28 | 2 | -0/+37 | |
|\ | | | | | | | GDScript: Fix wrong marking of some lines related to Variant as unsafe | |||||
| * | GDScript: Fix wrong marking of some lines related to Variant as unsafe | Dmitrii Maganov | 2023-01-12 | 2 | -0/+37 | |
| | | ||||||
* | | GDScript: Allow constant expressions in annotations | Danil Alexeev | 2023-01-25 | 5 | -3/+22 | |
| | | ||||||
* | | Merge pull request #71349 from vonagam/disallow-infer-on-weak | Rémi Verschelde | 2023-01-25 | 8 | -6/+19 | |
|\ \ | | | | | | | | | | GDScript: Disallow type inference with untyped initializer | |||||
| * | | GDScript: Disallow type inference with untyped initializer | Dmitrii Maganov | 2023-01-13 | 8 | -6/+19 | |
| | | | ||||||
* | | | Add support for Unicode identifiers in GDScript | George Marques | 2023-01-21 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | 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. | |||||
* | | | Fix unnammed enum crash regression | ocean (they/them) | 2023-01-18 | 2 | -0/+8 | |
| | | | ||||||
* | | | GDScript: Fix typing of iterator in for loop | Dmitrii Maganov | 2023-01-13 | 20 | -0/+94 | |
|/ / | ||||||
* | | Merge pull request #70733 from vonagam/fix-assigning-untyped | Rémi Verschelde | 2023-01-12 | 4 | -0/+29 | |
|\ \ | | | | | | | | | | GDScript: Fix some issues with assignments that involve untyped things | |||||
| * | | GDScript: Fix some issues with assignments that involve untyped things | Dmitrii Maganov | 2023-01-12 | 4 | -0/+29 | |
| |/ | ||||||
* / | GDScript: Fix extending abstract classes, forbid their construction | Dmitrii Maganov | 2023-01-12 | 6 | -0/+29 | |
|/ | ||||||
* | GDScript: Fix getting type from PropertyInfo for Variant arguments | Dmitrii Maganov | 2023-01-12 | 4 | -9/+8 | |
| | ||||||
* | Add GDScript `.editorconfig` rules | Adam Scott | 2023-01-10 | 11 | -85/+85 | |
| | | | | - Uniformize `.gd` unit test files indentation to tabs (where needed) | |||||
* | Merge pull request #71140 from vonagam/fix-const-index-subscript-type | Rémi Verschelde | 2023-01-10 | 2 | -0/+7 | |
|\ | | | | | GDScript: Fix type for index subscript on constant | |||||
| * | GDScript: Fix type for index subscript on constant | Dmitrii Maganov | 2023-01-10 | 2 | -0/+7 | |
| | |