summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | Fix shadowed global identifier warning duplicationYuri Roubinsky2021-12-131-4/+4
| |
* | Replace String comparisons with "", String() to is_empty()Nathan Franke2021-12-091-1/+1
| | | | | | | | | | | | Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
* | Allow using built-in names for variables, push warnings insteadYuri Roubinsky2021-11-132-0/+11
|/
* Improve GDScript indentation error messageMax Hilbrunner2021-10-281-1/+1
|
* Refactored Node3D rotation modesreduz2021-10-251-1/+1
| | | | | | | | | * Made the Basis euler orders indexed via enum. * Node3D has a new rotation_order property to choose Euler rotation order. * Node3D has also a rotation_mode property to choose between Euler, Quaternion and Basis Exposing these modes as well as the order makes Godot a lot friendlier for animators, which can choose the best way to interpolate rotations. The new *Basis* mode makes the (exposed) transform property obsolete, so it was removed (can still be accessed by code of course).
* Merge pull request #52940 from groud/toast_notificationRémi Verschelde2021-10-192-2/+2
|\
| * Implement toast notifications in the editorGilles Roudière2021-10-142-2/+2
| |
* | Merge pull request #53843 from vnen/gdscript-typed-array-subscript-constantRémi Verschelde2021-10-152-0/+8
|\ \ | | | | | | Fix inferred typed array marked as constant
| * | GDScript: Fix inferred typed array marked as constantGeorge Marques2021-10-152-0/+8
| | |
* | | GDScript: Properly return value with await on non-coroutineGeorge Marques2021-10-142-0/+14
|/ / | | | | | | | | If the keyword `await` is used without a coroutine, it should still return the value synchronally.
* | Merge pull request #53807 from vnen/dont-share-arrays-and-dictsRémi Verschelde2021-10-144-0/+60
|\ \
| * | Zero Dictionary and Array variants when changing type with resetGeorge Marques2021-10-144-0/+60
| |/ | | | | | | | | So they don't reference to the old values anymore and instead refer to a new value.
* | Merge pull request #53726 from briansemrau/gd-outer-classGeorge Marques2021-10-142-0/+23
|\ \ | |/ |/| GDScript 2.0: Access outer scope classes
| * GDScript: Access outer scope classesBrian Semrau2021-10-132-0/+23
| |
* | Merge pull request #53720 from vnen/gdscript-typed-array-custom-classRémi Verschelde2021-10-122-0/+12
|\ \ | |/ |/|
| * GDScript: Fix typed array with custom classesGeorge Marques2021-10-122-0/+12
| |
* | GDScript: Make setter parameter type same as variable typeGeorge Marques2021-10-122-0/+10
|/
* Merge pull request #53103 from ZuBsPaCe/gdscript-analyze-properties-fixGeorge Marques2021-10-1112-0/+123
|\ | | | | GDScript: Report property type errors
| * GDScript: Report property type errorsZuBsPaCe2021-10-0812-0/+123
| | | | | | | | | | | | | | | | | | Inline getters & setters are now FunctionNodes. Their names are set in the parser, not in the compiler. GDScript-Analyzer will now run through getter and setter. Also report wrong type or signature errors regarding getset properties. Added GDScript tests for getters and setters. #53102
* | Enhance and cleanup stringify for Vectormashumafi2021-10-092-0/+76
|/
* Merge pull request #53422 from KoBeWi/add_LUA_to_GodotRémi Verschelde2021-10-072-0/+6
|\
| * Fix LUA-style assignment in Dictionarykobewi2021-10-052-0/+6
| |
* | Merge pull request #53479 from vnen/gdscript-subscript-object-selfRémi Verschelde2021-10-062-0/+11
|\ \
| * | GDScript: Allow subscript on self and object typesGeorge Marques2021-10-062-0/+11
| |/
* | GDScript: Avoid hard errors on inferred typesGeorge Marques2021-10-064-0/+29
| | | | | | | | | | | | | | | | | | Since inference isn't always correct, they are now treated as unsafe instead of errors. This also removes inferred type when a variable is reassigned. Since it's not aware of branching, the types might become invalid in a later context.
* | GDScript: Make all warnings enabled in test generationGeorge Marques2021-10-062-7/+10
|/ | | | | | The test generation doesn't initialize the language (since it's already initialized in main), but it still needs the warning enabled so it matches the actual tests.
* GDScript: Fix member assignment with operationGeorge Marques2021-10-042-0/+18
| | | | | It was wrongly updating the assigned value with the result of the operation.
* Use range iterators for `Map`Lightning_A2021-09-301-2/+2
|
* Merge pull request #53216 from vnen/gdscript-builtin-type-not-idRémi Verschelde2021-09-298-0/+25
|\
| * GDScript: Don't allow builtin type names as identifiersGeorge Marques2021-09-298-0/+25
| |
* | GDScript: Fix assignment with operation for propertiesGeorge Marques2021-09-292-0/+19
|/
* Merge pull request #52906 from vnen/gdscript-show-error-on-yieldRémi Verschelde2021-09-212-0/+8
|\
| * GDScript: Show specific error when "yield" is usedGeorge Marques2021-09-212-0/+8
| | | | | | | | | | To help people porting code, it gives a hint to use "await" instead of a generic error.
* | Merge pull request #52905 from vnen/gdscript-single-line-declarationRémi Verschelde2021-09-214-0/+46
|\ \
| * | GDScript: Allow classes declaration to be done in single lineGeorge Marques2021-09-214-0/+46
| |/ | | | | | | | | Incidentally, allow multiple statements in single line functions when using semicolon as a terminator.
* / GDScript: Allow multiple lines in signal parameters declarationGeorge Marques2021-09-212-0/+22
|/
* Merge pull request #52718 from Calinou/gdscript-add-integration-tests-2Rémi Verschelde2021-09-2130-2/+245
|\
| * Add more integration tests to the GDScript test suiteHugo Locurcio2021-09-1530-2/+245
| | | | | | | | This also fixes a typo in the `bitwise_float_right_operand.gd` test.
* | Merge pull request #52792 from vnen/gdscript-subscript-missing-indexRémi Verschelde2021-09-172-0/+5
|\ \
| * | GDScript: Properly catch error when missing index in subscriptGeorge Marques2021-09-172-0/+5
| | |
* | | Merge pull request #52788 from vnen/gdscript-compare-with-nullRémi Verschelde2021-09-178-0/+692
|\ \ \ | |/ / |/| |
| * | Allow comparing equality between builtin types and nullGeorge Marques2021-09-178-0/+692
| |/
* / GDScript: Avoid inferred types from giving hard errorsGeorge Marques2021-09-172-0/+11
|/
* Merge pull request #52706 from vnen/gdscript-ternary-operator-crashRémi Verschelde2021-09-152-0/+6
|\ | | | | GDScript: Show error when missing expression after ternary else
| * GDScript: Show error when missing expression after ternary elseGeorge Marques2021-09-152-0/+6
| |
* | GDScript: Show error on unary operators without argumentGeorge Marques2021-09-1510-0/+22
|/
* GDScript: Allow string keys on Lua-style dictionariesGeorge Marques2021-09-158-0/+35
| | | | | Which is useful when the key isn't a valid identifier, such as keys with spaces or numeric keys.
* Add dozens of new integration tests to the GDScript test suiteHugo Locurcio2021-09-14189-17/+1785
| | | | This also ignores `.out` files in the file format static checks.
* Fix an undefined behaviourThreeRhinosInAnElephantCostume2021-09-131-0/+3
|
* Fix GDScript test casesGeorge Marques2021-09-133-9/+9
|