summaryrefslogtreecommitdiffstats
path: root/modules/gdscript
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #53647 from Chaosus/gds_fix_builtin_functions_autocompletionYuri Roubinsky2021-10-111-1/+14
|\
| * Fix autocompletion of built-in functions in GDScriptYuri Roubinsky2021-10-111-1/+14
| |
* | Merge pull request #53430 from DavidSichma/typed_safe_setterGeorge Marques2021-10-111-2/+4
|\ \ | | | | | | Made typed member setters safe
| * | Only emit typed member setters if safe to do soDavid Sichma2021-10-081-2/+4
| | | | | | | | | | | | | | | Instructions are now only emitted if input type matches expected type. Otherwise usual setter fallback.
* | | Merge pull request #53103 from ZuBsPaCe/gdscript-analyze-properties-fixGeorge Marques2021-10-1117-106/+291
|\ \ \ | |_|/ |/| | GDScript: Report property type errors
| * | GDScript: Report property type errorsZuBsPaCe2021-10-0817-106/+291
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Remove redundant String operation from GDScript enum exportsYuri Sizov2021-10-111-1/+1
| | |
* | | Enhance and cleanup stringify for Vectormashumafi2021-10-092-0/+76
|/ /
* | Merge pull request #53536 from Faless/mp/4.x_rpc_configMax Hilbrunner2021-10-081-2/+2
|\ \ | | | | | | [Net] Add call_local argument to Node.rpc_config.
| * | [Net] Rename RPCConfig.sync to call_local.Fabio Alessandrelli2021-10-081-2/+2
| | | | | | | | | | | | For consistency with the other user facing changes.
* | | Merge pull request #53336 from briansemrau/gdscript-i'm-not-my-own-local-classGeorge Marques2021-10-081-1/+3
|\ \ \ | |/ / |/| | [GDScript 2.0] fix script base class self-assignment
| * | GDScript fix wrong base class assignmentBrian Semrau2021-10-041-1/+3
| | |
* | | GDScript: Use getter return type for the property typeGeorge Marques2021-10-071-3/+6
| | | | | | | | | | | | | | | | | | 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.
* | | Merge pull request #53422 from KoBeWi/add_LUA_to_GodotRémi Verschelde2021-10-072-0/+6
|\ \ \
| * | | Fix LUA-style assignment in Dictionarykobewi2021-10-052-0/+6
| |/ /
* | | GDScript: Fix method ptrcall on releaseGeorge Marques2021-10-071-0/+1
| | |
* | | Merge pull request #53494 from mhilbrunner/stop-drop-and-dont-lieRémi Verschelde2021-10-071-1/+1
|\ \ \ | | | | | | | | Fix outdated no_call_local, use call_remote
| * | | Fix outdated no_call_local, use call_remoteMax Hilbrunner2021-10-061-1/+1
| | | |
* | | | GDScript: Set status on parsing steps beforehandGeorge Marques2021-10-061-4/+4
|/ / / | | | | | | | | | | | | To avoid potential dependency cycles. If any happens it will not get into infinite recursion anymore and errors will cascade later on.
* | | Merge pull request #53479 from vnen/gdscript-subscript-object-selfRémi Verschelde2021-10-063-1/+16
|\ \ \
| * | | GDScript: Allow subscript on self and object typesGeorge Marques2021-10-063-1/+16
| | | |
* | | | Merge pull request #53478 from vnen/gdscript-avoid-hard-inferenceRémi Verschelde2021-10-067-18/+47
|\ \ \ \ | |/ / / |/| | |
| * | | GDScript: Avoid hard errors on inferred typesGeorge Marques2021-10-065-11/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | GDScript: Make all warnings enabled in test generationGeorge Marques2021-10-062-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | doc: Update links to latest documentation after content reorganizationRémi Verschelde2021-10-061-1/+1
|/ / /
* / / GDScript: Use path cache when checking preloaded scriptsGeorge Marques2021-10-041-1/+7
|/ / | | | | | | | | | | | | | | | | 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.
* | GDScript: Fix member assignment with operationGeorge Marques2021-10-043-8/+33
| | | | | | | | | | It was wrongly updating the assigned value with the result of the operation.
* | Merge pull request #53303 from akien-mga/53295-gdscript-completion-quote-styleRémi Verschelde2021-10-041-11/+17
|\ \
| * | GDScript completion: Handle quote style ad-hoc to remove editor dependencyRémi Verschelde2021-10-041-11/+17
| |/ | | | | | | | | | | | | | | `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`.
* | Merge pull request #53338 from briansemrau/gdscript-handle-for-with-null-listRémi Verschelde2021-10-042-2/+8
|\ \
| * | GDScript Check for null list in `for` loopBrian Semrau2021-10-022-2/+8
| |/
* / Allow void as return type for constructorskobewi2021-10-031-1/+4
|/
* Merge pull request #53290 from Faless/mp/4.x_opts_namesFabio Alessandrelli2021-10-011-8/+8
|\ | | | | [Net] Rename RPC constants and annotation arguments.
| * [Net] Rename RPC constants and annotation arguments.Fabio Alessandrelli2021-10-011-8/+8
| | | | | | | | | | | | | | | | | | 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
* | Fix empty line hover; fix open non-res:// scriptFrancois Belair2021-10-013-3/+9
| |
* | Merge pull request #38397 from Calinou/doc-range-backwards-exampleRémi Verschelde2021-10-011-1/+16
|\ \ | |/ |/|
| * Add an example on iterating an array backwardsHugo Locurcio2021-09-301-1/+16
| | | | | | | | This closes https://github.com/godotengine/godot-docs/issues/3472.
* | Use range iterators for `Map`Lightning_A2021-09-3015-175/+175
|/
* Revert "GdScript: Use reduced constant expression result when doing binary ↵Rémi Verschelde2021-09-301-10/+2
| | | | | | | | | | | | | | | | | | 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. ```
* Merge pull request #51818 from MarianoGnu/gdscript2-enum-fixesRémi Verschelde2021-09-301-3/+19
|\
| * GdScript: Use reduced constant expression result when doing binary ↵Mariano Suligoy2021-08-181-2/+10
| | | | | | | | operations. Fixes #50293
| * Accept non unnamed enums as valid values for enums. Fixes #49357Mariano Suligoy2021-08-171-0/+5
| |
| * When analyzing GdScript sources, consider Enums as Dictionaries. Fixes #45558Mariano Suligoy2021-08-171-1/+4
| |
* | Merge pull request #53216 from vnen/gdscript-builtin-type-not-idRémi Verschelde2021-09-299-0/+30
|\ \
| * | GDScript: Don't allow builtin type names as identifiersGeorge Marques2021-09-299-0/+30
| | |
* | | GDScript: Fix assignment with operation for propertiesGeorge Marques2021-09-293-15/+40
|/ /
* | Merge pull request #53092 from Razoric480/lsp-report-_initRémi Verschelde2021-09-292-3/+6
|\ \
| * | Make LSP report _init instead of Object::newFrancois Belair2021-09-292-3/+6
| | |
* | | Merge pull request #52800 from akien-mga/gdscript-remove-exp_rangeRémi Verschelde2021-09-291-1/+1
|\ \ \
| * | | GDScript: Remove reference to remove `@export_exp_range`Rémi Verschelde2021-09-171-1/+1
| | | | | | | | | | | | | | | | | | | | It was removed in 75688772b3efadb8a36b1bb7ccde9c08819bc58e to be replaced by `@export_range` with an `"exp"` hint string.