summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge pull request #71349 from vonagam/disallow-infer-on-weakRémi Verschelde2023-01-258-6/+19
|\ \ | | | | | | | | | GDScript: Disallow type inference with untyped initializer
| * | GDScript: Disallow type inference with untyped initializerDmitrii Maganov2023-01-138-6/+19
| | |
* | | Clarify error message about script-level annotationDanil Alexeev2023-01-241-1/+1
| | |
* | | Merge pull request #71914 from vnen/gdscript-no-continue-matchRémi Verschelde2023-01-234-8/+3
|\ \ \ | | | | | | | | | | | | GDScript: Remove function of `continue` for match statement
| * | | GDScript: Remove function of `continue` for match statementGeorge Marques2023-01-224-8/+3
| | | | | | | | | | | | | | | | | | | | | | | | The keyword is confusing and rarely is used in the intended way. It is removed now in favor of a future feature (pattern guards) to avoid breaking compatibility later.
* | | | Add support for Unicode identifiers in GDScriptGeorge Marques2023-01-217-1/+66
|/ / / | | | | | | | | | | | | | | | This is using an adapted version of UAX#31 to not rely on the ICU database (which isn't available in builds without TextServerAdvanced). It allows most characters used in diverse scripts but not everything.
* | | Fix unnammed enum crash regressionocean (they/them)2023-01-182-0/+8
| | |
* | | Merge pull request #71279 from vonagam/fix-iterator-number-typeRémi Verschelde2023-01-1622-0/+159
|\ \ \ | | | | | | | | GDScript: Fix typing of iterator in for loop
| * | | GDScript: Fix typing of iterator in for loopDmitrii Maganov2023-01-1322-0/+159
| |/ /
* | | Merge pull request #67774 from aaronfranke/script-annotationsRémi Verschelde2023-01-163-4/+4
|\ \ \ | | | | | | | | Make script annotations be placed before `class_name` and `extends`
| * | | Make script annotations placed before class_name and extendsAaron Franke2022-12-193-4/+4
| | | |
* | | | Update all outdated online documentation linksYuri Sizov2023-01-141-1/+1
| |/ / |/| |
* | | Merge pull request #70733 from vonagam/fix-assigning-untypedRémi Verschelde2023-01-124-0/+29
|\ \ \ | | | | | | | | | | | | GDScript: Fix some issues with assignments that involve untyped things
| * | | GDScript: Fix some issues with assignments that involve untyped thingsDmitrii Maganov2023-01-124-0/+29
| | | |
* | | | Merge pull request #71197 from adamscott/add-default-virtual-path-gdscriptRémi Verschelde2023-01-122-0/+23
|\ \ \ \ | | | | | | | | | | | | | | | Add default virtual `gdscript://` path to `GDScript` instances
| * | | | Add default virtual `gdscript://` path to `GDScript` instancesAdam Scott2023-01-122-0/+23
| | |_|/ | |/| |
* | | | Merge pull request #70700 from vonagam/fix-abstract-extendsRémi Verschelde2023-01-126-0/+29
|\ \ \ \ | |/ / / |/| | | | | | | GDScript: Fix extending abstract classes, forbid their construction
| * | | GDScript: Fix extending abstract classes, forbid their constructionDmitrii Maganov2023-01-126-0/+29
| |/ /
* | | Merge pull request #70899 from adamscott/fix-vector-infRémi Verschelde2023-01-122-0/+9
|\ \ \ | |/ / |/| | Fix parse error using Vector{2,3,4}.INF
| * | Fix parse error using Vector{2,3,4}.INFAdam Scott2023-01-082-0/+9
| | |
* | | GDScript: Fix getting type from PropertyInfo for Variant argumentsDmitrii Maganov2023-01-124-9/+8
| | |
* | | Merge pull request #70987 from vonagam/fix-parameter-conversion-assignGeorge Marques2023-01-124-0/+43
|\ \ \
| * | | GDScript: Fix missing conversion for default argument valuesDmitrii Maganov2023-01-064-0/+43
| | | |
* | | | Merge pull request #70713 from vonagam/fix-unnamed-enum-outer-conflictsGeorge Marques2023-01-122-0/+22
|\ \ \ \
| * | | | GDScript: Fix false name conflicts for unnamed enumsDmitrii Maganov2022-12-292-0/+22
| | | | |
* | | | | GDScript: Fix temp values being written without proper clearGeorge Marques2023-01-112-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Temporary values in the stack were not being properly cleared when the return value of calls were discarded, which can cause memory issues especially for reference types like PackedByteArray.
* | | | | Merge pull request #70595 from adamscott/add-gdscript-editorconfigRémi Verschelde2023-01-1124-226/+226
|\ \ \ \ \ | | | | | | | | | | | | Add GDScript `.editorconfig` rules
| * | | | | Add GDScript `.editorconfig` rulesAdam Scott2023-01-1024-226/+226
| | | | | | | | | | | | | | | | | | | | | | | | - Uniformize `.gd` unit test files indentation to tabs (where needed)
* | | | | | GDScript: Fix use of conversion assign for variant valuesGeorge Marques2023-01-102-0/+12
|/ / / / /
* | | | | Merge pull request #71140 from vonagam/fix-const-index-subscript-typeRémi Verschelde2023-01-102-0/+7
|\ \ \ \ \ | | | | | | | | | | | | GDScript: Fix type for index subscript on constant
| * | | | | GDScript: Fix type for index subscript on constantDmitrii Maganov2023-01-102-0/+7
| | | | | |
* | | | | | Fix GDScript base and outer classes, signals and functions lookup orderAdam Scott2023-01-0913-0/+180
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add outer class lookup test - Add signal lookup test Co-authored-by: Dmitrii Maganov <vonagam@gmail.com>
* | | | | Merge pull request #71051 from vonagam/consts-are-deep-startRémi Verschelde2023-01-0912-0/+60
|\ \ \ \ \ | | | | | | | | | | | | GDScript: Begin making constants deep, not shallow or flat
| * | | | | GDScript: Begin making constants deep, not shallow or flatDmitrii Maganov2023-01-0812-0/+60
| | |_|/ / | |/| | |
* | | | | Merge pull request #69590 from anvilfolk/enumsRémi Verschelde2023-01-0955-7/+530
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | GDScript enum fixes & refactor
| * | | | | Assorted enum and native type fixesocean (they/them)2023-01-0955-7/+530
| |/ / / /
* | | | | Merge pull request #71107 from vnen/gdscript-fix-nil-address-assignRémi Verschelde2023-01-094-0/+56
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | GDScript: Don't use the NIL address to hold return value of functions
| * | | | | GDScript: Allow using await on calls to void functionsGeorge Marques2023-01-092-0/+9
| | | | | |
| * | | | | GDScript: Don't use the NIL address to hold return value of functionsGeorge Marques2023-01-092-0/+47
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | This prevents that the NIL address is filled with another value, which causes problems for some instructions that read from NIL.
* | | | | Merge pull request #70655 from vonagam/fix-assert-multilineRémi Verschelde2023-01-092-0/+26
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | GDScript: Fix multiline and trailing comma for assert
| * | | | GDScript: Fix multiline and trailing comma for assertDmitrii Maganov2023-01-082-0/+26
| | | | |
* | | | | GDScript: Fix typing of lambda functionsDmitrii Maganov2023-01-0610-0/+49
| |/ / / |/| | |
* | | | GDScript: Fix array as default value for parameterDmitrii Maganov2023-01-062-0/+25
| | | |
* | | | Unify typing of variables, constants and parameters in GDScriptDmitrii Maganov2023-01-0610-4/+57
| | | |
* | | | One Copyright Update to rule them allRémi Verschelde2023-01-055-145/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* | | | Merge pull request #70859 from vonagam/fix-preload-native-typeRémi Verschelde2023-01-033-0/+19
|\ \ \ \ | | | | | | | | | | | | | | | GDScript: Fix wrong native type for preloaded class
| * | | | GDScript: Fix wrong native type for preloaded classDmitrii Maganov2023-01-033-0/+19
| | | | |
* | | | | Merge pull request #70702 from vnen/gdscript-error-on-assign-voidRémi Verschelde2023-01-0319-15/+59
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | GDScript: Error when assigning return value of void function
| * | | | | GDScript: Make using return of void function an errorGeorge Marques2022-12-3012-11/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the `VOID_ASSIGNMENT` warning since those cases will be errors now.
| * | | | | GDScript: Error when assigning return value of void functionGeorge Marques2022-12-307-4/+34
| | |/ / / | |/| | | | | | | | | | | | | | | | | | This also makes built-in method calls empty the return value when the method is void, to avoid keeping returning a garbage value in such case.