summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | Add "untyped_declaration" warningryanabx2023-09-111-0/+4
| |/ / /
* / / / Language Server: Improve hovered symbol resolution, fix renaming bugs, ↵BooksBaum2023-09-119-0/+1009
|/ / / | | | | | | | | | | | | | | | | | | implement reference lookup Co-Authored-By: Ryan Brue <56272643+ryanabx@users.noreply.github.com> Co-Authored-By: BooksBaum <15612932+booksbaum@users.noreply.github.com>
* / / GDScript: Fix `get_*_list()` methods return incorrect infoDanil Alexeev2023-09-043-4/+175
|/ /
* | Merge pull request #80964 from dalexeev/gds-allow-use-local-consts-as-typesYuri Sizov2023-08-259-0/+79
|\ \ | | | | | | | | | GDScript: Allow use local constants as types
| * | GDScript: Allow use local constants as typesDanil Alexeev2023-08-259-0/+79
| | |
* | | GDScript: Fix lambda resolution with cyclic referencesDanil Alexeev2023-08-256-0/+53
|/ /
* | GDScript: Add static typing for `for` loop variableDanil Alexeev2023-08-1710-0/+93
| |
* | Merge pull request #80365 from dalexeev/gds-allow-mix-indent-on-blank-linesRémi Verschelde2023-08-173-0/+26
|\ \ | | | | | | | | | GDScript: Allow mixed indentation on blank lines
| * | GDScript: Allow mixed indentation on blank linesDanil Alexeev2023-08-173-0/+26
| | |
* | | Merge pull request #78552 from dalexeev/gds-check-get-node-in-static-funcRémi Verschelde2023-08-172-0/+11
|\ \ \ | | | | | | | | | | | | GDScript: Check `get_node()` shorthand in static functions
| * | | GDScript: Check `get_node()` shorthand in static functionsDanil Alexeev2023-08-092-0/+11
| |/ /
* / / GDScript: Fix "Identifier not found" error when accessing inner class from ↵Danil Alexeev2023-08-112-0/+26
|/ / | | | | | | inside
* | GDScript: Fix regression with native signal not foundDanil Alexeev2023-08-022-0/+19
| |
* | Merge pull request #79880 from dalexeev/gds-fix-id-shadowing-belowYuri Sizov2023-07-3111-1/+80
|\ \ | | | | | | | | | GDScript: Fix bug with identifier shadowed below in current scope
| * | GDScript: Fix bug with identifier shadowed below in current scopeDanil Alexeev2023-07-2611-1/+80
| | |
* | | Merge pull request #78254 from dalexeev/gds-fix-property-group-name-conflictYuri Sizov2023-07-312-0/+22
|\ \ \ | |/ / |/| | | | | GDScript: Fix conflict between property and group names
| * | GDScript: Fix conflict between property and group namesDanil Alexeev2023-06-152-0/+22
| | |
* | | Fix for not being able to ignore shadowing warnings on class scopejpcerrone2023-07-244-9/+17
| | |
* | | Change GDScript tests to use InstancePlaceholder as the example abstractAaron Franke2023-07-154-4/+4
| |/ |/|
* | Change explicit 'Godot 4.0' references to 'Godot 4'Rémi Verschelde2023-07-101-1/+1
| | | | | | | | Fixes #79276.
* | Merge pull request #77744 from dalexeev/gds-reset-block-locals-on-exitRémi Verschelde2023-06-214-0/+55
|\ \ | | | | | | | | | GDScript: Reset local variables on exit from block
| * | GDScript: Reset local variables on exit from blockDanil Alexeev2023-06-024-0/+55
| | |
* | | GDScript: fix regression when checking for virtual function implementation.ocean (they/them)2023-06-218-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.
* | | Fix lambda parsing continuing on subsequent lines #73273今井きなみ2023-06-214-0/+92
| | |
* | | Merge pull request #73540 from mashumafi/fix-typed-array-addRémi Verschelde2023-06-202-0/+35
|\ \ \ | | | | | | | | Fix: Typed arrays aren't working with +
| * | | Fix: Typed arrays aren't working with +mashumafi2023-02-222-0/+35
| | | |
* | | | GDScript: Fix `_get_script_name()` function collision for SCU buildDanil Alexeev2023-06-202-2/+2
| | | |
* | | | Merge pull request #78389 from rune-scape/rune-match-stringnamesRémi Verschelde2023-06-194-17/+32
|\ \ \ \ | | | | | | | | | | | | | | | GDScript: Strings and StringNames match
| * | | | GDScript: Strings and StringNames matchrune-scape2023-06-144-17/+32
| | |_|/ | |/| |
* | | | Merge pull request #77129 from dalexeev/gds-fix-static-var-bugs-part-1Rémi Verschelde2023-06-1910-18/+202
|\ \ \ \ | | | | | | | | | | | | | | | GDScript: Fix some bugs with static variables and functions
| * | | | GDScript: Fix some bugs with static variables and functionsDanil Alexeev2023-06-1610-18/+202
| | | | |
* | | | | Merge pull request #74741 from vnen/variant-not-for-everyoneRémi Verschelde2023-06-182-0/+576
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | Allow boolean operators for all Variant types
| * | | | | GDScript: Allow boolean operators between any typesGeorge Marques2023-03-102-0/+576
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To make consistent with previous behavior. Mostly to be used in conditions for `if` and `while`.
* | | | | | Merge pull request #73657 from mashumafi/callable-ctorRémi Verschelde2023-06-182-0/+13
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Fix: Get constructor as Callable
| * | | | | | Fix: Get constructor as Callablemashumafi2023-02-202-0/+13
| | | | | | |
* | | | | | | Merge pull request #73363 from dalexeev/gds-fix-min-int-not-representableRémi Verschelde2023-06-182-0/+33
|\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | | | | | | | | | | | GDScript: Fix `MIN_INT` not representable as numeric literal
| * | | | | | GDScript: Fix `MIN_INT` not representable as numeric literalDanil Alexeev2023-02-152-0/+33
| | | | | | |
* | | | | | | Merge pull request #77324 from anvilfolk/oh-no-its-virtualRémi Verschelde2023-06-156-0/+23
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | GDScript: add errors when calling unimplemented virtual functions
| * | | | | | | GDScript: add errors when calling unimplemented virtual functionsocean (they/them)2023-06-156-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 #75944 from akien-mga/style-modules-includesRémi Verschelde2023-06-154-5/+8
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Style: Harmonize header includes in modules
| * | | | | | | | Style: Harmonize header includes in modulesRémi Verschelde2023-06-154-5/+8
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This applies our existing style guide, and adds a new rule to that style guide for modular components such as platform ports and modules: Includes from the platform port or module ("local" includes) should be listed first in their own block using relative paths, before Godot's "core" includes which use "absolute" (project folder relative) paths, and finally thirdparty includes. Includes in `#ifdef`s come after their relevant section, i.e. the overall structure is: - Local includes * Conditional local includes - Core includes * Conditional core includes - Thirdparty includes * Conditional thirdparty includes
* | | | | | | | Merge pull request #73203 from dalexeev/gds-fix-num-literalRémi Verschelde2023-06-156-11/+53
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | | | | | | | | | | GDScript: Fix repeated `_` are allowed after decimal point
| * | | | | | | GDScript: Fix repeated `_` are allowed after decimal pointDanil Alexeev2023-06-146-11/+53
| | |_|_|/ / / | |/| | | | |
* | | | | | | Merge pull request #77351 from anvilfolk/super-discardRémi Verschelde2023-06-152-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-222-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.
* | | | | | GDScript: Further restrict test error output for C++ errorsRémi Verschelde2023-06-142-10/+9
| | | | | | | | | | | | | | | | | | | | | | | | MSVC and GCC/Clang also have different function names...
* | | | | | GDScript: Only include script file path in test error outputRémi Verschelde2023-06-142-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Errors originating in C++ files cause unnecessary diffs whenever the engine is updated (line number changes, etc.) and would cause CI failures due to different formatting of the file path on Windows (backslashes, worked around here anyway) and when using SCU builds (`../scu` insert).
* | | | | | Merge pull request #75419 from vonagam/fix-super-classes-in-array-literalsRémi Verschelde2023-06-143-2/+16
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | GDScript: Allow elements of a parent class in a typed array literal
| * | | | | | GDScript: Allow elements of a parent class in a typed array literalDmitrii Maganov2023-03-283-2/+16
| | | | | | |
* | | | | | | GDScript: Fix calling static func from non-static is allowedDanil Alexeev2023-05-172-0/+10
| |/ / / / / |/| | | | |