summaryrefslogtreecommitdiff
path: root/modules/gdscript
AgeCommit message (Collapse)Author
2021-10-12Merge pull request #53720 from vnen/gdscript-typed-array-custom-classRémi Verschelde
2021-10-12GDScript: Fix typed array with custom classesGeorge Marques
2021-10-12GDScript: Make setter parameter type same as variable typeGeorge Marques
2021-10-11Merge pull request #53647 from Chaosus/gds_fix_builtin_functions_autocompletionYuri Roubinsky
2021-10-11Fix autocompletion of built-in functions in GDScriptYuri Roubinsky
2021-10-11Merge pull request #53430 from DavidSichma/typed_safe_setterGeorge Marques
Made typed member setters safe
2021-10-11Merge pull request #53103 from ZuBsPaCe/gdscript-analyze-properties-fixGeorge Marques
GDScript: Report property type errors
2021-10-11Remove redundant String operation from GDScript enum exportsYuri Sizov
2021-10-09Enhance and cleanup stringify for Vectormashumafi
2021-10-08Only emit typed member setters if safe to do soDavid Sichma
Instructions are now only emitted if input type matches expected type. Otherwise usual setter fallback.
2021-10-08GDScript: Report property type errorsZuBsPaCe
Inline getters & setters are now FunctionNodes. Their names are set in the parser, not in the compiler. GDScript-Analyzer will now run through getter and setter. Also report wrong type or signature errors regarding getset properties. Added GDScript tests for getters and setters. #53102
2021-10-08Merge pull request #53536 from Faless/mp/4.x_rpc_configMax Hilbrunner
[Net] Add call_local argument to Node.rpc_config.
2021-10-08Merge pull request #53336 from briansemrau/gdscript-i'm-not-my-own-local-classGeorge Marques
[GDScript 2.0] fix script base class self-assignment
2021-10-08[Net] Rename RPCConfig.sync to call_local.Fabio Alessandrelli
For consistency with the other user facing changes.
2021-10-07GDScript: Use getter return type for the property typeGeorge Marques
The PropertyInfo hints are more relevant for the inspector. The getter return type is more reliable and less likely to be incorrect and it is what's going to be called in the end.
2021-10-07Merge pull request #53422 from KoBeWi/add_LUA_to_GodotRémi Verschelde
2021-10-07GDScript: Fix method ptrcall on releaseGeorge Marques
2021-10-07Merge pull request #53494 from mhilbrunner/stop-drop-and-dont-lieRémi Verschelde
Fix outdated no_call_local, use call_remote
2021-10-06GDScript: Set status on parsing steps beforehandGeorge Marques
To avoid potential dependency cycles. If any happens it will not get into infinite recursion anymore and errors will cascade later on.
2021-10-06Fix outdated no_call_local, use call_remoteMax Hilbrunner
2021-10-06Merge pull request #53479 from vnen/gdscript-subscript-object-selfRémi Verschelde
2021-10-06Merge pull request #53478 from vnen/gdscript-avoid-hard-inferenceRémi Verschelde
2021-10-06GDScript: Allow subscript on self and object typesGeorge Marques
2021-10-06GDScript: Avoid hard errors on inferred typesGeorge Marques
Since inference isn't always correct, they are now treated as unsafe instead of errors. This also removes inferred type when a variable is reassigned. Since it's not aware of branching, the types might become invalid in a later context.
2021-10-06GDScript: Make all warnings enabled in test generationGeorge Marques
The test generation doesn't initialize the language (since it's already initialized in main), but it still needs the warning enabled so it matches the actual tests.
2021-10-06doc: Update links to latest documentation after content reorganizationRémi Verschelde
2021-10-05Fix LUA-style assignment in Dictionarykobewi
2021-10-04GDScript fix wrong base class assignmentBrian Semrau
2021-10-04GDScript: Use path cache when checking preloaded scriptsGeorge Marques
The path itself might not always be set in some cases, especially when the script is just created and is already in the resource cache. Using get_path() in this case gets the correct resource path. This also adds a null check for safety in case the path is incorrect or missing, to avoid a crash in the engine.
2021-10-04GDScript: Fix member assignment with operationGeorge Marques
It was wrongly updating the assigned value with the result of the operation.
2021-10-04Merge pull request #53303 from akien-mga/53295-gdscript-completion-quote-styleRémi Verschelde
2021-10-04Merge pull request #53338 from briansemrau/gdscript-handle-for-with-null-listRémi Verschelde
2021-10-04GDScript completion: Handle quote style ad-hoc to remove editor dependencyRémi Verschelde
`core` and `scene` shouldn't depend on `editor`, so they can't query this style setting in `get_argument_options`. But we can handle it after the fact in GDScript's completion code. Also cleans up a couple extra unused invalid includes in `core`.
2021-10-03Allow void as return type for constructorskobewi
2021-10-02GDScript Check for null list in `for` loopBrian Semrau
2021-10-01Merge pull request #53290 from Faless/mp/4.x_opts_namesFabio Alessandrelli
[Net] Rename RPC constants and annotation arguments.
2021-10-01[Net] Rename RPC constants and annotation arguments.Fabio Alessandrelli
any -> any_peer sync -> call_local ordered -> unreliable_ordered Multiplayer.RPC_MODE_ANY -> RPC_MODE_ANY_PEER Multiplayer.TRANSFER_MODE_ORDERED -> TRANSFER_MODE_UNRELIABLE_ORDERED
2021-10-01Fix empty line hover; fix open non-res:// scriptFrancois Belair
2021-10-01Merge pull request #38397 from Calinou/doc-range-backwards-exampleRémi Verschelde
2021-09-30Use range iterators for `Map`Lightning_A
2021-09-30Add an example on iterating an array backwardsHugo Locurcio
This closes https://github.com/godotengine/godot-docs/issues/3472.
2021-09-30Revert "GdScript: Use reduced constant expression result when doing binary ↵Rémi Verschelde
operations. Fixes #50293" This reverts commit 62077086076fb99fb7fe014522c44ae83f87dc4d. It broke a GDScript test (which didn't exist back when the PR was made, so was missed prior to the merge). It choked on: ``` prints("a", test_instance.a, test_instance.a == Named.VALUE_A) ``` With: ``` Invalid operands "VALUE_A (enum value)" and "int" for "==" operator. ```
2021-09-30Merge pull request #51818 from MarianoGnu/gdscript2-enum-fixesRémi Verschelde
2021-09-29Merge pull request #53216 from vnen/gdscript-builtin-type-not-idRémi Verschelde
2021-09-29GDScript: Don't allow builtin type names as identifiersGeorge Marques
2021-09-29GDScript: Fix assignment with operation for propertiesGeorge Marques
2021-09-29Merge pull request #53092 from Razoric480/lsp-report-_initRémi Verschelde
2021-09-29Make LSP report _init instead of Object::newFrancois Belair
2021-09-29Merge pull request #52800 from akien-mga/gdscript-remove-exp_rangeRémi Verschelde
2021-09-27Fix check for freed object during castPedro J. Estébanez