Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Core: Fix built-in enum constant bindings | Danil Alexeev | 2024-11-22 | 6 | -0/+12 |
| | |||||
* | Implement typed dictionaries | Thaddeus Crews | 2024-09-04 | 10 | -0/+30 |
| | |||||
* | GDScript: Fix common mismatched external parser errors | rune-scape | 2024-07-31 | 1 | -1/+1 |
| | |||||
* | GDScript: Fix access non-static members in static context | Danil Alexeev | 2024-05-01 | 14 | -4/+79 |
| | |||||
* | Merge pull request #84043 from dalexeev/gds-fix-unsafe-cast-warning | Rémi Verschelde | 2024-04-09 | 6 | -0/+15 |
|\ | | | | | | | GDScript: Fix `UNSAFE_CAST` warning | ||||
| * | GDScript: Fix `UNSAFE_CAST` warning | Danil Alexeev | 2023-10-27 | 6 | -0/+15 |
| | | |||||
* | | Merge pull request #82639 from golfinq/gdscript-improve-indexing-error | Rémi Verschelde | 2024-01-04 | 4 | -4/+4 |
|\ \ | |/ |/| | | | GDScript: Improve error messages for invalid indexing | ||||
| * | GDScript: Improve error messages for invalid indexing | Rémi Verschelde | 2023-10-02 | 4 | -4/+4 |
| | | | | | | | | | | | | | | | | | | These errors are very common when using an invalid property name or calling on an object of the wrong type, and the previous message was a bit cryptic for users. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com> Co-authored-by: golfinq <golfinqz@gmail.com> | ||||
* | | GDScript: Fix non-static call is allowed in static var lambda body | Danil Alexeev | 2023-10-20 | 9 | -1/+67 |
| | | |||||
* | | GDScript: Fix incorrect error message for utility functions | Danil Alexeev | 2023-10-16 | 4 | -0/+8 |
| | | |||||
* | | GDScript: Add error when exporting node in non [Node]-derived classes | Danil Alexeev | 2023-10-05 | 6 | -0/+31 |
|/ | |||||
* | Merge pull request #82477 from dalexeev/gds-covariance-and-contravariance | Yuri Sizov | 2023-09-28 | 14 | -0/+84 |
|\ | | | | | | | GDScript: Add return type covariance and parameter type contravariance | ||||
| * | GDScript: Add return type covariance and parameter type contravariance | Danil Alexeev | 2023-09-28 | 14 | -0/+84 |
| | | |||||
* | | Merge pull request #82030 from dalexeev/gds-make-for-loop-array-literal-typed | Yuri Sizov | 2023-09-28 | 2 | -0/+7 |
|\ \ | | | | | | | | | | GDScript: Make array literal typed if `for` loop variable type is specified | ||||
| * | | GDScript: Make array literal typed if `for` loop variable type is specified | Danil Alexeev | 2023-09-21 | 2 | -0/+7 |
| | | | |||||
* | | | Merge pull request #80085 from vnen/gdscript-pattern-guards | Yuri Sizov | 2023-09-28 | 2 | -0/+6 |
|\ \ \ | |_|/ |/| | | | | | GDScript: Implement pattern guards for match statement | ||||
| * | | GDScript: Implement pattern guards for match statement | George Marques | 2023-09-27 | 2 | -0/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Within a match statement, it is now possible to add guards in each branch: var a = 0 match a: 0 when false: print("does not run") 0 when true: print("but this does") This allows more complex logic for deciding which branch to take. | ||||
* | | | Merge pull request #75988 from dalexeev/gds-unsafe-call-argument | Yuri Sizov | 2023-09-27 | 4 | -0/+15 |
|\ \ \ | |/ / |/| | | | | | GDScript: Improve call analysis | ||||
| * | | GDScript: Improve call analysis | Danil Alexeev | 2023-09-21 | 4 | -0/+15 |
| |/ | | | | | | | | | | | * Add missing `UNSAFE_CALL_ARGUMENT` warning. * Fix `Object` constructor. * Display an error for non-existent static methods. | ||||
* / | GDScript: Prevent constructing and inheriting engine singletons | Danil Alexeev | 2023-09-22 | 4 | -0/+12 |
|/ | |||||
* | GDScript: Add check for `super()` methods not being implemented | ocean (they/them) | 2023-09-17 | 2 | -0/+7 |
| | |||||
* | Fix various typos with codespell | Rémi Verschelde | 2023-09-12 | 1 | -2/+2 |
| | | | | Using 2.2.6.dev180+ge3a2cfbd. | ||||
* | Merge pull request #80964 from dalexeev/gds-allow-use-local-consts-as-types | Yuri Sizov | 2023-08-25 | 6 | -0/+21 |
|\ | | | | | | | GDScript: Allow use local constants as types | ||||
| * | GDScript: Allow use local constants as types | Danil Alexeev | 2023-08-25 | 6 | -0/+21 |
| | | |||||
* | | GDScript: Fix lambda resolution with cyclic references | Danil Alexeev | 2023-08-25 | 4 | -0/+14 |
|/ | |||||
* | GDScript: Add static typing for `for` loop variable | Danil Alexeev | 2023-08-17 | 2 | -0/+6 |
| | |||||
* | GDScript: Check `get_node()` shorthand in static functions | Danil Alexeev | 2023-08-09 | 2 | -0/+11 |
| | |||||
* | GDScript: Fix bug with identifier shadowed below in current scope | Danil Alexeev | 2023-07-26 | 2 | -0/+6 |
| | |||||
* | Change GDScript tests to use InstancePlaceholder as the example abstract | Aaron Franke | 2023-07-15 | 4 | -4/+4 |
| | |||||
* | GDScript: fix regression when checking for virtual function implementation. | ocean (they/them) | 2023-06-21 | 4 | -11/+0 |
| | | | | | | | | | | | | Unfortunately it appears the virtual function checks in #77324 are not trustworthy at runtime, because objects can have scripts attached, but this information is not always available at compile-time. These checks need to be removed. The rest of the PR is still useful, making all method flags available to the analyzer, so a full revert isn't necessary/desirable. This reopens #76938, which will need another solution. | ||||
* | GDScript: Fix some bugs with static variables and functions | Danil Alexeev | 2023-06-16 | 2 | -0/+10 |
| | |||||
* | GDScript: add errors when calling unimplemented virtual functions | ocean (they/them) | 2023-06-15 | 4 | -0/+11 |
| | | | | | | | | | | | | This PR does a small refactor of how method flags are handled in the GDScript analyzer. This way, it adds support for the analyzer to use any of MethodInfo's flags, where previously it could only use METHOD_FLAG_STATIC and METHOD_FLAG_VARARG. As a side-effect, this also normalizes behavior between editor and release templates, which fixes #76938. The tests added also brought a different issue to light, where using `super()` appears to generate a return variable discarded on calling super's _init(), which doesn't have a return value. This should be tackled in a different PR, which will have to change the output of this PR's tests. | ||||
* | GDScript: Fix calling static func from non-static is allowed | Danil Alexeev | 2023-05-17 | 2 | -0/+10 |
| | |||||
* | Add support for static variables in GDScript | George Marques | 2023-04-27 | 4 | -0/+18 |
| | | | | | | | | | | 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 #75605 from anvilfolk/type-base | Rémi Verschelde | 2023-04-24 | 2 | -0/+8 |
|\ | | | | | | | Make GDScript type not found errors more informative. | ||||
| * | Make type not found errors more informative. | ocean (they/them) | 2023-04-02 | 2 | -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 missing member type check when resolving `extends` | Danil Alexeev | 2023-04-10 | 6 | -0/+36 |
|/ | |||||
* | GDScript: Change parser representation of class extends | Dmitrii Maganov | 2023-03-13 | 4 | -0/+17 |
| | |||||
* | Fix GDScript code style regarding colon | Danil Alexeev | 2023-03-05 | 8 | -13/+13 |
| | |||||
* | GDScript: Fix error message for unfound type | Dmitrii Maganov | 2023-02-21 | 2 | -0/+5 |
| | |||||
* | Make global scope enums accessible as types in GDScript | George Marques | 2023-02-19 | 12 | -12/+12 |
| | | | | | | 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. | ||||
* | Fix crash by freed object assign to typed variable | ocean (they/them) | 2023-02-16 | 4 | -0/+29 |
| | |||||
* | Revert "Remove script class checks when getting function signature" | Rémi Verschelde | 2023-02-07 | 3 | -8/+0 |
| | | | | | | This reverts commit 0fef203b1f39c3373f9f25b8e75e75f6b03f7c88. This introduced some other issues, as discussed in #72144. | ||||
* | Remove script class checks when getting function signature | Adam Scott | 2023-02-07 | 3 | -0/+8 |
| | |||||
* | Merge pull request #72677 from dalexeev/gds-await-infer-type | Yuri Sizov | 2023-02-06 | 2 | -0/+6 |
|\ | | | | | GDScript: Fix `await` type inference | ||||
| * | GDScript: Fix `await` type inference | Danil Alexeev | 2023-02-06 | 2 | -0/+6 |
| | | |||||
* | | GDScript: Fix inheritance check of @onready for inner classes | George Marques | 2023-02-06 | 2 | -0/+9 |
|/ | |||||
* | Merge pull request #72512 from vonagam/fix-ternary-type-source | Yuri Sizov | 2023-02-06 | 2 | -0/+8 |
|\ | | | | | GDScript: Fix type certainty for result of ternary operator | ||||
| * | GDScript: Fix type certainty for result of ternary operator | Dmitrii Maganov | 2023-02-01 | 2 | -0/+8 |
| | | |||||
* | | GDScript: Don't allow @onready without inheriting Node | George Marques | 2023-02-06 | 4 | -0/+15 |
| | |