summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/runtime
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | GDScript: Allow elements of a parent class in a typed array literalDmitrii Maganov2023-03-282-0/+14
| | | |
* | | | Add support for static variables in GDScriptGeorge Marques2023-04-278-0/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Which allows editable data associated with a particular class instead of the instance. Scripts with static variables are kept in memory indefinitely unless the `@static_unload` annotation is used or the `static_unload()` method is called on the GDScript. If the custom function `_static_init()` exists it will be called when the class is loaded, after the static variables are set.
* | | | GDScript: Don't fail when freed object is returnGeorge Marques2023-04-262-0/+17
| | | | | | | | | | | | | | | | | | | | This is check is a bit too eager. The user should be able to handle the return value even if it's a freed object.
* | | | [GDScript] Fix incorrect compound assignmentNinni Pipping2023-04-142-0/+37
|/ / / | | | | | | | | | | | | | | | Reverts in-place compound assignments Added test to ensure correctness
* | | GDScript: Fix false positive `REDUNDANT_AWAIT` warningDanil Alexeev2023-03-161-1/+1
| | |
* | | Fix GDScript code style regarding colonDanil Alexeev2023-03-053-4/+4
| | |
* | | Merge pull request #73915 from vonagam/fix-conversions-from-native-memberRémi Verschelde2023-02-262-0/+13
|\ \ \ | | | | | | | | | | | | GDScript: Fix conversions from native members accessed by identifier
| * | | GDScript: Fix conversions from native members accessed by identifierDmitrii Maganov2023-02-252-0/+13
| | | |
* | | | Merge pull request #73899 from vnen/gdscript-init-defaults-beforehandRémi Verschelde2023-02-262-0/+22
|\ \ \ \ | | | | | | | | | | | | | | | GDScript: Initialize all defaults beforehand in implicit constructor
| * | | | GDScript: Initialize all defaults beforehand in implicit constructorGeorge Marques2023-02-242-0/+22
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Set all the default values for typed variables before actually trying to initialize them, including `@onready` ones. This ensures that if validated calls are being used there will be a value of the correct type, even if the resolution is done out of order or deferred because of `@onready`.
* / / / Revert "GDScript: Fix groups and categories been seen as members"George Marques2023-02-252-14/+0
|/ / / | | | | | | | | | | | | | | | | | | This reverts commit 6f2a8434c675b3df2aceca4e5200aaf799eeb2bd. The commit introduces a bug where it creates spurious entries for member information.
* | | Fixup GDScript test using non-deterministic idsRémi Verschelde2023-02-242-4/+6
| | | | | | | | | | | | Follow-up to #73870.
* | | GDScript: Fix groups and categories been seen as membersGeorge Marques2023-02-242-0/+12
| | |
* | | Add test for const class referencesmashumafi2023-02-203-0/+19
|/ /
* / Fix: Func with typed args error when arg is nullmashumafi2023-02-192-0/+30
|/
* Revert "Remove script class checks when getting function signature"Rémi Verschelde2023-02-073-33/+0
| | | | | | This reverts commit 0fef203b1f39c3373f9f25b8e75e75f6b03f7c88. This introduced some other issues, as discussed in #72144.
* Remove script class checks when getting function signatureAdam Scott2023-02-073-0/+33
|
* GDScript: Improve usability of setter chainsGeorge Marques2023-02-024-0/+27
| | | | | | | | | - 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.
* GDScript: Fix issues with typed arraysDmitrii Maganov2023-01-3110-0/+54
|
* GDScript: Avoid calling non-static methods on native classesGeorge Marques2023-01-282-0/+12
|
* GDScript: Fix test for read-only state of constantsDmitrii Maganov2023-01-276-22/+12
|
* GDScript: Allow constant expressions in annotationsDanil Alexeev2023-01-255-11/+11
|
* GDScript: Fix typing of iterator in for loopDmitrii Maganov2023-01-132-0/+65
|
* Add default virtual `gdscript://` path to `GDScript` instancesAdam Scott2023-01-122-0/+23
|
* Merge pull request #70987 from vonagam/fix-parameter-conversion-assignGeorge Marques2023-01-124-0/+43
|\
| * GDScript: Fix missing conversion for default argument valuesDmitrii Maganov2023-01-064-0/+43
| |
* | GDScript: Fix temp values being written without proper clearGeorge Marques2023-01-112-0/+19
| | | | | | | | | | | | Temporary values in the stack were not being properly cleared when the return value of calls were discarded, which can cause memory issues especially for reference types like PackedByteArray.
* | Merge pull request #70595 from adamscott/add-gdscript-editorconfigRémi Verschelde2023-01-114-15/+15
|\ \ | | | | | | Add GDScript `.editorconfig` rules
| * | Add GDScript `.editorconfig` rulesAdam Scott2023-01-104-15/+15
| | | | | | | | | | | | - Uniformize `.gd` unit test files indentation to tabs (where needed)
* | | GDScript: Fix use of conversion assign for variant valuesGeorge Marques2023-01-102-0/+12
|/ /
* | Merge pull request #71051 from vonagam/consts-are-deep-startRémi Verschelde2023-01-098-0/+46
|\ \ | | | | | | GDScript: Begin making constants deep, not shallow or flat
| * | GDScript: Begin making constants deep, not shallow or flatDmitrii Maganov2023-01-088-0/+46
| |/
* | GDScript: Allow using await on calls to void functionsGeorge Marques2023-01-092-0/+9
| |
* | GDScript: Don't use the NIL address to hold return value of functionsGeorge Marques2023-01-092-0/+47
|/ | | | | This prevents that the NIL address is filled with another value, which causes problems for some instructions that read from NIL.
* Merge pull request #70702 from vnen/gdscript-error-on-assign-voidRémi Verschelde2023-01-037-4/+34
|\ | | | | | | GDScript: Error when assigning return value of void function
| * GDScript: Error when assigning return value of void functionGeorge Marques2022-12-307-4/+34
| | | | | | | | | | This also makes built-in method calls empty the return value when the method is void, to avoid keeping returning a garbage value in such case.
* | Fix type adjustment skipped when value is considered both not hard and not ↵cdemirer2022-12-252-0/+21
|/ | | | variant
* Merge pull request #68747 from rune-scape/rune-stringname-unificationRémi Verschelde2022-12-098-0/+105
|\ | | | | | | GDScript: Unify StringName and String
| * Unify String and StringNamerune-scape2022-12-058-0/+105
| |
* | Fix incomplete shadowing of member properties by parametersDmitrii Maganov2022-12-062-0/+42
|/
* Merge pull request #68125 from ↵Rémi Verschelde2022-11-024-0/+139
|\ | | | | | | | | | | kleonc/range-fix-single-arg-optimized-type-mismatch [GDScript] Fix type mismatch in optimized single arg `range`
| * GDScript Fix type mismatch in optimized single arg `range`kleonc2022-11-024-0/+139
| |
* | Support for checking that Projection is(not) nullRafał Mikrut2022-11-014-0/+10
|/
* Improve dictionary printing to avoid confusion with arraysHugo Locurcio2022-10-042-3/+3
| | | | | | - Add leading and trailing spaces within dictionaries, as the `{}` characters are hard to distinguish from `[]` on some fonts. This is especially helpful with empty arrays and dictionaries.
* Fix set chain bug with jump_if_sharedcdemirer2022-06-282-0/+26
|
* quote strings inside arrays and dictionariesNathan Franke2022-05-031-3/+3
|
* GDScript: Allow using self in lambdasGeorge Marques2022-04-242-0/+28
|
* GDScript: Allow tests to run on release buildsGeorge Marques2022-02-032-1/+2
| | | | | | | | | - Fix compilation issues by disabling warnings on release builds. This also strips warnings from expected result before the comparison to avoid false mismatches. - Add a `#debug-only` flag to tests. Must be the first line of the test script. Those won't run with release builds. Can be used for test cases that rely on checks only available on debug builds.
* GDScript: Fix parsing default parameter values from function callsstrank2022-01-132-0/+41
|
* Refactored Node3D rotation modesreduz2021-10-251-1/+1
| | | | | | | | | * Made the Basis euler orders indexed via enum. * Node3D has a new rotation_order property to choose Euler rotation order. * Node3D has also a rotation_mode property to choose between Euler, Quaternion and Basis Exposing these modes as well as the order makes Godot a lot friendlier for animators, which can choose the best way to interpolate rotations. The new *Basis* mode makes the (exposed) transform property obsolete, so it was removed (can still be accessed by code of course).