summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | 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
| |/ / /
* | | | Merge pull request #93897 from akien-mga/vformat-better-error-messageRémi Verschelde2024-07-091-0/+1
|\ \ \ \ | | | | | | | | | | | | | | | Core: Improve `vformat` error reporting on `sprintf` failure
| * | | | Core: Improve vformat error reporting on sprintf failureRémi Verschelde2024-07-041-0/+1
| | |/ / | |/| | | | | | | | | | And fix a few occurrences of formatting errors that led me to this.
* | | | [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 false positive `CONFUSABLE_CAPTURE_REASSIGNMENT` warningsDanil Alexeev2024-06-282-42/+21
| |
* | GDScript: Add `CONFUSABLE_CAPTURE_REASSIGNMENT` warningDanil Alexeev2024-06-283-0/+64
| |
* | Merge pull request #93384 from dalexeev/gds-fix-non-global-class-exportRémi Verschelde2024-06-215-6/+11
|\ \ | | | | | | | | | GDScript: Fix non-global class export
| * | GDScript: Fix non-global class exportDanil Alexeev2024-06-205-6/+11
| | |
* | | Merge pull request #92688 from HolonProduction/autocompletion-batch-2Rémi Verschelde2024-06-2128-0/+301
|\ \ \ | |/ / |/| | | | | Add more autocompletion tests
| * | Add more autocompletion testsHolonProduction2024-06-0228-0/+301
| | |
* | | Autocompletion: Add support for string name option in more placesHolonProduction2024-06-1211-0/+73
| | |
* | | Register the export info correctly when a global class script is used as the ↵PreslavPetrov2024-06-033-0/+12
|/ / | | | | | | variable type for Node
* | 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
| |
* | Merge pull request #90716 from dalexeev/gds-fix-export-annotation-issuesRémi Verschelde2024-05-198-139/+188
|\ \ | | | | | | | | | GDScript: Fix some export annotation issues
| * | GDScript: Fix some export annotation issuesDanil Alexeev2024-05-138-139/+188
| | |
* | | GDScript: Fix `STANDALONE_EXPRESSION` warning for `preload()`Danil Alexeev2024-05-174-4/+22
| | |
* | | Use Core/Scene stringnames consistentlykobewi2024-05-131-1/+0
|/ /
* | Replace `find` with `contains/has` where applicableA Thousand Ships2024-05-081-1/+1
| | | | | | | | | | | | | | * Replaces `find(...) != -1` with `contains` for `String` * Replaces `find(...) == -1` with `!contains` for `String` * Replaces `find(...) != -1` with `has` for containers * Replaces `find(...) == -1` with `!has` for containers
* | Style: Trim trailing whitespace and ensure newline at EOFRémi Verschelde2024-05-0824-30/+26
| | | | | | | | 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.
* | Reduce and prevent unnecessary random-access to `List`A Thousand Ships2024-05-043-15/+13
| | | | | | | | | | | | | | | | | | Random-access access to `List` when iterating is `O(n^2)` (`O(n)` when accessing a single element) * Removed subscript operator, in favor of a more explicit `get` * Added conversion from `Iterator` to `ConstIterator` * Remade existing operations into other solutions when applicable
* | Add PackedVector4Array Variant typeK. S. Ernest (iFire) Lee2024-05-0314-0/+41
| | | | | | | | | | Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* | Merge pull request #91412 from ↵Rémi Verschelde2024-05-0216-4/+155
|\ \ | | | | | | | | | | | | | | | dalexeev/gds-fix-non-static-access-in-static-context GDScript: Fix access non-static members in static context
| * | GDScript: Fix access non-static members in static contextDanil Alexeev2024-05-0116-4/+155
| | |
* | | 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.
* | | | [GDScript] Correctly report invalid read-only accessA Thousand Ships2024-05-013-3/+3
| |/ / |/| |
* | | 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.
* | | | Merge pull request #89647 from AThousandShips/read_only_dictRémi Verschelde2024-05-012-0/+10
|\ \ \ \ | |_|/ / |/| | | | | | | [Core] Fix property access on read-only `Dictionary`
| * | | [Core] Fix property access on read-only `Dictionary`A Thousand Ships2024-04-222-0/+10
| | | |
* | | | 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
| | | |
* | | | Merge pull request #89884 from HolonProduction/tests-batch-2Rémi Verschelde2024-04-2339-11/+100
|\ \ \ \ | |_|/ / |/| | | | | | | Completion Tests: Add script to owner
| * | | Completion Tests: Add script to ownerHolonProduction2024-03-2539-11/+100
| | |/ | |/|
* | | Merge pull request #90794 from ↵Rémi Verschelde2024-04-184-52/+9
|\ \ \ | | | | | | | | | | | | | | | | | | | | vnen/gdscript-no-unused-constant-warning-with-underscore GDScript: Suppress unused constant warning with underscore
| * | | GDScript: Suppress unused constant warning with underscoreGeorge Marques2024-04-184-52/+9
| | | | | | | | | | | | | | | | | | | | | | | | The warning message mentions that local constants prefixed with `_` does not generate the warning. This commit actually implements this warning suppression.
* | | | GDScript: Warn when enum variable has no defaultGeorge Marques2024-04-163-0/+17
|/ / / | | | | | | | | | | | | 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 #89472 from dalexeev/gds-fix-bin-tokenizer-continuation-linesRémi Verschelde2024-04-153-7/+30
|\ \ \ | | | | | | | | | | | | GDScript: Fix continuation lines in `GDScriptTokenizerBuffer`
| * | | GDScript: Fix continuation lines in `GDScriptTokenizerBuffer`Danil Alexeev2024-04-103-7/+30
| | | |
* | | | GDScript: Allow casting enum to intGeorge Marques2024-04-122-0/+11
| | | | | | | | | | | | | | | | | | | | An enum value is always an integer so the cast is valid. The code here now consider this case to avoid giving an error message.