summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/runtime
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge pull request #82639 from golfinq/gdscript-improve-indexing-errorRémi Verschelde2024-01-042-2/+2
|\ \ | | | | | | | | | GDScript: Improve error messages for invalid indexing
| * | GDScript: Improve error messages for invalid indexingRémi Verschelde2023-10-022-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | These errors are very common when using an invalid property name or calling on an object of the wrong type, and the previous message was a bit cryptic for users. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com> Co-authored-by: golfinq <golfinqz@gmail.com>
* | | Merge pull request #86088 from ↵Rémi Verschelde2024-01-022-1/+9
|\ \ \ | | | | | | | | | | | | | | | | | | | | dalexeev/gds-fix-static-func-as-callable-in-static-context GDScript: Fix accessing static function as `Callable` in static context
| * | | GDScript: Fix accessing static function as `Callable` in static contextDanil Alexeev2023-12-122-1/+9
| | |/ | |/|
* / | Core: Allow methods of built-in `Variant` types to be used as CallablesDanil Alexeev2023-10-252-0/+9
|/ /
* | GDScript: Fix incorrect error message for utility functionsDanil Alexeev2023-10-164-0/+18
| |
* | GDScript: Replace ptrcalls on MethodBind to validated callsGeorge Marques2023-10-061-3/+3
| | | | | | | | | | | | | | | | | | This improves the performance of typed calls to engine methods when the argument types are exact. Using validated calls delegate more of the work the core instead of doing argument unpacking in the VM. It also does not need different instructions for each return type, simplifying the code.
* | Core: Fix `Object::has_method()` for script static methodsDanil Alexeev2023-10-042-0/+15
| |
* | GDScript: Fix `UNSAFE_CALL_ARGUMENT` warning for `Variant` constructorsDanil Alexeev2023-09-301-1/+0
|/
* Merge pull request #82186 from dalexeev/gds-fix-property-duplicationYuri Sizov2023-09-282-0/+69
|\ | | | | | | GDScript: Fix duplication of inherited script properties
| * GDScript: Fix duplication of inherited script propertiesDanil Alexeev2023-09-232-0/+69
| |
* | Merge pull request #82030 from dalexeev/gds-make-for-loop-array-literal-typedYuri Sizov2023-09-282-0/+10
|\ \ | | | | | | | | | GDScript: Make array literal typed if `for` loop variable type is specified
| * | GDScript: Make array literal typed if `for` loop variable type is specifiedDanil Alexeev2023-09-212-0/+10
| |/
* | Merge pull request #80085 from vnen/gdscript-pattern-guardsYuri Sizov2023-09-282-0/+81
|\ \ | | | | | | | | | GDScript: Implement pattern guards for match statement
| * | GDScript: Implement pattern guards for match statementGeorge Marques2023-09-272-0/+81
| |/ | | | | | | | | | | | | | | | | | | | | | | Within a match statement, it is now possible to add guards in each branch: var a = 0 match a: 0 when false: print("does not run") 0 when true: print("but this does") This allows more complex logic for deciding which branch to take.
* / GDScript: Improve call analysisDanil Alexeev2023-09-215-1/+12
|/ | | | | | * Add missing `UNSAFE_CALL_ARGUMENT` warning. * Fix `Object` constructor. * Display an error for non-existent static methods.
* GDScript: Fix some lambda bugsDanil Alexeev2023-09-145-62/+59
|
* GDScript: Fix `get_*_list()` methods return incorrect infoDanil Alexeev2023-09-042-0/+170
|
* GDScript: Add static typing for `for` loop variableDanil Alexeev2023-08-174-0/+69
|
* GDScript: Fix regression with native signal not foundDanil Alexeev2023-08-022-0/+19
|
* Merge pull request #78254 from dalexeev/gds-fix-property-group-name-conflictYuri Sizov2023-07-312-0/+22
|\ | | | | | | GDScript: Fix conflict between property and group names
| * GDScript: Fix conflict between property and group namesDanil Alexeev2023-06-152-0/+22
| |
* | Merge pull request #77744 from dalexeev/gds-reset-block-locals-on-exitRémi Verschelde2023-06-214-0/+55
|\ \ | | | | | | | | | GDScript: Reset local variables on exit from block
| * | GDScript: Reset local variables on exit from blockDanil Alexeev2023-06-024-0/+55
| | |
* | | Merge pull request #73540 from mashumafi/fix-typed-array-addRémi Verschelde2023-06-202-0/+35
|\ \ \ | | | | | | | | Fix: Typed arrays aren't working with +
| * | | Fix: Typed arrays aren't working with +mashumafi2023-02-222-0/+35
| | | |
* | | | GDScript: Fix `_get_script_name()` function collision for SCU buildDanil Alexeev2023-06-202-2/+2
| | | |
* | | | Merge pull request #78389 from rune-scape/rune-match-stringnamesRémi Verschelde2023-06-194-17/+32
|\ \ \ \ | | | | | | | | | | | | | | | GDScript: Strings and StringNames match
| * | | | GDScript: Strings and StringNames matchrune-scape2023-06-144-17/+32
| | |_|/ | |/| |
* | | | Merge pull request #77129 from dalexeev/gds-fix-static-var-bugs-part-1Rémi Verschelde2023-06-198-18/+192
|\ \ \ \ | | | | | | | | | | | | | | | GDScript: Fix some bugs with static variables and functions
| * | | | GDScript: Fix some bugs with static variables and functionsDanil Alexeev2023-06-168-18/+192
| |/ / /
* | | | Merge pull request #73657 from mashumafi/callable-ctorRémi Verschelde2023-06-182-0/+13
|\ \ \ \ | |/ / / |/| | | | | | | Fix: Get constructor as Callable
| * | | Fix: Get constructor as Callablemashumafi2023-02-202-0/+13
| | | |
* | | | GDScript: Further restrict test error output for C++ errorsRémi Verschelde2023-06-141-1/+0
| | | | | | | | | | | | | | | | MSVC and GCC/Clang also have different function names...
* | | | GDScript: Only include script file path in test error outputRémi Verschelde2023-06-141-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Errors originating in C++ files cause unnecessary diffs whenever the engine is updated (line number changes, etc.) and would cause CI failures due to different formatting of the file path on Windows (backslashes, worked around here anyway) and when using SCU builds (`../scu` insert).
* | | | Merge pull request #75419 from vonagam/fix-super-classes-in-array-literalsRémi Verschelde2023-06-142-0/+14
|\ \ \ \ | |_|_|/ |/| | | | | | | GDScript: Allow elements of a parent class in a typed array literal
| * | | 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
|/ /