summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_parser.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
| * Prevent identifiers from naming as built-in funcs and global classesYuri Roubinsky2021-11-081-8/+76
| |
* | Allow using $/root node pathsMaximilian2021-11-091-0/+17
|/ | | | | | | | | | format fix shadowing use match instead of comparison Update gdscript_parser.cpp
* Merge pull request #54350 from akien-mga/clang-format-dont-align-operandsRémi Verschelde2021-10-281-3/+3
|\
| * clang-format: Various fixes to comments alignment from `clang-format` 13Rémi Verschelde2021-10-281-3/+3
| | | | | | | | All reviewed manually and occasionally rewritten to avoid bad auto formatting.
* | Merge pull request #53526 from KoBeWi/super_printRémi Verschelde2021-10-281-1/+1
|\ \ | |/ |/|
| * Change print_line() to use any number of Variantskobewi2021-10-071-1/+1
| |
* | GDScript: Avoid crash if missing setter signatureGeorge Marques2021-10-151-6/+8
| |
* | Merge pull request #53103 from ZuBsPaCe/gdscript-analyze-properties-fixGeorge Marques2021-10-111-7/+42
|\ \ | | | | | | GDScript: Report property type errors
| * | GDScript: Report property type errorsZuBsPaCe2021-10-081-7/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
|/ /
* / [Net] Rename RPCConfig.sync to call_local.Fabio Alessandrelli2021-10-081-2/+2
|/ | | | For consistency with the other user facing changes.
* Fix outdated no_call_local, use call_remoteMax Hilbrunner2021-10-061-1/+1
|
* GDScript Check for null list in `for` loopBrian Semrau2021-10-021-0/+4
|
* [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
* Use range iterators for `Map`Lightning_A2021-09-301-3/+3
|
* Merge pull request #52906 from vnen/gdscript-show-error-on-yieldRémi Verschelde2021-09-211-1/+6
|\
| * GDScript: Show specific error when "yield" is usedGeorge Marques2021-09-211-1/+6
| | | | | | | | | | To help people porting code, it gives a hint to use "await" instead of a generic error.
* | Merge pull request #52905 from vnen/gdscript-single-line-declarationRémi Verschelde2021-09-211-7/+16
|\ \
| * | GDScript: Allow classes declaration to be done in single lineGeorge Marques2021-09-211-7/+16
| |/ | | | | | | | | Incidentally, allow multiple statements in single line functions when using semicolon as a terminator.
* / GDScript: Allow multiple lines in signal parameters declarationGeorge Marques2021-09-211-1/+4
|/
* GDScript: Properly catch error when missing index in subscriptGeorge Marques2021-09-171-0/+4
|
* Merge pull request #51671 from RandomShaper/fix_gdscript_crashGeorge Marques2021-09-171-0/+33
|\ | | | | Fix some GDScript bugs
| * Implement iterator variable typing in GDScriptPedro J. Estébanez2021-09-111-0/+33
| |
* | Merge pull request #52706 from vnen/gdscript-ternary-operator-crashRémi Verschelde2021-09-151-0/+4
|\ \ | | | | | | GDScript: Show error when missing expression after ternary else
| * | GDScript: Show error when missing expression after ternary elseGeorge Marques2021-09-151-0/+4
| | |
* | | GDScript: Show error on unary operators without argumentGeorge Marques2021-09-151-0/+12
|/ /
* | GDScript: Allow string keys on Lua-style dictionariesGeorge Marques2021-09-151-3/+12
| | | | | | | | | | Which is useful when the key isn't a valid identifier, such as keys with spaces or numeric keys.
* | Merge pull request #52068 from ThreeRhinosInAnElephantCostume/fixgdscriptRémi Verschelde2021-09-131-3/+20
|\ \ | | | | | | Fix parse error on statement-less files with only newlines, add a warning for empty files.
| * | Fix error on parsing statement-less GDScript files,ThreeRhinosInAnElephantCostume2021-09-111-3/+20
| | | | | | | | | | | | | | | add an empty file warning, add relevant tests.
* | | GDScript: Removed spurious UNASSIGNED_VARIABLE warning for localsZuBsPaCe2021-09-101-2/+6
| | | | | | | | | | | | | | | | | | Variable->assignment needs to be incremented when assigned a value. Also fixed and improved unit test 'variable_declaration.gd'. Fixes #52551
* | | Merge pull request #52063 from KoBeWi/double_comma_of_doomGeorge Marques2021-09-101-2/+4
|\ \ \ | | | | | | | | Fix crash with consecutive commas in Dictionary
| * | | Fix crash with consecutive commas in Dictionarykobewi2021-09-101-2/+4
| | | |
* | | | Merge pull request #51593 from KoBeWi/ifGeorge Marques2021-09-101-1/+3
|\ \ \ \ | |/ / / |/| | | Prevent crash when awaiting in a getter/setter
| * | | Prevent crash when awaiting in a getter/setterkobewi2021-08-131-1/+3
| | | |
* | | | Merge pull request #52081 from ThreeRhinosInAnElephantCostume/fixmatchfreezeGeorge Marques2021-09-101-43/+42
|\ \ \ \ | | | | | | | | | | Fix gdscript pattern matching expressions
| * | | | Added tests for expression matchingThreeRhinosInAnElephantCostume2021-09-031-1/+2
| | | | |
| * | | | Fixed pattern matching with expressionsThreeRhinosInAnElephantCostume2021-08-251-43/+41
| | |/ / | |/| |
* | | | [Net] Move multiplayer to core subdir, split RPCManager.Fabio Alessandrelli2021-09-071-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move multiplayer classes to "core/multiplayer" subdir. Move the RPCConfig and enums (TransferMode, RPCMode) to a separate file (multiplayer.h), and bind them to the global namespace. Move the RPC handling code to its own class (RPCManager). Renames "get_rpc_sender_id" to "get_remote_sender_id".
* | | | [GDScript] [Net] Allow mixing rpc annotation paramters.Fabio Alessandrelli2021-08-301-21/+15
| | | | | | | | | | | | | | | | | | | | | | | | The strings no longer needs to be in order. The last parameter (channel), still requires all the other parameters to be present.
* | | | [Net] Rename RPC "puppet" to "auth" (authority). Drop "master".Fabio Alessandrelli2021-08-301-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit completely removes the RPC_MODE_MASTER ("master" keyword), and renames the RPC_MODE_PUPPET to RPC_MODE_AUTHORITY ("auth" keyword). This commit also renames the "Node.[get|set]_network_master" methods to "Node.[get|set]_network_authority". This commit also renames the RPC_MODE_REMOTE constant to RPC_MODE_ANY. RPC_MODE_MASTER in Godot 3.x meant that a given RPC would be callable by any puppet peer on the master, while RPC_MODE_PUPPET meant that it would be callable by the master on any puppet. Beside proving to be very confusing to the user (referring to where it could be called instead of who can call it) the RPC_MODE_MASTER is quite useless. It is almost the same as RPC_MODE_REMOTE (anyone can call) with the exception that the network master cannot. While this could be useful to check in some case, in such a function you would anyway need to check in code who is the caller via get_rpc_sender_id(), so adding the check there for those rare cases does not warrants a dedicated mode.
* | | | Print error message when await is not followed by signal or coroutineWilliam Deurwaarder2021-08-281-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When await was not followed by a signal or coroutine the GDScript parser would crash. This fix will check if await is followed by a signal or coroutine in case that isn't true (element == nullptr) then an error message is printed.
* | | | Fixed crash when parsing an empty assignment.Louis Dumont2021-08-251-0/+3
|/ / / | | | | | | | | | Resolves #51620.
* | | Merge pull request #51971 from aaronfranke/httpsMax Hilbrunner2021-08-231-1/+1
|\ \ \ | | | | | | | | Replace HTTP URLs with HTTPS for sites with HTTPS versions
| * | | Replace HTTP links with HTTPS for sites with HTTPS versionsAaron Franke2021-08-221-1/+1
| | |/ | |/|
* / | Remove redundant assignments.Anilforextra2021-08-211-1/+0
|/ / | | | | | | Use used_in_transfer instead of used_in_compute twice.
* | Remove underscore hacksMax Hilbrunner2021-08-171-37/+2
| | | | | | | | | | | | Way less cruft. :) Co-authored-by: Ignacio Roldán Etcheverry <neikeq@users.noreply.github.com>
* | Reorganise text editor settingsPaulb232021-08-161-1/+1
|/
* Fix crash when parsing Dictionarykobewi2021-08-101-1/+3
|
* [Net] Default @rpc annotation should be puppet, not master.Fabio Alessandrelli2021-08-061-1/+1
|
* Use const references where possible for List range iteratorsRémi Verschelde2021-07-251-5/+5
|