Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-02-08 | Refactor some object type checking code with `cast_to` | Rémi Verschelde | |
Less stringly typed logic, and less String allocations and comparisons. | |||
2022-02-04 | Merge pull request #57591 from vnen/gdscript-enum-fixes | Rémi Verschelde | |
2022-02-03 | GDScript: Treat enum values as int and enum types as dictionary | George Marques | |
Since enums resolve to a dictionary at runtime, calling dictionary methods on an enum type is a valid use case. This ensures this is true by adding test cases. This also makes enum values be treated as ints when used in operations. | |||
2022-02-03 | GDScript: Consolidate behavior for assigning enum types | George Marques | |
This makes sure that assigning values to enum-typed variables are consistent. Same enum is always valid, different enum is always invalid (without casting) and assigning `int` creates a warning if there is no casting. There are new test cases to ensure this behavior doesn't break in the future. | |||
2022-01-26 | Fix crash with non-constant keys in match statement Dictionary pattern | cdemirer | |
2022-01-17 | Merge pull request #55995 from Xwdit/enum_fix | Rémi Verschelde | |
Fix enum int comparison | |||
2022-01-10 | Merge pull request #56194 from cdemirer/fix-operation-result-type-inference | Rémi Verschelde | |
2022-01-10 | Merge pull request #56232 from V-Sekai/invalid_explicit_variant_assign_fix | Rémi Verschelde | |
2022-01-10 | Merge pull request #56260 from ↵ | Rémi Verschelde | |
cdemirer/fix-type-mutation-upon-assignment-with-operation | |||
2022-01-05 | Merge pull request #56483 from vnen/gdscript-warning-annotation | Rémi Verschelde | |
Add annotation to ignore warnings | |||
2022-01-04 | GDScript: Add annotation to ignore warnings | George Marques | |
2022-01-03 | Update copyright statements to 2022 | Rémi Verschelde | |
Happy new year to the wonderful Godot community! | |||
2021-12-27 | Fix type mutation upon compound assignment | cdemirer | |
2021-12-25 | Fix 'Compiler bug: unresolved assign' on explicitly annotated variants. | SaracenOne | |
2021-12-23 | Fix operation result type inference | cdemirer | |
2021-12-16 | Fix enum int comparison | Xwdit | |
Fix enum int comparison | |||
2021-12-14 | Avoid a crash in the gdscript analyser | Gilles Roudière | |
2021-12-13 | Fix shadowed global identifier warning duplication | Yuri Roubinsky | |
2021-11-23 | Improve various texts | kobewi | |
2021-10-18 | Fix incorrect debug check for setters | Benjamin Navarro | |
the check read the return type of the setter, which doesn't exist and lead to a segmentation fault. Now we check the first function parameter. Probably a bad copy/paste of the getter case | |||
2021-10-15 | Merge pull request #53843 from vnen/gdscript-typed-array-subscript-constant | Rémi Verschelde | |
Fix inferred typed array marked as constant | |||
2021-10-15 | GDScript: Fix inferred typed array marked as constant | George Marques | |
2021-10-14 | GDScript: Fix typing for await expression | George Marques | |
Don't grab the type of the awaited value unless it's constant (which makes it synchronous) or call (which always use the proper return type). | |||
2021-10-14 | GDScript: Remove error when coroutine is called without await | George Marques | |
In the case the call happens as a statement, since the return value isn't used in this case. | |||
2021-10-14 | Merge pull request #53726 from briansemrau/gd-outer-class | George Marques | |
GDScript 2.0: Access outer scope classes | |||
2021-10-13 | GDScript: Access outer scope classes | Brian Semrau | |
2021-10-12 | Merge pull request #53720 from vnen/gdscript-typed-array-custom-class | Rémi Verschelde | |
2021-10-12 | GDScript: Fix typed array with custom classes | George Marques | |
2021-10-12 | GDScript: Make setter parameter type same as variable type | George Marques | |
2021-10-08 | GDScript: Report property type errors | ZuBsPaCe | |
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 | |||
2021-10-07 | GDScript: Use getter return type for the property type | George Marques | |
The PropertyInfo hints are more relevant for the inspector. The getter return type is more reliable and less likely to be incorrect and it is what's going to be called in the end. | |||
2021-10-06 | Merge pull request #53479 from vnen/gdscript-subscript-object-self | Rémi Verschelde | |
2021-10-06 | GDScript: Allow subscript on self and object types | George Marques | |
2021-10-06 | GDScript: Avoid hard errors on inferred types | George Marques | |
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. | |||
2021-10-04 | GDScript: Use path cache when checking preloaded scripts | George Marques | |
The path itself might not always be set in some cases, especially when the script is just created and is already in the resource cache. Using get_path() in this case gets the correct resource path. This also adds a null check for safety in case the path is incorrect or missing, to avoid a crash in the engine. | |||
2021-10-04 | Merge pull request #53338 from briansemrau/gdscript-handle-for-with-null-list | Rémi Verschelde | |
2021-10-03 | Allow void as return type for constructors | kobewi | |
2021-10-02 | GDScript Check for null list in `for` loop | Brian Semrau | |
2021-09-30 | Use range iterators for `Map` | Lightning_A | |
2021-09-30 | Revert "GdScript: Use reduced constant expression result when doing binary ↵ | Rémi Verschelde | |
operations. Fixes #50293" This reverts commit 62077086076fb99fb7fe014522c44ae83f87dc4d. It broke a GDScript test (which didn't exist back when the PR was made, so was missed prior to the merge). It choked on: ``` prints("a", test_instance.a, test_instance.a == Named.VALUE_A) ``` With: ``` Invalid operands "VALUE_A (enum value)" and "int" for "==" operator. ``` | |||
2021-09-30 | Merge pull request #51818 from MarianoGnu/gdscript2-enum-fixes | Rémi Verschelde | |
2021-09-29 | GDScript: Don't allow builtin type names as identifiers | George Marques | |
2021-09-21 | GDScript: Remove conversion assign mistakenly done when unneeded | George Marques | |
2021-09-17 | Merge pull request #51671 from RandomShaper/fix_gdscript_crash | George Marques | |
Fix some GDScript bugs | |||
2021-09-17 | GDScript: Avoid inferred types from giving hard errors | George Marques | |
2021-09-15 | Merge pull request #50456 from Blackiris/fix-extends-parent-relative | George Marques | |
Fix extends with relative path to parent script | |||
2021-09-15 | Merge pull request #52582 from ↵ | Rémi Verschelde | |
jmb462/Prevent-non-explicit-inferring-parameter-from-null | |||
2021-09-13 | Merge pull request #52632 from vnen/autoload-global-script-class-conflict | Rémi Verschelde | |
Disallow class names to be the same as global names | |||
2021-09-13 | Merge pull request #52100 from vnen/gdscript-access-outer-constants | Rémi Verschelde | |
GDScript: Allow access to outer constant and enum values | |||
2021-09-13 | Disallow class names to be the same as global names | George Marques | |
Also forbid autoloads to have the same name as global script class. |