Age | Commit message (Collapse) | Author |
|
Avoid losing references to objects in the native-scripting boundary
|
|
|
|
GDScript: Allow strings as multiline comments
|
|
GDScript: Be more lenient with identifiers
|
|
- 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.
|
|
Bring back the behavior in 3.x that was left out by oversight.
|
|
Fix internal editor not updating when using external editor via LSP
|
|
|
|
GDScript: Improve validation and documentation of `@export_flags`
|
|
Fixed the jumping to function definition using 'Ctrl+LMB'.
|
|
|
|
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`
|
|
|
|
GDScript: Fix can_reference check for typed arrays
|
|
GDScript: Fix `await` type inference
|
|
GDScript: Fix inheritance check of @onready for inner classes
|
|
|
|
Fix code-completion suggesting non-static members for custom classes
|
|
Fix @export_multiline for PackedStringArray
|
|
|
|
|
|
|
|
Fix unreachable code warning for elif block
|
|
GDScript: Fix type certainty for result of ternary operator
|
|
GDScript: Don't allow @onready without inheriting Node
|
|
|
|
|
|
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
|