Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-02-07 | Some code simplifications | Markus Sauermann | |
1. `number_width` isn't used later 2. `return_type` is used only once 3. AudioServer::get_singleton()->get_channel_count() always returns a channel_count of 1 or larger 4. negative `aa->backward` conditional 5. `current_canvas` == `find_world_2d()->get_canvas()` 6. identical if `render_shadows` | |||
2023-02-06 | GDScript: Fix `await` type inference | Danil Alexeev | |
2023-02-06 | Merge pull request #72512 from vonagam/fix-ternary-type-source | Yuri Sizov | |
GDScript: Fix type certainty for result of ternary operator | |||
2023-02-05 | Merge pull request #72608 from vnen/gdscript-warning-default-error | Yuri Sizov | |
GDScript: Add warnings that are set to error by default (take 2) | |||
2023-02-02 | GDScript: Add warnings that are set to error by default | George Marques | |
- 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. | |||
2023-02-02 | GDScript: Improve usability of setter chains | George Marques | |
- 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. | |||
2023-02-02 | GDScript: Fix getting reduced value of incomplete subscript | Dmitrii Maganov | |
2023-02-01 | GDScript: Fix type certainty for result of ternary operator | Dmitrii Maganov | |
2023-02-01 | Revert "GDScript: Add warnings that are set to error by default" | Rémi Verschelde | |
This reverts commit a166833bfa23a21a7bff196a85a20b014e7c1396. This caused multiple regressions. Needs to be redone with more testing before merge. Fixes #72501. | |||
2023-02-01 | GDScript: Add warnings that are set to error by default | George Marques | |
- 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. | |||
2023-01-31 | Merge pull request #72454 from dalexeev/gds-fix-icon-annotation | Rémi Verschelde | |
GDScript: Fix `@icon` annotation | |||
2023-01-31 | Merge pull request #72206 from vnen/gdscript-allow-void-return-shorthand | Rémi Verschelde | |
GDScript: Allow void functions to return calls to other void functions | |||
2023-01-31 | Merge pull request #57520 from jordigcs/gd-rename-map | Rémi Verschelde | |
Add hint for identifiers renamed from 3.x to 4.0 | |||
2023-01-31 | GDScript: Fix `@icon` annotation | Danil Alexeev | |
2023-01-31 | GDScript: Allow void functions to return calls to other void functions | George Marques | |
2023-01-31 | GDScript: Fix issues with typed arrays | Dmitrii Maganov | |
2023-01-30 | Merge pull request #72175 from dalexeev/gds-fix-export-group-annotations | Rémi Verschelde | |
GDScript: Fix broken export group annotations | |||
2023-01-29 | Merge pull request #72285 from vnen/gdscript-variable-match | Rémi Verschelde | |
GDScript: Allow variables in match patterns | |||
2023-01-29 | Merge pull request #71844 from vonagam/fix-constant-conversions | Rémi Verschelde | |
GDScript: Fix constant conversions | |||
2023-01-28 | GDScript: Allow variables in match patterns | George Marques | |
To restore an ability available in 3.x and reduce compatibility changes. | |||
2023-01-29 | GDScript: Fix constant conversions | Dmitrii Maganov | |
2023-01-28 | GDScript: Fix implicit conversions for function returns | Dmitrii Maganov | |
2023-01-28 | Merge pull request #69163 from vonagam/variant-safe-lines | Rémi Verschelde | |
GDScript: Fix wrong marking of some lines related to Variant as unsafe | |||
2023-01-27 | GDScript: Fix broken export group annotations | Danil Alexeev | |
2023-01-27 | GDScript: Fix test for read-only state of constants | Dmitrii Maganov | |
2023-01-26 | Merge pull request #71634 from dalexeev/gds-annotations-analyzer | Rémi Verschelde | |
GDScript: Allow constant expressions in annotations | |||
2023-01-26 | Merge pull request #72008 from vonagam/fix-property-access-unsafe-mark | Rémi Verschelde | |
GDScript: Fix marking of line with unsafe property access as unsafe | |||
2023-01-25 | GDScript: Allow constant expressions in annotations | Danil Alexeev | |
2023-01-25 | Merge pull request #71120 from jordigcs/ternary | George Marques | |
Closes https://github.com/godotengine/godot/issues/71065 | |||
2023-01-25 | Merge pull request #71349 from vonagam/disallow-infer-on-weak | Rémi Verschelde | |
GDScript: Disallow type inference with untyped initializer | |||
2023-01-25 | GDScript: Fix marking of line with unsafe property access as unsafe | Dmitrii Maganov | |
2023-01-24 | Add hint for identifiers renamed since Godot 3 | jordi | |
2023-01-19 | Allow standalone ternary expressions | jordi | |
2023-01-18 | Fix unnammed enum crash regression | ocean (they/them) | |
2023-01-16 | Merge pull request #71279 from vonagam/fix-iterator-number-type | Rémi Verschelde | |
GDScript: Fix typing of iterator in for loop | |||
2023-01-15 | Fix cyclic reference errors while reducing identifiers. | Adam Scott | |
Co-authored-by: Dmitrii Maganov <vonagam@gmail.com> | |||
2023-01-13 | GDScript: Disallow type inference with untyped initializer | Dmitrii Maganov | |
2023-01-13 | GDScript: Fix typing of iterator in for loop | Dmitrii Maganov | |
2023-01-13 | GDScript: Fix infinite recursion in resolution of enum values | George Marques | |
2023-01-12 | Merge pull request #70733 from vonagam/fix-assigning-untyped | Rémi Verschelde | |
GDScript: Fix some issues with assignments that involve untyped things | |||
2023-01-12 | GDScript: Fix extending abstract classes, forbid their construction | Dmitrii Maganov | |
2023-01-12 | GDScript: Fix wrong marking of some lines related to Variant as unsafe | Dmitrii Maganov | |
2023-01-12 | GDScript: Fix some issues with assignments that involve untyped things | Dmitrii Maganov | |
2023-01-12 | GDScript: Fix getting type from PropertyInfo for Variant arguments | Dmitrii Maganov | |
2023-01-12 | Merge pull request #70987 from vonagam/fix-parameter-conversion-assign | George Marques | |
2023-01-12 | GDScript: Fix small inconsistencies with resolve_datatype | Dmitrii Maganov | |
2023-01-10 | GDScript: Fix use of conversion assign for variant values | George Marques | |
2023-01-10 | Merge pull request #71140 from vonagam/fix-const-index-subscript-type | Rémi Verschelde | |
GDScript: Fix type for index subscript on constant | |||
2023-01-10 | GDScript: Fix type for index subscript on constant | Dmitrii Maganov | |
2023-01-09 | Fix GDScript base and outer classes, signals and functions lookup order | Adam Scott | |
- Add outer class lookup test - Add signal lookup test Co-authored-by: Dmitrii Maganov <vonagam@gmail.com> |