summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | 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-129-0/+69
| | |
* | | 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
|/ /
* | 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.
* | 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-2337-0/+52
|\ \ \ \ | |_|/ / |/| | | | | | | Completion Tests: Add script to owner
| * | | Completion Tests: Add script to ownerHolonProduction2024-03-2537-0/+52
| | |/ | |/|
* | | 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-152-0/+14
|\ \ \ | | | | | | | | | | | | GDScript: Fix continuation lines in `GDScriptTokenizerBuffer`
| * | | GDScript: Fix continuation lines in `GDScriptTokenizerBuffer`Danil Alexeev2024-04-102-0/+14
| | | |
* | | | 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.
* | | | Fix multiline array/dictionary match statementsAiden Storey2024-04-124-0/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently array and dictionary expressions cannot be spread over multiple lines in match statements. Adding mutliline push/pop while parsing the pattern for bracket and brace enables the ability for these to be multiline. This enables more complex patterns to be matched without exceeding line limits. Fixes #90372
* | | | Merge pull request #90448 from vnen/gdscript-infer-string-formatRémi Verschelde2024-04-102-0/+8
|\ \ \ \ | | | | | | | | | | | | | | | GDScript: Infer type with string format operator
| * | | | GDScript: Infer type with string format operatorGeorge Marques2024-04-102-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the left value type is known to be String, assume the format operator (`%`) will return a string, since it works with any type in the right hand side. This is also used by type inference even if the right hand type is unknown at compile time.
* | | | | Merge pull request #90442 from vnen/gdscript-dont-warn-using-default-builtinRémi Verschelde2024-04-107-4/+38
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | GDScript: Don't warn on unassigned for builtin-typed variables
| * | | | GDScript: Don't warn on unassigned for builtin-typed variablesGeorge Marques2024-04-107-4/+38
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 #89382 from dcaoc03/masterRémi Verschelde2024-04-094-0/+22
|\ \ \ \ | | | | | | | | | | | | | | | Fix enum autocompletion for core classes
| * | | | Fixed enum autocompletion for core classes (Issue #88858)Diogo Costa2024-03-154-0/+22
| | | | | | | | | | | | | | | | | | | | Minor fix consisted in the use of [[fallthrough]] macro
* | | | | Merge pull request #84043 from dalexeev/gds-fix-unsafe-cast-warningRémi Verschelde2024-04-0918-0/+146
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | GDScript: Fix `UNSAFE_CAST` warning
| * | | | GDScript: Fix `UNSAFE_CAST` warningDanil Alexeev2023-10-2718-0/+146
| | | | |