summaryrefslogtreecommitdiff
path: root/modules/gdscript
AgeCommit message (Collapse)Author
2023-02-07Merge pull request #72493 from dalexeev/gds-export-flagsRémi Verschelde
GDScript: Improve validation and documentation of `@export_flags`
2023-02-07Merge pull request #72789 from Vilcrow/fix-jump-to-definitionRémi Verschelde
Fixed the jumping to function definition using 'Ctrl+LMB'.
2023-02-07GDScript: Improve validation and documentation of `@export_flags`Danil Alexeev
2023-02-07Some code simplificationsMarkus 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-07Fixed the jumping to function definition using 'Ctrl+LMB'.S.V.I. Vilcrow
2023-02-06Merge pull request #72546 from vonagam/fix-typed-array-can-referenceYuri Sizov
GDScript: Fix can_reference check for typed arrays
2023-02-06Merge pull request #72677 from dalexeev/gds-await-infer-typeYuri Sizov
GDScript: Fix `await` type inference
2023-02-06Merge pull request #72804 from vnen/gdscript-no-onready-without-nodeYuri Sizov
GDScript: Fix inheritance check of @onready for inner classes
2023-02-06GDScript: Fix `await` type inferenceDanil Alexeev
2023-02-06Merge pull request #70002 from poohcom1/fix/static-subscript-autocompleteYuri Sizov
Fix code-completion suggesting non-static members for custom classes
2023-02-06Merge pull request #72708 from KoBeWi/PackedMultilineStringArrayYuri Sizov
Fix @export_multiline for PackedStringArray
2023-02-06GDScript: Fix can_reference check for typed arraysDmitrii Maganov
2023-02-06GDScript: Fix inheritance check of @onready for inner classesGeorge Marques
2023-02-06GDScript: Fix recently merged test not ignoring warningsRémi Verschelde
2023-02-06Merge pull request #72330 from MinusKube/unreachable_code_bugRémi Verschelde
Fix unreachable code warning for elif block
2023-02-06Merge pull request #72512 from vonagam/fix-ternary-type-sourceYuri Sizov
GDScript: Fix type certainty for result of ternary operator
2023-02-06Merge pull request #72794 from vnen/gdscript-no-onready-without-nodeRémi Verschelde
GDScript: Don't allow @onready without inheriting Node
2023-02-06GDScript: Don't allow @onready without inheriting NodeGeorge Marques
2023-02-05GDScript: Better handling of `@rpc` annotation and autocompletionDanil Alexeev
2023-02-05Merge pull request #72608 from vnen/gdscript-warning-default-errorYuri Sizov
GDScript: Add warnings that are set to error by default (take 2)
2023-02-04Fix @export_multiline for PackedStringArraykobewi
2023-02-04Merge pull request #71860 from GeroVeni/masterYuri Sizov
Improve docs for rpc annotations
2023-02-04Improve docs for rpc annotationsGeroVeni
2023-02-03Merge pull request #65910 from KoBeWi/gdsusRémi Verschelde
Cleanup function state connections when destroying instance
2023-02-02Merge pull request #72398 from vnen/gdscript-setter-chainRémi Verschelde
GDScript: Improve usability of setter chains
2023-02-02GDScript: Add warnings that are set to error by defaultGeorge 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-02GDScript: Improve usability of setter chainsGeorge 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-02Fix crash in gdscript when autocompleting virtual function and signature ↵Eric M
does not match base.
2023-02-02Merge pull request #72557 from vonagam/fix-make-value-protectionRémi Verschelde
GDScript: Fix getting reduced value of incomplete subscript for autocomplete
2023-02-02GDScript: Fix crash in export group annotationsDanil Alexeev
2023-02-02GDScript: Fix getting reduced value of incomplete subscriptDmitrii Maganov
2023-02-01GDScript: Fix type certainty for result of ternary operatorDmitrii Maganov
2023-02-01Merge pull request #72499 from vonagam/fix-typed-array-disassemblyRémi Verschelde
GDScript: Fix disassembly of typed array assignment and construction
2023-02-01Revert "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-01GDScript: Fix disassembly of typed array assignment and constructionDmitrii Maganov
2023-02-01Merge pull request #72487 from vnen/gdscript-warning-default-errorRémi Verschelde
GDScript: Add warnings that are set to error by default
2023-02-01Merge pull request #72490 from resistor/disasmRémi Verschelde
Fix disassembly of OPCODE_CONSTRUCT_TYPED_ARRAY.
2023-02-01Merge pull request #72371 from dalexeev/remove-gds-str-duplicateRémi Verschelde
Remove `@GDScript.str` (duplicate of `@GlobalScope.str`)
2023-01-31Fix disassembly of OPCODE_CONSTRUCT_TYPED_ARRAY.Owen Anderson
Found while inspecting the bytecode for godot-benchmarks.
2023-02-01GDScript: Add warnings that are set to error by defaultGeorge 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-31Merge pull request #72454 from dalexeev/gds-fix-icon-annotationRémi Verschelde
GDScript: Fix `@icon` annotation
2023-01-31Merge pull request #72206 from vnen/gdscript-allow-void-return-shorthandRémi Verschelde
GDScript: Allow void functions to return calls to other void functions
2023-01-31Merge pull request #57520 from jordigcs/gd-rename-mapRémi Verschelde
Add hint for identifiers renamed from 3.x to 4.0
2023-01-31GDScript: Fix `@icon` annotationDanil Alexeev
2023-01-31GDScript: Allow void functions to return calls to other void functionsGeorge Marques
2023-01-31Merge pull request #72444 from reduz/fix-global-class-parsingRémi Verschelde
Fix global script class parsing.
2023-01-31Fix global script class parsing.Juan Linietsky
* 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.
2023-01-31Merge pull request #69248 from vonagam/fixing-typed-arraysRémi Verschelde
GDScript: Fix typed arrays
2023-01-31GDScript: Fix issues with typed arraysDmitrii Maganov
2023-01-31Merge pull request #72212 from anvilfolk/gdtestnamesRémi Verschelde
Add option to print filenames in GDScript unit testing