Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | GDScript: Add check for `super()` methods not being implemented | ocean (they/them) | 2023-09-17 | 4 | -0/+31 | |
| | | ||||||
* | | Remove REDUNDANT_FOR_VARIABLE_TYPE | ryanabx | 2023-09-12 | 4 | -18/+0 | |
| | | | | | | | | Remove REDUNDANT_FOR_VARIABLE_TYPE | |||||
* | | 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 | 9 | -0/+79 | |
|\ | | | | | | | GDScript: Allow use local constants as types | |||||
| * | GDScript: Allow use local constants as types | Danil Alexeev | 2023-08-25 | 9 | -0/+79 | |
| | | ||||||
* | | GDScript: Fix lambda resolution with cyclic references | Danil Alexeev | 2023-08-25 | 6 | -0/+53 | |
|/ | ||||||
* | GDScript: Add static typing for `for` loop variable | Danil Alexeev | 2023-08-17 | 6 | -0/+24 | |
| | ||||||
* | Merge pull request #78552 from dalexeev/gds-check-get-node-in-static-func | Rémi Verschelde | 2023-08-17 | 2 | -0/+11 | |
|\ | | | | | | | GDScript: Check `get_node()` shorthand in static functions | |||||
| * | GDScript: Check `get_node()` shorthand in static functions | Danil Alexeev | 2023-08-09 | 2 | -0/+11 | |
| | | ||||||
* | | GDScript: Fix "Identifier not found" error when accessing inner class from ↵ | Danil Alexeev | 2023-08-11 | 2 | -0/+26 | |
|/ | | | | inside | |||||
* | GDScript: Fix bug with identifier shadowed below in current scope | Danil Alexeev | 2023-07-26 | 11 | -1/+80 | |
| | ||||||
* | Fix for not being able to ignore shadowing warnings on class scope | jpcerrone | 2023-07-24 | 4 | -9/+17 | |
| | ||||||
* | 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 | 8 | -34/+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. | |||||
* | Merge pull request #77129 from dalexeev/gds-fix-static-var-bugs-part-1 | Rémi Verschelde | 2023-06-19 | 2 | -0/+10 | |
|\ | | | | | | | GDScript: Fix some bugs with static variables and functions | |||||
| * | GDScript: Fix some bugs with static variables and functions | Danil Alexeev | 2023-06-16 | 2 | -0/+10 | |
| | | ||||||
* | | Merge pull request #74741 from vnen/variant-not-for-everyone | Rémi Verschelde | 2023-06-18 | 2 | -0/+576 | |
|\ \ | |/ |/| | | | Allow boolean operators for all Variant types | |||||
| * | GDScript: Allow boolean operators between any types | George Marques | 2023-03-10 | 2 | -0/+576 | |
| | | | | | | | | | | To make consistent with previous behavior. Mostly to be used in conditions for `if` and `while`. | |||||
* | | GDScript: add errors when calling unimplemented virtual functions | ocean (they/them) | 2023-06-15 | 6 | -0/+23 | |
| | | | | | | | | | | | | | | | | | | | | | | | | 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. | |||||
* | | Merge pull request #77351 from anvilfolk/super-discard | Rémi Verschelde | 2023-06-15 | 2 | -0/+11 | |
|\ \ | | | | | | | | | | GDScript: do not RETURN_VALUE_DISCARDED for `super()` inside `_init()` | |||||
| * | | GDScript: do not warn of return value discarded for super() inside _init() | ocean (they/them) | 2023-05-22 | 2 | -0/+11 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DO NOT BATCH MERGE WITH #77324, WILL RESULT IN BROKEN CI Currently, calling super() inside _init() throws a RETURN_VALUE_DISCARDED warning. The analyzer identifies super() as being a constructor, which therefore returns an object of the relevant class. However, super() isn't really a constructor by itself: in this case, it is _part_ of the constructor, and so doesn't "return" a value. A test case for this is already in #77324, which contains the warning. I am duplicating it here, without the warning, and it should conflict with the other PR. | |||||
* | | | Merge pull request #75419 from vonagam/fix-super-classes-in-array-literals | Rémi Verschelde | 2023-06-14 | 1 | -2/+2 | |
|\ \ \ | | | | | | | | | | | | | GDScript: Allow elements of a parent class in a typed array literal | |||||
| * | | | GDScript: Allow elements of a parent class in a typed array literal | Dmitrii Maganov | 2023-03-28 | 1 | -2/+2 | |
| | | | | ||||||
* | | | | GDScript: Fix calling static func from non-static is allowed | Danil Alexeev | 2023-05-17 | 2 | -0/+10 | |
| |/ / |/| | | ||||||
* | | | GDScript: Fix warning ignoring for member variables | Danil Alexeev | 2023-05-12 | 2 | -0/+19 | |
| | | | ||||||
* | | | Merge pull request #76412 from dalexeev/gds-reorganize-warnings | Rémi Verschelde | 2023-04-28 | 5 | -8/+8 | |
|\ \ \ | | | | | | | | | | | | | GDScript: Reorganize and unify warnings | |||||
| * | | | GDScript: Reorganize and unify warnings | Danil Alexeev | 2023-04-28 | 5 | -8/+8 | |
| | | | | ||||||
* | | | | Merge pull request #75014 from vonagam/assert-literal-false | Rémi Verschelde | 2023-04-28 | 2 | -0/+8 | |
|\ \ \ \ | |/ / / |/| | | | | | | | GDScript: Allow usage of literal false in assert without a warning | |||||
| * | | | GDScript: Allow usage of literal false in assert without a warning | Dmitrii Maganov | 2023-03-17 | 2 | -0/+8 | |
| | |/ | |/| | ||||||
* | | | 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 | |
| | | | ||||||
* | | | Fix mistakes in documentation and GDScript errors | VolTer | 2023-04-10 | 1 | -1/+1 | |
|/ / | ||||||
* | | Merge pull request #74949 from dalexeev/gds-fix-await-warning | Yuri Sizov | 2023-03-20 | 3 | -1/+91 | |
|\ \ | | | | | | | GDScript: Fix false positive `REDUNDANT_AWAIT` warning | |||||
| * | | GDScript: Fix false positive `REDUNDANT_AWAIT` warning | Danil Alexeev | 2023-03-16 | 3 | -1/+91 | |
| |/ | ||||||
* | | Merge pull request #74844 from vonagam/change-class-extends-parsing | Yuri Sizov | 2023-03-20 | 4 | -0/+17 | |
|\ \ | | | | | | | GDScript: Change parser representation of class extends | |||||
| * | | GDScript: Change parser representation of class extends | Dmitrii Maganov | 2023-03-13 | 4 | -0/+17 | |
| |/ | ||||||
* / | GDScript: Fix missing warning for shadowing of built-in types | Dmitrii Maganov | 2023-03-13 | 2 | -0/+38 | |
|/ | ||||||
* | Fix GDScript code style regarding colon | Danil Alexeev | 2023-03-05 | 15 | -37/+37 | |
| | ||||||
* | GDScript: Don't use validated call for vararg methods | George Marques | 2023-02-24 | 1 | -1/+1 | |
| | | | | | Since they may have runtime type validation, we cannot use the validated call. | |||||
* | GDScript: Fix range regression | Dmitrii Maganov | 2023-02-24 | 2 | -0/+9 | |
| | ||||||
* | GDScript: Fix usage of enum value as range argument | Dmitrii Maganov | 2023-02-23 | 2 | -0/+11 | |
| | ||||||
* | Merge pull request #73709 from vonagam/fix-error-message-unfound-type | Rémi Verschelde | 2023-02-21 | 2 | -0/+5 | |
|\ | | | | | | | GDScript: Fix error message for unfound type | |||||
| * | GDScript: Fix error message for unfound type | Dmitrii Maganov | 2023-02-21 | 2 | -0/+5 | |
| | | ||||||
* | | Merge pull request #73705 from anvilfolk/doublewoopsie | Rémi Verschelde | 2023-02-21 | 2 | -0/+25 | |
|\ \ | |/ |/| | | | Added check for null objects in gdscript typed assign. | |||||
| * | Added check for null objects in gdscript typed assign. | ocean (they/them) | 2023-02-21 | 2 | -0/+25 | |
| | | ||||||
* | | GDScript: Fix override signature check of script inheritance | George Marques | 2023-02-21 | 2 | -0/+12 | |
|/ | | | | | Avoid treating the super class as a meta type for signature check, since it is looking at the instance level for that. | |||||
* | Merge pull request #73590 from vnen/gdscript-global-scope-enums | Rémi Verschelde | 2023-02-20 | 16 | -14/+53 | |
|\ | | | | | | | Make global scope enums accessible as types in GDScript | |||||
| * | Make global scope enums accessible as types in GDScript | George Marques | 2023-02-19 | 16 | -14/+53 | |
| | | | | | | | | | | | | 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. |