summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/runtime
Commit message (Collapse)AuthorAgeFilesLines
...
| * | GDScript: Fix `UNSAFE_CAST` warningDanil Alexeev2023-10-2710-0/+74
| | |
* | | Add tests for signal await with parameterskobewi2024-04-082-0/+29
| |/ |/|
* | [Core] Disconnect one-shot signals before calling callbacksA Thousand Ships2024-03-204-0/+40
| | | | | | | | | | This prevents infinite recursion with one-shot connections emitting themselves
* | Merge pull request #87680 from AThousandShips/the_angry_countRémi Verschelde2024-03-132-0/+129
|\ \ | | | | | | | | | Add methods to get argument count of methods
| * | Add methods to get argument count of methodsA Thousand Ships2024-03-102-0/+129
| | | | | | | | | | | | | | | | | | | | | | | | Added to: * `Callable`s * `Object`s * `ClassDB` * `Script(Instance)`s
* | | GDScript: Fix `@warning_ignore` annotation issuesDanil Alexeev2024-03-122-0/+14
|/ /
* | [GDScript] Fix some test file pathsA Thousand Ships2024-03-0412-0/+0
| |
* | Core: Add `Callable.create` static method for `Variant` callablesDanil Alexeev2024-02-292-2/+11
| |
* | Merge pull request #82122 from dalexeev/gds-add-export-hidden-annotationRémi Verschelde2024-02-275-14/+17
|\ \ | | | | | | | | | GDScript: Add `@export_storage` annotation
| * | GDScript: Add `@export_storage` annotationDanil Alexeev2023-12-195-14/+17
| |/
* | set has_type false if it is BUILTIN but Variant::NILemre0altan2024-02-112-0/+8
| |
* | Merge pull request #86823 from dalexeev/gds-utility-func-as-callableRémi Verschelde2024-01-302-0/+17
|\ \ | | | | | | | | | GDScript: Allow utility functions to be used as `Callable`
| * | GDScript: Allow utility functions to be used as `Callable`Danil Alexeev2024-01-052-0/+17
| | |
* | | Allow `free()` to be used as CallableGeorge Marques2024-01-182-0/+13
|/ / | | | | | | | | | | | | This method is registered in a special way so ClassDB doesn't naturally know about its existence. Here it is hardcoded if any other option fail to check if it is about the `free()` method and, if so, say it exists and return a Callable.
* | 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