summaryrefslogtreecommitdiff
path: root/modules/gdscript/gdscript_compiler.cpp
AgeCommit message (Collapse)Author
2023-03-13GDScript: Fix checking if a call is awaited in compilerDmitrii Maganov
(cherry picked from commit 55a2ad25bf1591876032150cffff7b7c68dcaa17)
2023-02-26Merge pull request #73915 from vonagam/fix-conversions-from-native-memberRémi Verschelde
GDScript: Fix conversions from native members accessed by identifier
2023-02-26Merge pull request #73964 from vonagam/fix-coroutine-compiler-typeRémi Verschelde
GDScript: Fix address type for coroutine results
2023-02-26Merge pull request #73899 from vnen/gdscript-init-defaults-beforehandRémi Verschelde
GDScript: Initialize all defaults beforehand in implicit constructor
2023-02-26GDScript: Fix address type for coroutine resultsDmitrii Maganov
2023-02-25Revert "GDScript: Fix groups and categories been seen as members"George Marques
This reverts commit 6f2a8434c675b3df2aceca4e5200aaf799eeb2bd. The commit introduces a bug where it creates spurious entries for member information.
2023-02-25GDScript: Fix conversions from native members accessed by identifierDmitrii Maganov
2023-02-24GDScript: Initialize all defaults beforehand in implicit constructorGeorge Marques
Set all the default values for typed variables before actually trying to initialize them, including `@onready` ones. This ensures that if validated calls are being used there will be a value of the correct type, even if the resolution is done out of order or deferred because of `@onready`.
2023-02-24GDScript: Fix groups and categories been seen as membersGeorge Marques
2023-02-21GDScript: Fix setting native type with script inheritanceGeorge Marques
Sometimes the inheritance tree is compiled out of order and the base don't have yet a native type set. This is now changed to not rely on the base script but use the native type set in the datatype, which is already resolved by the analyzer.
2023-02-17GDScript: Rework type checkDmitrii Maganov
2023-02-15Add return type for GDScript gettersocean (they/them)
2023-02-07Revert "Remove script class checks when getting function signature"Rémi Verschelde
This reverts commit 0fef203b1f39c3373f9f25b8e75e75f6b03f7c88. This introduced some other issues, as discussed in #72144.
2023-02-07Remove script class checks when getting function signatureAdam Scott
2023-01-31GDScript: Allow void functions to return calls to other void functionsGeorge Marques
2023-01-31GDScript: Fix issues with typed arraysDmitrii Maganov
2023-01-30GDScript: Fix vararg method calls with exact argumentsDmitrii Maganov
2023-01-23Merge pull request #70948 from vnen/gdscript-ptr-method-name-in-debugGeorge Marques
2023-01-23GDScript: Add names for disassembling function pointersGeorge Marques
When instructions use function pointers, it's not possible to retrieve their original names in the disassembly. This stores the names in vectors (in debug builds) so they can be shown.
2023-01-22GDScript: Remove function of `continue` for match statementGeorge Marques
The keyword is confusing and rarely is used in the intended way. It is removed now in favor of a future feature (pattern guards) to avoid breaking compatibility later.
2023-01-15Fix cyclic reference errors while reducing identifiers.Adam Scott
Co-authored-by: Dmitrii Maganov <vonagam@gmail.com>
2023-01-12Merge pull request #70987 from vonagam/fix-parameter-conversion-assignGeorge Marques
2023-01-09Merge pull request #69590 from anvilfolk/enumsRémi Verschelde
GDScript enum fixes & refactor
2023-01-09Assorted enum and native type fixesocean (they/them)
2023-01-09GDScript: Don't use the NIL address to hold return value of functionsGeorge Marques
This prevents that the NIL address is filled with another value, which causes problems for some instructions that read from NIL.
2023-01-06GDScript: Fix missing conversion for default argument valuesDmitrii Maganov
2023-01-06GDScript: Fix array as default value for parameterDmitrii Maganov
2023-01-06Unify typing of variables, constants and parameters in GDScriptDmitrii Maganov
2023-01-05One Copyright Update to rule them allRémi Verschelde
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".
2023-01-03Merge pull request #70702 from vnen/gdscript-error-on-assign-voidRémi Verschelde
GDScript: Error when assigning return value of void function
2023-01-03Merge pull request #70503 from rune-scape/inner-class-docsRémi Verschelde
Inner classes get their docs back
2022-12-30GDScript: Error when assigning return value of void functionGeorge Marques
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.
2022-12-28Fix usage of Enum as constantDmitrii Maganov
2022-12-23Inner classes get their docs backrune-scape
2022-12-23Merge pull request #69991 from rune-scape/cast-typeRémi Verschelde
GDScript: Fix cast producing null
2022-12-15GDScript: Fix built-in script and other `find_class` bugsrune-scape
2022-12-14GDScript: Allow out of order member resolutionrune-scape
2022-12-12GDScript: Fix cast producing nullrune-scape
2022-12-11Add GDScript member initializer implicit type conversionocean (they/them)
2022-12-10Merge pull request #69467 from rune-scape/rune-subclass-script-pathRémi Verschelde
GDScript: Fix subclass script path issues
2022-12-09Merge pull request #68747 from rune-scape/rune-stringname-unificationRémi Verschelde
GDScript: Unify StringName and String
2022-12-05Unify String and StringNamerune-scape
2022-12-06Fix incomplete shadowing of member properties by parametersDmitrii Maganov
2022-12-01GDScript: Fix subclass script path issuesrune-scape
2022-11-28Reset unassigned local variables to null in the loopsYuri Rubinsky
2022-11-27Fix cyclic reference base being loaded but not valid (which is ok)Adam Scott
2022-11-18Fix cyclic references in GDScript 2.0Adam Scott
2022-11-15GDScript Compiler: regression fixRune
2022-11-13GDScript compiler subclass bugfixesRune
2022-11-08Fix named enums to use int64 typeYuri Rubinsky