summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_analyzer.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* | GDScript: Fix extension comparison for exported scriptsDanil Alexeev2024-02-151-3/+3
| |
* | Merge pull request #86823 from dalexeev/gds-utility-func-as-callableRémi Verschelde2024-01-301-19/+28
|\ \ | | | | | | | | | GDScript: Allow utility functions to be used as `Callable`
| * | GDScript: Allow utility functions to be used as `Callable`Danil Alexeev2024-01-051-19/+28
| | |
* | | Merge pull request #85224 from HolonProduction/identifier-type-prefer-annotatedYuri Sizov2024-01-241-6/+14
|\ \ \ | | | | | | | | | | | | Prefer identifiers annotated type if assigned type is incompatible to it
| * | | Prefer identifiers annotated type if assigned type is incompatible to itHolonProduction2024-01-171-6/+14
| | | |
* | | | Merge pull request #85215 from HolonProduction/type-from-property-class-nameRémi Verschelde2024-01-181-2/+13
|\ \ \ \ | |/ / / |/| | | | | | | Handle global classes when resolving type from `PropertyInfo`
| * | | Handle global classes when resolving type from `PropertyInfo`HolonProduction2024-01-171-2/+13
| | |/ | |/|
* | | Add const lvalue ref to container parametersMuller-Castro2024-01-051-1/+1
| |/ |/|
* | Merge pull request #82639 from golfinq/gdscript-improve-indexing-errorRémi Verschelde2024-01-041-1/+1
|\ \ | | | | | | | | | GDScript: Improve error messages for invalid indexing
| * | GDScript: Improve error messages for invalid indexingRémi Verschelde2023-10-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Merge pull request #82264 from dalexeev/core-builtin-methods-as-callablesRémi Verschelde2024-01-021-0/+4
|\ \ \ | | | | | | | | | | | | Core: Allow methods of built-in `Variant` types to be used as Callables
| * | | Core: Allow methods of built-in `Variant` types to be used as CallablesDanil Alexeev2023-10-251-0/+4
| | |/ | |/|
* | | Merge pull request #85703 from ↵Yuri Sizov2023-12-191-0/+54
|\ \ \ | | | | | | | | | | | | | | | | | | | | TitanNano/jovan/gdscript_foreign_script_properties Make GDScriptAnalyzer aware of properties from other languages
| * | | GDScriptAnalyzer is unaware of properties from other LanguagesJovan Gerodetti2023-12-181-0/+54
| |/ / | | | | | | | | | | | | Co-authored-by: K. S. Ernest (iFire) Lee <fire@users.noreply.github.com> Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
* / / Change container_element_type to vector containerThaddeus Crews2023-12-051-32/+40
|/ /
* | 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
| |