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 | |
| | | ||||||
* | | Merge pull request #72971 from vnen/gdscript-multiline-comment | Rémi Verschelde | 2023-02-09 | 4 | -6/+24 | |
|\ \ | | | | | | | | | | GDScript: Allow strings as multiline comments | |||||
| * | | GDScript: Allow strings as multiline comments | George Marques | 2023-02-09 | 4 | -6/+24 | |
| |/ | | | | | | | Bring back the behavior in 3.x that was left out by oversight. | |||||
* / | GDScript: Be more lenient with identifiers | George Marques | 2023-02-09 | 6 | -1/+39 | |
|/ | | | | | | - Allow identifiers similar to keywords if they are in ASCII range. - Allow constants to be treated as regular identifiers. - Allow keywords that can be used as identifiers in expressions. | |||||
* | Revert "Remove script class checks when getting function signature" | Rémi Verschelde | 2023-02-07 | 11 | -63/+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 | 11 | -0/+63 | |
| | ||||||
* | 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 | 15 | -5/+122 | |
|\ \ | | | | | | | 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 | 15 | -5/+122 | |
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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 | 8 | -0/+39 | |
|/ | | | | | | | | | - 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 | 11 | -71/+5 | |
| | | | | | | | | | 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 | 11 | -5/+71 | |
| | | | | | | | | | | | | | | | | | | | | | | | - 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 | |
| | ||||||
* | Merge pull request #72444 from reduz/fix-global-class-parsing | Rémi Verschelde | 2023-01-31 | 1 | -1/+1 | |
|\ | | | | | | | Fix global script class parsing. | |||||
| * | Fix global script class parsing. | Juan Linietsky | 2023-01-31 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | * Broke with #72226 * Restored previous version of the code, made it even more error tolerant. * Added a warning to **not** change the code. Fixes #72226. | |||||
* | | Merge pull request #69248 from vonagam/fixing-typed-arrays | Rémi Verschelde | 2023-01-31 | 23 | -4/+285 | |
|\ \ | | | | | | | | | | GDScript: Fix typed arrays | |||||
| * | | GDScript: Fix issues with typed arrays | Dmitrii Maganov | 2023-01-31 | 23 | -4/+285 | |
| |/ | ||||||
* | | Merge pull request #72212 from anvilfolk/gdtestnames | Rémi Verschelde | 2023-01-31 | 3 | -18/+21 | |
|\ \ | |/ |/| | | | Add option to print filenames in GDScript unit testing | |||||
| * | Add option to print filenames in GDScript unit testing | ocean (they/them) | 2023-01-30 | 3 | -18/+21 | |
| | | ||||||
* | | GDScript: Fix vararg method calls with exact arguments | Dmitrii Maganov | 2023-01-30 | 2 | -0/+8 | |
| | | ||||||
* | | GDScript: Fix `@export_enum` works only with `int` | Danil Alexeev | 2023-01-30 | 2 | -0/+22 | |
| | | ||||||
* | | Merge pull request #72285 from vnen/gdscript-variable-match | Rémi Verschelde | 2023-01-29 | 6 | -0/+41 | |
|\ \ | | | | | | | GDScript: Allow variables in match patterns | |||||
| * | | GDScript: Allow variables in match patterns | George Marques | 2023-01-28 | 6 | -0/+41 | |
| | | | | | | | | | | | | To restore an ability available in 3.x and reduce compatibility changes. | |||||
* | | | Merge pull request #72286 from vnen/gdscript-native-static-call-crash | Rémi Verschelde | 2023-01-29 | 2 | -0/+12 | |
|\ \ \ | | | | | | | | | GDScript: Avoid calling non-static methods on native classes | |||||
| * | | | GDScript: Avoid calling non-static methods on native classes | George Marques | 2023-01-28 | 2 | -0/+12 | |
| |/ / | ||||||
* | | | Merge pull request #71844 from vonagam/fix-constant-conversions | Rémi Verschelde | 2023-01-29 | 24 | -19/+76 | |
|\ \ \ | | | | | | | | | GDScript: Fix constant conversions | |||||
| * | | | GDScript: Fix constant conversions | Dmitrii Maganov | 2023-01-29 | 24 | -19/+76 | |
| |/ / | ||||||
* / / | 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: Fix test for read-only state of constants | Dmitrii Maganov | 2023-01-27 | 6 | -22/+12 | |
| | | ||||||
* | | GDScript: Allow constant expressions in annotations | Danil Alexeev | 2023-01-25 | 12 | -16/+35 | |
| | |