summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_compiler.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge pull request #69590 from anvilfolk/enumsRémi Verschelde2023-01-091-1/+1
|\ \ | | | | | | | | | GDScript enum fixes & refactor
| * | Assorted enum and native type fixesocean (they/them)2023-01-091-1/+1
| |/
* / GDScript: Don't use the NIL address to hold return value of functionsGeorge Marques2023-01-091-22/+24
|/ | | | | This prevents that the NIL address is filled with another value, which causes problems for some instructions that read from NIL.
* GDScript: Fix array as default value for parameterDmitrii Maganov2023-01-061-1/+12
|
* Unify typing of variables, constants and parameters in GDScriptDmitrii Maganov2023-01-061-3/+3
|
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* Merge pull request #70702 from vnen/gdscript-error-on-assign-voidRémi Verschelde2023-01-031-14/+14
|\ | | | | | | GDScript: Error when assigning return value of void function
| * GDScript: Error when assigning return value of void functionGeorge Marques2022-12-301-14/+14
| | | | | | | | | | This also makes built-in method calls empty the return value when the method is void, to avoid keeping returning a garbage value in such case.
* | Merge pull request #70503 from rune-scape/inner-class-docsRémi Verschelde2023-01-031-4/+4
|\ \ | | | | | | | | | Inner classes get their docs back
| * | Inner classes get their docs backrune-scape2022-12-231-4/+4
| | |
* | | Fix usage of Enum as constantDmitrii Maganov2022-12-281-13/+7
| |/ |/|
* | Merge pull request #69991 from rune-scape/cast-typeRémi Verschelde2022-12-231-12/+17
|\ \ | |/ |/| | | GDScript: Fix cast producing null
| * GDScript: Fix cast producing nullrune-scape2022-12-121-12/+17
| |
* | GDScript: Fix built-in script and other `find_class` bugsrune-scape2022-12-151-3/+2
| |
* | GDScript: Allow out of order member resolutionrune-scape2022-12-141-0/+1
| |
* | Add GDScript member initializer implicit type conversionocean (they/them)2022-12-111-0/+15
|/
* Merge pull request #69467 from rune-scape/rune-subclass-script-pathRémi Verschelde2022-12-101-2/+2
|\ | | | | GDScript: Fix subclass script path issues
| * GDScript: Fix subclass script path issuesrune-scape2022-12-011-2/+2
| |
* | Merge pull request #68747 from rune-scape/rune-stringname-unificationRémi Verschelde2022-12-091-0/+21
|\ \ | | | | | | | | | GDScript: Unify StringName and String
| * | Unify String and StringNamerune-scape2022-12-051-0/+21
| | |
* | | Fix incomplete shadowing of member properties by parametersDmitrii Maganov2022-12-061-3/+7
|/ /
* / Reset unassigned local variables to null in the loopsYuri Rubinsky2022-11-281-0/+9
|/
* Fix cyclic reference base being loaded but not valid (which is ok)Adam Scott2022-11-271-1/+1
|
* Fix cyclic references in GDScript 2.0Adam Scott2022-11-181-7/+34
|
* GDScript Compiler: regression fixRune2022-11-151-0/+1
|
* GDScript compiler subclass bugfixesRune2022-11-131-180/+136
|
* Fix named enums to use int64 typeYuri Rubinsky2022-11-081-2/+1
|
* Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-52/+52
| | | | change warnings=all to use /W4.
* Remove redundant "if" condition in GDScriptCompiler::_parse_function()Andy Maloney2022-09-241-1/+1
| | | | Looking at the original PR, I believe this is the original intent, but it now means that previously dead code is now executed.
* [Net] Modularize multiplayer, expose MultiplayerAPI to extensions.Fabio Alessandrelli2022-07-261-1/+1
| | | | | | | | | - RPC configurations are now dictionaries. - Script.get_rpc_methods renamed to Script.get_rpc_config. - Node.rpc[_id] and Callable.rpc now return an Error. - Refactor MultiplayerAPI to allow extension. - New MultiplayerAPI.rpc method with Array argument (for scripts). - Move the default MultiplayerAPI implementation to a module.
* Check for parameters shadowing class memberscdemirer2022-07-181-1/+1
|
* Add grouping annotations for class properties in GDScriptYuri Sizov2022-07-051-0/+19
|
* Fix set chain bug with jump_if_sharedcdemirer2022-06-281-10/+10
|
* Merge pull request #62462 from vnen/gdscript-setter-chainingRémi Verschelde2022-06-271-19/+47
|\ | | | | GDScript: Fix setter being called in chains for shared types
| * GDScript: Fix setter being called in chains for shared typesGeorge Marques2022-06-271-19/+47
| | | | | | | | | | | | | | | | | | | | | | When a type is shared (i.e. passed by reference) it doesn't need to be called in a setter chain (e.g. `a.b.c = 0`) since it will be updated in place. This commit adds an instruction that jumps when the value is shared so it can be used to skip those cases and avoid redundant calls of setters. It also solves issues when assigning to sub-properties of read-only properties.
* | GDScript: Use implicit method for @onready variablesGeorge Marques2022-06-241-13/+14
| | | | | | | | | | | | Initialize them with the implicit method so they're not related to the overriding of the `_ready` method of the script but instead are always set.
* | GDScript: Don't add implicit constructor to the list of functionsGeorge Marques2022-06-241-1/+5
|/ | | | | So it's not shown on docs or when listing the methods. This also avoids being able to call it using the `call()` function.
* Make enum/constant binds 64-bit.bruvzg2022-06-171-1/+1
|
* Merge pull request #57151 from cdemirer/fix-match-array-dict-pattern-logic-errorGeorge Marques2022-06-141-49/+44
|\ | | | | Fix logic errors in match-statement Array & Dictionary patterns
| * Fix logic errors in match-statement Array & Dictionary Patternscdemirer2022-03-021-49/+44
| |
* | GDScript: Support `%` in shorthand for `get_node`George Marques2022-05-271-13/+1
| | | | | | | | | | | | The `%` is used in scene unique nodes. Now `%` can also be used instead of `$` for the shorthand, besides being allowed generally anywhere in the path as the prefix for a node name.
* | Fix crash when extending inner class in GDScriptYuri Rubinsky2022-05-181-8/+37
| |
* | Replace most uses of Map by HashMapreduz2022-05-161-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | * Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
* | Add a new HashMap implementationreduz2022-05-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a new, cleaned up, HashMap implementation. * Uses Robin Hood Hashing (https://en.wikipedia.org/wiki/Hash_table#Robin_Hood_hashing). * Keeps elements in a double linked list for simpler, ordered, iteration. * Allows keeping iterators for later use in removal (Unlike Map<>, it does not do much for performance vs keeping the key, but helps replace old code). * Uses a more modern C++ iterator API, deprecates the old one. * Supports custom allocator (in case there is a wish to use a paged one). This class aims to unify all the associative template usage and replace it by this one: * Map<> (whereas key order does not matter, which is 99% of cases) * HashMap<> * OrderedHashMap<> * OAHashMap<>
* | Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`Hugo Locurcio2022-05-031-1/+1
| | | | | | | | | | | | These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.
* | GDScript: Allow using self in lambdasGeorge Marques2022-04-241-1/+1
| |
* | GDScript: Fix method call on singletonsGeorge Marques2022-04-081-1/+3
| |
* | GDScript: Add support for static method calls in native typesGeorge Marques2022-04-061-0/+3
| |
* | Merge pull request #56830 from strank/parent-signalsRémi Verschelde2022-03-041-9/+14
|\ \
| * | Fix "Identifier not found" compiler error when accessing inherited signals ↵strank2022-02-111-9/+14
| |/ | | | | | | or functions as callables.