Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-05-03 | Add regression test for gdscript valid function signature | CalebJohn | |
Previously, there was an issue where the gdscript analyzer incorrectly riased a validation error for code that had a default Dictionary, Array, or custom type. | |||
2022-04-19 | Fixes GDScript define nested dictionary and array as constants #50285 | PastMoments | |
2022-03-06 | GDScript: Check if method signature matches the parent | George Marques | |
To guarantee polymorphism, a method signature must be compatible with the parent. This checks if: 1. Return type is the same. 2. The subclass method takes at least the same amount of parameters. 3. The matching parameters have the same type. 4. If the subclass takes more parameters, all of the extra ones have a default value. 5. If the superclass has default values, so must have the subclass. There's a few test cases to ensure this holds up. | |||
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-13 | GDScript: Fix parsing default parameter values from function calls | strank | |
2022-01-04 | GDScript: Add annotation to ignore warnings | George Marques | |
2021-10-15 | GDScript: Fix inferred typed array marked as constant | George Marques | |
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-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-06 | GDScript: Make all warnings enabled in test generation | George Marques | |
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. | |||
2021-09-29 | GDScript: Don't allow builtin type names as identifiers | George Marques | |
2021-09-21 | Merge pull request #52718 from Calinou/gdscript-add-integration-tests-2 | Rémi Verschelde | |
2021-09-17 | GDScript: Avoid inferred types from giving hard errors | George Marques | |
2021-09-15 | Add more integration tests to the GDScript test suite | Hugo Locurcio | |
This also fixes a typo in the `bitwise_float_right_operand.gd` test. | |||
2021-09-15 | GDScript: Allow string keys on Lua-style dictionaries | George Marques | |
Which is useful when the key isn't a valid identifier, such as keys with spaces or numeric keys. | |||
2021-09-14 | Add dozens of new integration tests to the GDScript test suite | Hugo Locurcio | |
This also ignores `.out` files in the file format static checks. | |||
2021-09-13 | Fix GDScript test cases | George Marques | |
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-08-26 | Correct null and boolean values being capitalised by the str command | Balloonpopper | |
2021-08-24 | GDScript: Allow access to outer constant and enum values | George Marques | |
2021-08-18 | GDScript: Fix calling builtin static functions | George Marques | |
2021-08-18 | GDScript: Fix inner classes and preloaded scripts as types | George Marques | |
2021-05-26 | GDScript: Fix function signature check for self calls | George Marques | |