summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | GDScript: Fix warning ignoring for member variablesDanil Alexeev2023-05-122-0/+19
| | | | | |
* | | | | | Merge pull request #76412 from dalexeev/gds-reorganize-warningsRémi Verschelde2023-04-2819-34/+34
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | GDScript: Reorganize and unify warnings
| * | | | | | GDScript: Reorganize and unify warningsDanil Alexeev2023-04-2819-34/+34
| | | | | | |
* | | | | | | Merge pull request #75014 from vonagam/assert-literal-falseRémi Verschelde2023-04-282-0/+8
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | GDScript: Allow usage of literal false in assert without a warning
| * | | | | | GDScript: Allow usage of literal false in assert without a warningDmitrii Maganov2023-03-172-0/+8
| | |_|_|/ / | |/| | | |
* | | | | | Add support for static variables in GDScriptGeorge Marques2023-04-2717-8/+155
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Which allows editable data associated with a particular class instead of the instance. Scripts with static variables are kept in memory indefinitely unless the `@static_unload` annotation is used or the `static_unload()` method is called on the GDScript. If the custom function `_static_init()` exists it will be called when the class is loaded, after the static variables are set.
* | | | | | Merge pull request #76483 from vnen/gdscript-dont-fail-returning-freed-objectRémi Verschelde2023-04-272-0/+17
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | GDScript: Don't fail when freed object is return
| * | | | | | GDScript: Don't fail when freed object is returnGeorge Marques2023-04-262-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is check is a bit too eager. The user should be able to handle the return value even if it's a freed object.
* | | | | | | GDScript: Use default path in test generator if not providedGeorge Marques2023-04-261-5/+5
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | Since it's almost always used with the same path, assume it is running from the Godot source root.
* | | | | | Merge pull request #75885 from AThousandShips/compound_fixRémi Verschelde2023-04-252-0/+37
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | [GDScript] Fix incorrect compound assignment
| * | | | | | [GDScript] Fix incorrect compound assignmentNinni Pipping2023-04-142-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reverts in-place compound assignments Added test to ensure correctness
* | | | | | | Merge pull request #75605 from anvilfolk/type-baseRémi Verschelde2023-04-242-0/+8
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Make GDScript type not found errors more informative.
| * | | | | | | Make type not found errors more informative.ocean (they/them)2023-04-022-0/+8
| | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This PR removes a check for whether a datatype is a meta type when generating a datatype's to_string() result. This means that error messages that fail to find the type will now print their class names, which is much more useful when trying to identify errors.
* | | | | | | GDScript: Add some checks for `@tool` and `@icon`Danil Alexeev2023-04-204-0/+14
| | | | | | |
* | | | | | | Merge pull request #72979 from dalexeev/gds-annotation-parsingYuri Sizov2023-04-174-0/+67
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | GDScript: Fix and improve annotation parsing
| * | | | | | | GDScript: Fix and improve annotation parsingDanil Alexeev2023-04-144-0/+67
| | | | | | | |
* | | | | | | | Merge pull request #62830 from ajreckof/access-identifier-keywordsYuri Sizov2023-04-172-0/+37
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | | fix access to identifiers that are reserved keywords
| * | | | | | | fix access to identifiers that are reserved keywordsajreckof2023-04-142-0/+37
| |/ / / / / /
* | / / / / / GDScript: Add missing member type check when resolving `extends`Danil Alexeev2023-04-106-0/+36
| |/ / / / / |/| | | | |
* | | | | | Fix mistakes in documentation and GDScript errorsVolTer2023-04-101-1/+1
|/ / / / /
* | | | | Merge pull request #74949 from dalexeev/gds-fix-await-warningYuri Sizov2023-03-204-2/+92
|\ \ \ \ \ | | | | | | | | | | | | GDScript: Fix false positive `REDUNDANT_AWAIT` warning
| * | | | | GDScript: Fix false positive `REDUNDANT_AWAIT` warningDanil Alexeev2023-03-164-2/+92
| |/ / / /
* | | | | Merge pull request #74844 from vonagam/change-class-extends-parsingYuri Sizov2023-03-204-0/+17
|\ \ \ \ \ | | | | | | | | | | | | GDScript: Change parser representation of class extends
| * | | | | GDScript: Change parser representation of class extendsDmitrii Maganov2023-03-134-0/+17
| |/ / / /
* / / / / GDScript: Fix missing warning for shadowing of built-in typesDmitrii Maganov2023-03-132-0/+38
|/ / / /
* | | | Fix GDScript code style regarding colonDanil Alexeev2023-03-0520-46/+48
| | | |
* | | | Minor typo and docs URL fixesRémi Verschelde2023-02-281-1/+1
| | | |
* | | | Merge pull request #73915 from vonagam/fix-conversions-from-native-memberRémi Verschelde2023-02-262-0/+13
|\ \ \ \ | | | | | | | | | | | | | | | GDScript: Fix conversions from native members accessed by identifier
| * | | | GDScript: Fix conversions from native members accessed by identifierDmitrii Maganov2023-02-252-0/+13
| | | | |
* | | | | Merge pull request #73899 from vnen/gdscript-init-defaults-beforehandRémi Verschelde2023-02-262-0/+22
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | GDScript: Initialize all defaults beforehand in implicit constructor
| * | | | | GDScript: Initialize all defaults beforehand in implicit constructorGeorge Marques2023-02-242-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Set all the default values for typed variables before actually trying to initialize them, including `@onready` ones. This ensures that if validated calls are being used there will be a value of the correct type, even if the resolution is done out of order or deferred because of `@onready`.
* | | | | | Revert "GDScript: Fix groups and categories been seen as members"George Marques2023-02-252-14/+0
| |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 6f2a8434c675b3df2aceca4e5200aaf799eeb2bd. The commit introduces a bug where it creates spurious entries for member information.
* | | | | GDScript: Don't use validated call for vararg methodsGeorge Marques2023-02-241-1/+1
|/ / / / | | | | | | | | | | | | | | | | Since they may have runtime type validation, we cannot use the validated call.
* | | | Fixup GDScript test using non-deterministic idsRémi Verschelde2023-02-242-4/+6
| | | | | | | | | | | | | | | | Follow-up to #73870.
* | | | Merge pull request #73870 from vnen/gdscript-dont-reference-group-propertiesRémi Verschelde2023-02-242-0/+12
|\ \ \ \ | | | | | | | | | | | | | | | GDScript: Fix groups and categories been seen as members
| * | | | GDScript: Fix groups and categories been seen as membersGeorge Marques2023-02-242-0/+12
| | | | |
* | | | | GDScript: Fix range regressionDmitrii Maganov2023-02-242-0/+9
|/ / / /
* | | | Merge pull request #73798 from vonagam/fix-bad-continue-in-lambdaRémi Verschelde2023-02-234-0/+22
|\ \ \ \ | | | | | | | | | | | | | | | GDScript: Fix parsing unexpected break/continue in lambda
| * | | | GDScript: Fix parsing unexpected break/continue in lambdaDmitrii Maganov2023-02-234-0/+22
| | | | |
* | | | | GDScript: Fix usage of enum value as range argumentDmitrii Maganov2023-02-232-0/+11
|/ / / /
* | | | Merge pull request #73709 from vonagam/fix-error-message-unfound-typeRémi Verschelde2023-02-212-0/+5
|\ \ \ \ | | | | | | | | | | | | | | | GDScript: Fix error message for unfound type
| * | | | GDScript: Fix error message for unfound typeDmitrii Maganov2023-02-212-0/+5
| | | | |
* | | | | Merge pull request #73705 from anvilfolk/doublewoopsieRémi Verschelde2023-02-212-0/+25
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | Added check for null objects in gdscript typed assign.
| * | | | Added check for null objects in gdscript typed assign.ocean (they/them)2023-02-212-0/+25
| | | | |
* | | | | GDScript: Fix override signature check of script inheritanceGeorge Marques2023-02-212-0/+12
|/ / / / | | | | | | | | | | | | | | | | Avoid treating the super class as a meta type for signature check, since it is looking at the instance level for that.
* | / / Add test for const class referencesmashumafi2023-02-203-0/+19
| |/ / |/| |
* | | Merge pull request #73590 from vnen/gdscript-global-scope-enumsRémi Verschelde2023-02-2016-14/+53
|\ \ \ | | | | | | | | | | | | Make global scope enums accessible as types in GDScript
| * | | Make global scope enums accessible as types in GDScriptGeorge Marques2023-02-1916-14/+53
| | |/ | |/| | | | | | | | | | | | | Add functions to CoreConstant so enums can be properly deduced. Also add the enums in release builds to make consistent with ClassDB enums and avoid differences in script compilation between debug and release.
* | | Merge pull request #73544 from mashumafi/fix-func-arg-nullRémi Verschelde2023-02-202-0/+30
|\ \ \ | | | | | | | | | | | | Fix: Func with typed args error when arg is null
| * | | Fix: Func with typed args error when arg is nullmashumafi2023-02-192-0/+30
| | | |