summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/runtime/features
Commit message (Collapse)AuthorAgeFilesLines
* Fix stringification of ProjectionRémi Verschelde2024-11-252-0/+2
|
* Fix stringification of Vector4kobewi2024-11-222-7/+12
|
* Fix analyzer pushing SHADOWED_VARIABLE warning for members shadowed in ↵girdenis-p2024-11-061-2/+2
| | | | | | | | | | subclasses This fixes a bug in the analyzer where it did not push the SHADOWED_VARIABLE_BASE_CLASS warning for members shadowed by variable in subclass. It does this by comparing the class which contains the shadowed member with the class containing the variable, and pushing SHADOWED_VARIABLE only if the classes are the same. Additionally, SHADOWED_VARIABLE_BASE_CLASS can take an extra symbol which helps to specify the line for non native base class.
* Merge pull request #47502 from KoBeWi/add_0Thaddeus Crews2024-10-316-35/+35
|\ | | | | | | Always add decimal when converting float to string
| * Always add decimal when printing floatkobewi2024-10-236-35/+35
| |
* | GDScript: Rework `GDScriptUtilityFunctions` macrosDanil Alexeev2024-10-252-0/+17
| |
* | GDScriptNativeClass: Allow getting static function as callablerune-scape2024-09-232-0/+11
|/
* Object: Add tests about the safety of tail destructionPedro J. Estébanez2024-09-162-0/+55
|
* Implement typed dictionariesThaddeus Crews2024-09-048-16/+63
|
* Merge pull request #70096 from rune-scape/stringname-dictRémi Verschelde2024-09-032-3/+3
|\ | | | | | | StringName Dictionary keys
| * StringName Dictionary keysrune-scape2024-08-292-3/+3
| | | | | | | | | | also added 'is_string()' method to Variant and refactored many String type comparisons to use it instead
* | GDScript: Replace `assert()` with `Utils.check()` in testsDanil Alexeev2024-08-2813-35/+27
|/
* Merge pull request #94730 from dalexeev/gds-fix-while-locals-clearingRémi Verschelde2024-07-262-2/+19
|\ | | | | | | GDScript: Fix locals clearing after exiting `while` block
| * GDScript: Fix locals clearing after exiting `while` blockDanil Alexeev2024-07-252-2/+19
| |
* | [Core] Fix `Variant::construct` of `Object`A Thousand Ships2024-07-252-0/+12
|/ | | | Variant type was not updated correctly causing leaks in ref-counted
* GDScript: Fix incorrect setter call for reference typesDanil Alexeev2024-07-242-0/+88
|
* Merge pull request #94327 from HolonProduction/underscore_identifierRémi Verschelde2024-07-172-0/+16
|\ | | | | | | GDScript: Restore support for `Token::UNDERSCORE` in identifiers
| * GDScript: Restore support for `Token::UNDERSCORE` in identifiersHolonProduction2024-07-152-0/+16
| |
* | Merge pull request #94138 from vnen/gdscript-simple-setter-chain-call-setterRémi Verschelde2024-07-172-0/+17
|\ \ | |/ |/| | | GDScript: Call setter on simple setter chain without getter
| * GDScript: Call setter on simple setter chain without getterGeorge Marques2024-07-092-0/+17
| | | | | | | | | | Fixes a bug where a member variable was being set directly before calling the setter.
* | Merge pull request #94025 from dalexeev/gds-fix-implicit-cast-typed-array-paramRémi Verschelde2024-07-092-0/+9
|\ \ | |/ |/| | | GDScript: Fix implicit cast to typed array when passing parameter
| * GDScript: Fix implicit cast to typed array when passing parameterDanil Alexeev2024-07-072-0/+9
| |
* | [GDScript] Fix `get_method` for lambda self `Callable`sA Thousand Ships2024-07-082-0/+26
|/
* [GDScript] Fix `get_argument_count` for lambda `Callable`sA Thousand Ships2024-07-052-0/+21
|
* GDScript: Fix subscript resolution on constant non-metatype GDScript baseDanil Alexeev2024-05-302-0/+17
|
* GDScript: Fix lambdas capturing non-local variablesDanil Alexeev2024-05-222-0/+31
|
* GDScript: Fix some export annotation issuesDanil Alexeev2024-05-131-3/+3
|
* Style: Trim trailing whitespace and ensure newline at EOFRémi Verschelde2024-05-081-1/+0
| | | | Found by apply the file_format checks again via #91597.
* Fix various typos with codespellRémi Verschelde2024-05-071-1/+1
| | | | | | | | | Using 2.2.7.dev217+g10c2abcf. Had to add `colour` to the ignore list as we used it as an alias/keyword for the documentation of color-related APIs. Also ignore recommendations to change `thirdparty` to either `third-party` or `third party`, which are correct but we use the former fairly consistently.
* Add PackedVector4Array Variant typeK. S. Ernest (iFire) Lee2024-05-0310-0/+22
| | | | | Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* Merge pull request #91364 from vnen/gdscript-implicit-ready-base-firstRémi Verschelde2024-05-022-0/+21
|\ | | | | | | GDScript: Call implicit ready on base script first
| * GDScript: Call implicit ready on base script firstGeorge Marques2024-05-022-0/+21
| | | | | | | | | | | | | | It is generally expected that the base class is called before the inherited clas. This commit implements this behavior for the implicit ready function (`@onready` annotation) to make it consistent with the expectations.
* | Merge pull request #91192 from vnen/gdscript-validated-native-static-callsRémi Verschelde2024-05-012-0/+9
|\ \ | |/ |/| | | GDScript: Perform validated calls with static methods
| * GDScript: Perform validated calls with static methodsGeorge Marques2024-04-252-0/+9
| | | | | | | | | | | | When the types are validated at compile time, this type of call runs faster. It is already used for instance methods, this adds this optimization to native static methods as well.
* | GDScript: Fix object iterator opcodesDanil Alexeev2024-04-262-0/+79
|/
* GDScript: Fix test `reset_uninit_local_vars.gd` failureDanil Alexeev2024-04-241-3/+3
|
* Merge pull request #89990 from dalexeev/gds-reset-uninit-local-varsRémi Verschelde2024-04-242-0/+25
|\ | | | | | | GDScript: Fix uninitialized local variables not being reset
| * GDScript: Fix uninitialized local variables not being resetDanil Alexeev2024-03-302-0/+25
| |
* | GDScript: Warn when enum variable has no defaultGeorge Marques2024-04-161-0/+1
| | | | | | | | | | The default will always be set to `0`, so if it's not a valid value in the enum, the warning is shown.
* | Merge pull request #90442 from vnen/gdscript-dont-warn-using-default-builtinRémi Verschelde2024-04-101-0/+2
|\ \ | | | | | | | | | GDScript: Don't warn on unassigned for builtin-typed variables
| * | GDScript: Don't warn on unassigned for builtin-typed variablesGeorge Marques2024-04-101-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the type of a variable is a built-in Variant type, then it will automatically be assigned a default value based on the type. This means that the explicit initialization may be unnecessary. Thus this commit removes the warning in such case. This also changes the meaning of the unassigned warning to happen when the variable is used before being assigned, not when it has zero assignments.
* | | Merge pull request #84043 from dalexeev/gds-fix-unsafe-cast-warningRémi Verschelde2024-04-092-0/+34
|\ \ \ | |/ / |/| | | | | GDScript: Fix `UNSAFE_CAST` warning
| * | GDScript: Fix `UNSAFE_CAST` warningDanil Alexeev2023-10-272-0/+34
| | |
* | | 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
| |