summaryrefslogtreecommitdiff
path: root/modules/gdscript
AgeCommit message (Collapse)Author
2021-10-21Remove unimplemented methodsMarcel Admiraal
2021-10-19Merge pull request #52940 from groud/toast_notificationRémi Verschelde
2021-10-18Fix incorrect debug check for settersBenjamin Navarro
the check read the return type of the setter, which doesn't exist and lead to a segmentation fault. Now we check the first function parameter. Probably a bad copy/paste of the getter case
2021-10-17Fix name used instead of doc for GDScript signalsopl-
2021-10-15Merge pull request #53856 from vnen/gdscript-setter-crashRémi Verschelde
2021-10-15GDScript: Avoid crash if missing setter signatureGeorge Marques
2021-10-15Merge pull request #53843 from vnen/gdscript-typed-array-subscript-constantRémi Verschelde
Fix inferred typed array marked as constant
2021-10-15GDScript: Fix inferred typed array marked as constantGeorge Marques
2021-10-14GDScript: Fix typing for await expressionGeorge Marques
Don't grab the type of the awaited value unless it's constant (which makes it synchronous) or call (which always use the proper return type).
2021-10-14GDScript: Remove error when coroutine is called without awaitGeorge Marques
In the case the call happens as a statement, since the return value isn't used in this case.
2021-10-14GDScript: Properly return value with await on non-coroutineGeorge Marques
If the keyword `await` is used without a coroutine, it should still return the value synchronally.
2021-10-14GDScript: Make sure calls don't use return when not neededGeorge Marques
2021-10-14Merge pull request #53807 from vnen/dont-share-arrays-and-dictsRémi Verschelde
2021-10-14Zero Dictionary and Array variants when changing type with resetGeorge Marques
So they don't reference to the old values anymore and instead refer to a new value.
2021-10-14Merge pull request #53726 from briansemrau/gd-outer-classGeorge Marques
GDScript 2.0: Access outer scope classes
2021-10-14Implement toast notifications in the editorGilles Roudière
2021-10-13GDScript: Access outer scope classesBrian Semrau
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`.