summaryrefslogtreecommitdiffstats
path: root/modules/gdscript
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #91412 from ↵Rémi Verschelde2024-05-0218-13/+182
|\ | | | | | | | | | | dalexeev/gds-fix-non-static-access-in-static-context GDScript: Fix access non-static members in static context
| * GDScript: Fix access non-static members in static contextDanil Alexeev2024-05-0118-13/+182
| |
* | Merge pull request #91364 from vnen/gdscript-implicit-ready-base-firstRémi Verschelde2024-05-024-10/+36
|\ \ | | | | | | | | | GDScript: Call implicit ready on base script first
| * | GDScript: Call implicit ready on base script firstGeorge Marques2024-05-024-10/+36
| | | | | | | | | | | | | | | | | | | | | It is generally expected that the base class is called before the inherited clas. This commit implements this behavior for the implicit ready function (`@onready` annotation) to make it consistent with the expectations.
* | | [GDScript] Correctly report invalid read-only accessA Thousand Ships2024-05-014-36/+52
| |/ |/|
* | Merge pull request #91192 from vnen/gdscript-validated-native-static-callsRémi Verschelde2024-05-019-164/+329
|\ \ | | | | | | | | | GDScript: Perform validated calls with static methods
| * | GDScript: Perform validated calls with static methodsGeorge Marques2024-04-259-164/+329
| | | | | | | | | | | | | | | | | | When the types are validated at compile time, this type of call runs faster. It is already used for instance methods, this adds this optimization to native static methods as well.
* | | Merge pull request #89647 from AThousandShips/read_only_dictRémi Verschelde2024-05-012-0/+10
|\ \ \ | |_|/ |/| | | | | [Core] Fix property access on read-only `Dictionary`
| * | [Core] Fix property access on read-only `Dictionary`A Thousand Ships2024-04-222-0/+10
| | |
* | | Merge pull request #90860 from vnen/gdscript-get-dependenciesRémi Verschelde2024-04-294-7/+29
|\ \ \ | | | | | | | | | | | | GDScript: Implement `get_dependencies()`
| * | | GDScript: Implement get_dependencies()George Marques2024-04-184-7/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The parser and analyzer now track the dependencies of the script and return the list when the resource loader ask for them. What is considered a dependency: - Any `preload()` call. - The base script this one extends. - Any identifier, including types, that refers to global scripts. - Any autoload singleton reference.
* | | | Merge pull request #90552 from vnen/gdscript-constructor-callable-releaseRémi Verschelde2024-04-291-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | GDScript: Assume constructor to be accessible from class
| * | | | GDScript: Assume constructor to be accessible from classGeorge Marques2024-04-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Since the constructor is accessed directly from the class, even if not marked `static`, it can be retrieved as a Callable without an instance.
* | | | | Merge pull request #90498 from vnen/gdscript-resolve-scene-autoload-typesRémi Verschelde2024-04-291-3/+22
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | GDScript: Resolve types from autoload scenes
| * | | | | GDScript: Resolve types from autoload scenesGeorge Marques2024-04-261-3/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the autoload is a scene, it now extracts the script from it and use it to further infer nested types.
* | | | | | Merge pull request #90975 from aaronfranke/plugin-orgRémi Verschelde2024-04-291-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Organize existing code for editor plugins
| * | | | | | Organize existing code for editor pluginsAaron Franke2024-04-271-1/+1
| |/ / / / /
* | | | | | Merge pull request #90949 from rhofour/gdignoreRémi Verschelde2024-04-291-11/+18
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | LSP: Have `GDScriptWorkspace::list_script_files` respect `.gdignore`.
| * | | | | Have GDScriptWorkspace::list_script_files respect .gdignore.R. Alex Hofer2024-04-201-11/+18
| | |_|/ / | |/| | |
* | | | | GDScript: Fix object iterator opcodesDanil Alexeev2024-04-263-10/+97
| |_|_|/ |/| | |
* | | | GDScript: Fix test `reset_uninit_local_vars.gd` failureDanil Alexeev2024-04-241-3/+3
| | | |
* | | | Merge pull request #89990 from dalexeev/gds-reset-uninit-local-varsRémi Verschelde2024-04-2410-72/+189
|\ \ \ \ | | | | | | | | | | | | | | | GDScript: Fix uninitialized local variables not being reset
| * | | | GDScript: Fix uninitialized local variables not being resetDanil Alexeev2024-03-3010-72/+189
| | | | |
* | | | | Merge pull request #89884 from HolonProduction/tests-batch-2Rémi Verschelde2024-04-2339-11/+100
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | Completion Tests: Add script to owner
| * | | | | Completion Tests: Add script to ownerHolonProduction2024-03-2539-11/+100
| | | | | |
* | | | | | Merge pull request #89738 from dalexeev/gds-docgen-improve-non-constantRémi Verschelde2024-04-232-13/+36
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | GDScript: Improve DocGen for non-constant expressions
| * | | | | | GDScript: Improve DocGen for non-constant expressionsDanil Alexeev2024-03-212-13/+36
| |/ / / / /
* | | | | | Merge pull request #90601 from ↵Rémi Verschelde2024-04-228-106/+139
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | rune-scape/rune-gdscript-dependant-parser-ref-errors GDScript: Fix out of date errors in depended scripts
| * | | | | GDScript: invalidate GDScriptParserRef when reloadingrune-scape2024-04-188-106/+139
| | | | | |
* | | | | | Merge pull request #88899 from AThousandShips/gdscript_cleanRémi Verschelde2024-04-192-9/+3
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | | | | | | | | [GDScript] Clean up some unused code
| * | | | | [GDScript] Clean up some unused codeA Thousand Ships2024-04-162-9/+3
| | | | | |
* | | | | | Merge pull request #90794 from ↵Rémi Verschelde2024-04-185-53/+10
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | vnen/gdscript-no-unused-constant-warning-with-underscore GDScript: Suppress unused constant warning with underscore
| * | | | | | GDScript: Suppress unused constant warning with underscoreGeorge Marques2024-04-185-53/+10
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The warning message mentions that local constants prefixed with `_` does not generate the warning. This commit actually implements this warning suppression.
* / / / / / GDScript: Warn when enum variable has no defaultGeorge Marques2024-04-166-0/+35
|/ / / / / | | | | | | | | | | | | | | | | | | | | The default will always be set to `0`, so if it's not a valid value in the enum, the warning is shown.
* | | | | Merge pull request #89472 from dalexeev/gds-fix-bin-tokenizer-continuation-linesRémi Verschelde2024-04-155-11/+35
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | GDScript: Fix continuation lines in `GDScriptTokenizerBuffer`
| * | | | | GDScript: Fix continuation lines in `GDScriptTokenizerBuffer`Danil Alexeev2024-04-105-11/+35
| | | | | |
* | | | | | GDScript: Allow casting enum to intGeorge Marques2024-04-123-0/+13
| |/ / / / |/| | | | | | | | | | | | | | | | | | | An enum value is always an integer so the cast is valid. The code here now consider this case to avoid giving an error message.
* | | | | Fix multiline array/dictionary match statementsAiden Storey2024-04-125-15/+82
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently array and dictionary expressions cannot be spread over multiple lines in match statements. Adding mutliline push/pop while parsing the pattern for bracket and brace enables the ability for these to be multiline. This enables more complex patterns to be matched without exceeding line limits. Fixes #90372
* | | | Merge pull request #90448 from vnen/gdscript-infer-string-formatRémi Verschelde2024-04-103-0/+13
|\ \ \ \ | | | | | | | | | | | | | | | GDScript: Infer type with string format operator
| * | | | GDScript: Infer type with string format operatorGeorge Marques2024-04-103-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the left value type is known to be String, assume the format operator (`%`) will return a string, since it works with any type in the right hand side. This is also used by type inference even if the right hand type is unknown at compile time.
* | | | | Merge pull request #90442 from vnen/gdscript-dont-warn-using-default-builtinRémi Verschelde2024-04-1010-30/+65
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | GDScript: Don't warn on unassigned for builtin-typed variables
| * | | | GDScript: Don't warn on unassigned for builtin-typed variablesGeorge Marques2024-04-1010-30/+65
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the type of a variable is a built-in Variant type, then it will automatically be assigned a default value based on the type. This means that the explicit initialization may be unnecessary. Thus this commit removes the warning in such case. This also changes the meaning of the unassigned warning to happen when the variable is used before being assigned, not when it has zero assignments.
* | | | Merge pull request #89382 from dcaoc03/masterRémi Verschelde2024-04-095-7/+59
|\ \ \ \ | | | | | | | | | | | | | | | Fix enum autocompletion for core classes
| * | | | Fixed enum autocompletion for core classes (Issue #88858)Diogo Costa2024-03-155-7/+59
| | | | | | | | | | | | | | | | | | | | Minor fix consisted in the use of [[fallthrough]] macro
* | | | | Merge pull request #84043 from dalexeev/gds-fix-unsafe-cast-warningRémi Verschelde2024-04-0921-5/+149
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | GDScript: Fix `UNSAFE_CAST` warning
| * | | | GDScript: Fix `UNSAFE_CAST` warningDanil Alexeev2023-10-2721-5/+149
| | | | |
* | | | | GDScript: Fix highlighting escapes in multiline raw stringsDanil Alexeev2024-04-092-18/+28
| | | | |
* | | | | Add tests for signal await with parameterskobewi2024-04-082-0/+29
| | | | |
* | | | | Merge pull request #90039 from AThousandShips/load_relative_noteRémi Verschelde2024-04-081-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | [Doc] Document loading behavior with relative paths
| * | | | | [Doc] Document loading behavior with relative pathsA Thousand Ships2024-03-301-1/+1
| | |_|_|/ | |/| | |