summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_compiler.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
| * Fix type mutation upon compound assignmentcdemirer2021-12-271-5/+7
| |
* | Merge pull request #56287 from ↵Rémi Verschelde2022-01-101-18/+14
|\ \ | | | | | | | | | cdemirer/fix-member-property-only-getter-cant-be-set
| * | Fix member properties with only getters can't be setcdemirer2021-12-281-18/+14
| |/
* | Merge pull request #56288 from ↵Rémi Verschelde2022-01-101-7/+32
|\ \ | | | | | | | | | cdemirer/fix-member-property-getter-dont-update-subscript-chain-root
| * | Fix member properties with getters don't update as subscript chain rootcdemirer2021-12-281-7/+32
| |/
* | Fix leak when function returning self typeGer Hean2022-01-101-1/+1
| | | | | | | | Leak is caused by cyclic reference
* | Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
|/ | | | Happy new year to the wonderful Godot community!
* Replace String comparisons with "", String() to is_empty()Nathan Franke2021-12-091-4/+4
| | | | | | Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
* GDScript: Make sure calls don't use return when not neededGeorge Marques2021-10-141-4/+7
|
* GDScript: Report property type errorsZuBsPaCe2021-10-081-64/+5
| | | | | | | | | 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
* GDScript fix wrong base class assignmentBrian Semrau2021-10-041-1/+3
|
* GDScript: Fix member assignment with operationGeorge Marques2021-10-041-8/+15
| | | | | It was wrongly updating the assigned value with the result of the operation.
* Use range iterators for `Map`Lightning_A2021-09-301-4/+4
|
* GDScript: Fix assignment with operation for propertiesGeorge Marques2021-09-291-15/+21
|
* Merge pull request #49765 from ↵George Marques2021-09-151-1/+1
|\ | | | | | | | | Blackiris/fix-assignment-with-operator-on-type-member Fix assignment with operator on type member
| * Fix assignment with operator on type memberJulien Nguyen2021-08-211-1/+1
| |
* | GDScript: Allow string keys on Lua-style dictionariesGeorge Marques2021-09-151-1/+1
| | | | | | | | | | Which is useful when the key isn't a valid identifier, such as keys with spaces or numeric keys.
* | Merge pull request #52323 from vnen/gdscript-singleton-interdependence-fixRémi Verschelde2021-09-131-3/+16
|\ \ | | | | | | Fix loading of interdependent autoloads
| * | GDScript: Fix loading of interdependent autoloadsGeorge Marques2021-09-011-3/+16
| |/ | | | | | | | | | | Move the autoload resolution to runtime by loading it into the stack with an extra instruction. This allows an autoload to use another autoload singleton independent of load order.
* | [Net] Move multiplayer to core subdir, split RPCManager.Fabio Alessandrelli2021-09-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | 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".
* | Check for GDScript member and class naming conflicts in a variety of conditions.SaracenOne2021-09-021-22/+7
|/
* GDScript: Fix memory leak when using self class as typeGeorge Marques2021-08-181-2/+1
|
* Fix infinite loop when creating a newly inherited GdScript fileJulien Nguyen2021-08-091-1/+1
|
* Use const references where possible for List range iteratorsRémi Verschelde2021-07-251-1/+1
|
* Use C++ iterators for Lists in many situationsAaron Franke2021-07-231-2/+1
|
* [Net] Single `rpc` annotation. "sync" no longer part of mode.Fabio Alessandrelli2021-07-201-5/+4
| | | | | | | | | | | | | | | | - Move the "sync" property for RPCs to RPCConfig. - Unify GDScript annotations into a single one: - `@rpc(master)` # default - `@rpc(puppet)` - `@rpc(any)` # former `@remote` - Implement three additional `@rpc` options: - The second parameter is the "sync" option (which also calls the function locally when RPCing). One of "sync", "nosync". - The third parameter is the transfer mode (reliable, unreliable, ordered). - The third parameter is the channel (unused for now).
* Rename `instance()`->`instantiate()` when it's a verbLightning_A2021-06-191-1/+1
|
* Rename Reference to RefCountedPedro J. Estébanez2021-06-111-1/+1
|
* Fix regression from 160c260 causing export of non-@export properties.Lyuma2021-06-101-2/+3
|
* Merge pull request #49067 from JFonS/fix_gcc_warningsRémi Verschelde2021-06-011-1/+1
|\ | | | | Fix some warnings raised by GCC-11.1
| * Fix some warnings raised by GCC-11.1jfons2021-05-251-1/+1
| |
* | GDScript: Use analyzer data to decide assignment conversionGeorge Marques2021-05-261-3/+15
|/ | | | | | | Since there might be tricky cases in the analyzer (in the case of unsafe lines) which would need to be properly checked again. Instead, this splits the code generator in two functions and use information set by the analyzer to tell which function to use, without a need to re-check.
* Merge pull request #48347 from Blackiris/fix-temporary-key-not-releasedGeorge Marques2021-05-171-0/+3
|\ | | | | GDScript: Fix temporary value not released when used as a dictionary key
| * Fix temporary value not released when used as a dictionary keyJulien Nguyen2021-05-061-0/+3
| |
* | GDScript: Add support for builtin static method callsGeorge Marques2021-05-161-27/+32
|/
* GDScript: Implement lambdas compilation and runtimeGeorge Marques2021-04-281-23/+66
|
* GDScript: Make sure Lua-style dicts use StringName as keysGeorge Marques2021-04-231-2/+2
|
* GDScript: Fix resolution of dictionary keysGeorge Marques2021-04-231-2/+2
| | | | | | There was a mixup between String and StringName keys. Now they're clearly separated. This also means you have to consider which type you're using for the dictionary keys and how you are accessing them.
* GDScript: Pool temporary values by type on the stackGeorge Marques2021-04-141-2/+2
| | | | | So the stack slots perform less type changes, which is useful for future optimizations.
* Reduce number of addressing modes in GDScript VMGeorge Marques2021-04-081-3/+6
| | | | | | | | | | | | | | There's now only 3 addressing modes: stack, constant, and member. Self, class, and nil are now present respectively in the first 3 stack slots. Global and class constants are moved to local constants when compiling. Named globals is only present on editor to use on tool singletons, so its use now emits a new instruction to copy the global to the stack. This allow us to further optimize the VM later by embedding the addressing modes in the instructions themselves, which is better done with less permutations.
* Fix stack overflow in setterJulien Nguyen2021-04-061-0/+2
|
* Fix GDScript variables addresses getting mixedJulien Nguyen2021-04-041-0/+4
|
* GDScript: Allow export of enum variablesGeorge Marques2021-03-301-7/+2
| | | | Also fix the enum type in variables to be integer.
* Add typed arrays to GDScriptGeorge Marques2021-03-291-6/+48
| | | | | | | | - Use `Array[type]` for type-hints. e.g.: `var array: Array[int] = [1, 2, 3]` - Array literals are typed if their storage is typed (variable asssignment of as argument in function all). Otherwise they are untyped.
* Merge pull request #46936 from DavidSichma/match_temp_headerRémi Verschelde2021-03-141-4/+4
|\ | | | | Fixed match test expression for temporaries
| * Fixed match test expression for temporariesDavid Sichma2021-03-121-4/+4
| | | | | | | | | | Fixed that a potentially popped temporary was used for the value in match statements.
* | Fixes small typos and grammar correctionAnshul7sp12021-03-121-1/+1
|/
* Fixed match for expression patternDavid Sichma2021-03-021-1/+1
| | | | equality comparison now writes to right target address
* false positive "Identifier not found" error or signals fixedThakee Nathees2021-02-241-22/+45
|
* Merge pull request #44104 from nekomatata/coroutine-await-fixRémi Verschelde2021-01-111-2/+10
|\ | | | | Fix error when calling coroutine with await in _ready