Age | Commit message (Collapse) | Author |
|
GDScript: Add warnings that are set to error by default (take 2)
|
|
Improve docs for rpc annotations
|
|
|
|
Cleanup function state connections when destroying instance
|
|
GDScript: Improve usability of setter chains
|
|
- 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.
|
|
- 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.
|
|
does not match base.
|
|
GDScript: Fix getting reduced value of incomplete subscript for autocomplete
|
|
|
|
|
|
GDScript: Fix disassembly of typed array assignment and construction
|
|
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
|
|
Fix disassembly of OPCODE_CONSTRUCT_TYPED_ARRAY.
|
|
Remove `@GDScript.str` (duplicate of `@GlobalScope.str`)
|
|
Found while inspecting the bytecode for godot-benchmarks.
|
|
- 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` annotation
|
|
GDScript: Allow void functions to return calls to other void functions
|
|
Add hint for identifiers renamed from 3.x to 4.0
|
|
|
|
|
|
Fix global script class parsing.
|
|
* 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.
|
|
GDScript: Fix typed arrays
|
|
|
|
Add option to print filenames in GDScript unit testing
|
|
|
|
GDScript: Fix match branches return check on release
|
|
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.
|
|
|
|
GDScript: Fix `@export_enum` works only with `int`
|
|
|
|
|
|
GDScript: Fix broken export group annotations
|
|
|
|
GDScript: Allow variables in match patterns
|
|
GDScript: Avoid calling non-static methods on native classes
|
|
GDScript: Fix constant conversions
|
|
|
|
To restore an ability available in 3.x and reduce compatibility changes.
|
|
|
|
|
|
|
|
GDScript: Fix wrong marking of some lines related to Variant as unsafe
|
|
|
|
|
|
GDScript: Allow constant expressions in annotations
|