summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge pull request #78178 from dalexeev/gds-add-non-tool-extends-tool-errorRémi Verschelde2024-08-285-0/+27
|\ \ | | | | | | | | | GDScript: Add warning if non-`@tool` class extends `@tool` class
| * | GDScript: Add warning if non-`@tool` class extends `@tool` classDanil Alexeev2024-07-045-0/+27
| | |
* | | Autocompletion: enable string literal completion in subscriptsHolonProduction2024-08-2718-0/+175
| | |
* | | Merge pull request #94082 from HolonProduction/completion-forceRémi Verschelde2024-08-2028-3/+159
|\ \ \ | | | | | | | | | | | | Autocompletion: Rework argument options string literal completion
| * | | Autocompletion: rework argument options string literal completionHolonProduction2024-07-0828-3/+159
| | | |
* | | | GDScript: Fix common mismatched external parser errorsrune-scape2024-07-3113-1/+51
| | | |
* | | | 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-254-0/+27
|/ / / / | | | | | | | | | | | | Variant type was not updated correctly causing leaks in ref-counted
* | | | Merge pull request #94674 from ↵Rémi Verschelde2024-07-242-0/+88
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | dalexeev/gds-fix-incorrect-setter-call-for-ref-types GDScript: Fix incorrect setter call for reference types
| * | | | GDScript: Fix incorrect setter call for reference typesDanil Alexeev2024-07-242-0/+88
| | | | |
* | | | | GDScriptTestRunner: Fix compiler error outputrune-scape2024-07-231-1/+1
| | | | |
* | | | | GDScript: Fix false positive cases of `ENUM_VARIABLE_WITHOUT_DEFAULT`Danil Alexeev2024-07-221-0/+14
|/ / / /
* | | | 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`