summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_analyzer.cpp
Commit message (Collapse)AuthorAgeFilesLines
* GDScript: Fix non-static call is allowed in static var lambda bodyDanil Alexeev2023-10-201-15/+27
|
* Merge pull request #83455 from Lunarisnia/fix/gdscript-error-typoRémi Verschelde2023-10-171-1/+1
|\ | | | | | | Fix grammar typo in GDScript error message
| * Fix grammar typo in GDScript error messageLunarisnia2023-10-171-1/+1
| |
* | Merge pull request #83257 from ↵Rémi Verschelde2023-10-161-3/+8
|\ \ | | | | | | | | | | | | | | | dalexeev/gds-fix-unresolved-type-for-incomplete-expressions GDScript: Fix unresolved datatype for incomplete expressions
| * | GDScript: Fix unresolved datatype for incomplete expressionsDanil Alexeev2023-10-131-3/+8
| |/
* / GDScript: Fix incorrect error message for utility functionsDanil Alexeev2023-10-161-16/+18
|/
* GDScript: Add error when exporting node in non [Node]-derived classesDanil Alexeev2023-10-051-10/+10
|
* Merge pull request #82789 from ↵Rémi Verschelde2023-10-051-0/+3
|\ | | | | | | | | | | dalexeev/gds-fix-unresolved-type-for-incomplete-bin-op GDScript: Fix unresolved datatype for incomplete binary operator
| * GDScript: Fix unresolved datatype for incomplete binary operatorDanil Alexeev2023-10-041-0/+3
| |
* | GDScript: Fix `native_type` is empty for autoload without scriptDanil Alexeev2023-10-041-2/+6
|/
* GDScript: Fix `UNSAFE_CALL_ARGUMENT` warning for `Variant` constructorsDanil Alexeev2023-09-301-7/+21
|
* Merge pull request #82477 from dalexeev/gds-covariance-and-contravarianceYuri Sizov2023-09-281-4/+31
|\ | | | | | | GDScript: Add return type covariance and parameter type contravariance
| * GDScript: Add return type covariance and parameter type contravarianceDanil Alexeev2023-09-281-4/+31
| |
* | Merge pull request #82030 from dalexeev/gds-make-for-loop-array-literal-typedYuri Sizov2023-09-281-7/+13
|\ \ | | | | | | | | | GDScript: Make array literal typed if `for` loop variable type is specified
| * | GDScript: Make array literal typed if `for` loop variable type is specifiedDanil Alexeev2023-09-211-7/+13
| | |
* | | Merge pull request #80085 from vnen/gdscript-pattern-guardsYuri Sizov2023-09-281-0/+4
|\ \ \ | |_|/ |/| | | | | GDScript: Implement pattern guards for match statement
| * | GDScript: Implement pattern guards for match statementGeorge Marques2023-09-271-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-argumentYuri Sizov2023-09-271-35/+55
|\ \ \ | |/ / |/| | | | | GDScript: Improve call analysis
| * | GDScript: Improve call analysisDanil Alexeev2023-09-211-35/+55
| |/ | | | | | | | | | | * Add missing `UNSAFE_CALL_ARGUMENT` warning. * Fix `Object` constructor. * Display an error for non-existent static methods.
* | [Modules] Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicableA Thousand Ships2023-09-261-1/+1
| |
* | Merge pull request #82139 from dalexeev/gds-add-inferred-declaration-warningRémi Verschelde2023-09-261-3/+10
|\ \ | | | | | | | | | GDScript: Add `INFERRED_DECLARATION` warning
| * | GDScript: Add `INFERRED_DECLARATION` warningDanil Alexeev2023-09-221-3/+10
| |/
* | Check if any global script class is shadowed by a variableChia-Hsiang Cheng2023-09-261-1/+5
| |
* | GDScript: Prevent constructing and inheriting engine singletonsDanil Alexeev2023-09-221-0/+10
|/
* Merge pull request #81332 from ↵Rémi Verschelde2023-09-201-2/+2
|\ | | | | | | | | | | dalexeev/gds-fix-update-array-literal-in-weak-context GDScript: Don't make array literal typed in weak type context
| * GDScript: Don't make array literal typed in weak type contextDanil Alexeev2023-09-051-2/+2
| |
* | GDScript: Fix subscript resolution for constant non-metatypesDanil Alexeev2023-09-191-1/+1
| |
* | GDScript: Add check for `super()` methods not being implementedocean (they/them)2023-09-171-1/+7
| |
* | Merge pull request #81577 from anvilfolk/thecycleeeeeeeeeeeeesaaaaaaaaaaaaahRémi Verschelde2023-09-161-2/+2
|\ \ | | | | | | | | | GDScript: Fix compilation of expressions compiling other classes
| * | GDScript: Fix compilation of expressions compiling other classesocean (they/them)2023-09-121-2/+2
| | | | | | | | | | | | | | | This PR is part of ongoing work on fixing cyclic dependencies in the GDScript compiler.
* | | Remove REDUNDANT_FOR_VARIABLE_TYPEryanabx2023-09-121-8/+0
|/ / | | | | | | Remove REDUNDANT_FOR_VARIABLE_TYPE
* | Add "untyped_declaration" warningryanabx2023-09-111-13/+37
| |
* | GDScript: Fix `get_*_list()` methods return incorrect infoDanil Alexeev2023-09-041-4/+6
|/
* Merge pull request #80964 from dalexeev/gds-allow-use-local-consts-as-typesYuri Sizov2023-08-251-116/+155
|\ | | | | | | GDScript: Allow use local constants as types
| * GDScript: Allow use local constants as typesDanil Alexeev2023-08-251-116/+155
| |
* | GDScript: Fix lambda resolution with cyclic referencesDanil Alexeev2023-08-251-30/+63
|/
* GDScript: Add static typing for `for` loop variableDanil Alexeev2023-08-171-1/+33
|
* Merge pull request #78552 from dalexeev/gds-check-get-node-in-static-funcRémi Verschelde2023-08-171-6/+15
|\ | | | | | | GDScript: Check `get_node()` shorthand in static functions
| * GDScript: Check `get_node()` shorthand in static functionsDanil Alexeev2023-08-091-6/+15
| |
* | GDScript: Fix "Identifier not found" error when accessing inner class from ↵Danil Alexeev2023-08-111-0/+3
|/ | | | inside
* GDScript: Fix bug with identifier shadowed below in current scopeDanil Alexeev2023-07-261-0/+19
|
* Merge pull request #75620 from ↵Yuri Sizov2023-07-251-24/+23
|\ | | | | | | | | | | jpcerrone/fix_shadow_warnings_not_going_away_after_ignoring Fix for not being able to ignore shadowing warnings on class scope
| * Fix for not being able to ignore shadowing warnings on class scopejpcerrone2023-07-241-24/+23
| |
* | Script editor: Show depended script errorsrune-scape2023-07-241-0/+4
|/
* GDScript: fix regression when checking for virtual function implementation.ocean (they/them)2023-06-211-10/+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.
* Make container element type comparison safeYuri Sizov2023-06-201-1/+1
|
* Merge pull request #73540 from mashumafi/fix-typed-array-addRémi Verschelde2023-06-201-3/+22
|\ | | | | Fix: Typed arrays aren't working with +
| * Fix: Typed arrays aren't working with +mashumafi2023-02-221-3/+22
| |
* | Merge pull request #77129 from dalexeev/gds-fix-static-var-bugs-part-1Rémi Verschelde2023-06-191-2/+8
|\ \ | | | | | | | | | GDScript: Fix some bugs with static variables and functions
| * | GDScript: Fix some bugs with static variables and functionsDanil Alexeev2023-06-161-2/+8
| | |