summaryrefslogtreecommitdiff
path: root/modules/gdscript
AgeCommit message (Collapse)Author
2023-04-03Fix typo and slightly reword in @GDScript.xmlAraraura
Fix "the every following property" to "then every following property" and change "is added" to "will be added". (cherry picked from commit e1c0df70485266e0385aed4962934bb26cb325e9)
2023-03-30GDScript: Fix false positive `REDUNDANT_AWAIT` warningDanil Alexeev
(cherry picked from commit c0eeb32e38fbd4f582f7a2726e6535614e507205)
2023-03-27Improve Color8 documentationHugo Locurcio
This documents in which situations Color8 is most suited and its precision limitations. (cherry picked from commit 4e4555bea56fd9fd0734b0d6d0800977f9976b95)
2023-03-27Make GDScript number highlighting stricterVolTer
(cherry picked from commit 952703d92155226137fc4bb53c61c8dbc7887ed7)
2023-03-14GDScript: Fix autocomplete inside a block with a type test conditionDmitrii Maganov
(cherry picked from commit e289a4ab2c404991d684b6c77b65d24f41be5b63)
2023-03-14Fix error spam when naming a func at the end of the scriptVolTer
(cherry picked from commit 07dd627728b71dd3ea30bab9761a847a7e0c911e)
2023-03-13GDScript: Fix checking if a call is awaited in compilerDmitrii Maganov
(cherry picked from commit 55a2ad25bf1591876032150cffff7b7c68dcaa17)
2023-03-13Fix GDScript code style regarding colonDanil Alexeev
(cherry picked from commit ea5fd3d732a85029e8372425904971ad26153ff1)
2023-03-13Prevent cache corruption when saving resources in the editorYuri Sizov
(cherry picked from commit 496bd94c21dbda01fc7d9d0a108eecef21924024)
2023-02-28Minor typo and docs URL fixesRémi Verschelde
2023-02-26Remove unused `ScriptLanguage` methodsvoidedWarranties
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 #73957 from vonagam/fix-binary-op-safetyRémi Verschelde
GDScript: Fix wrong unsafety mark for binary operator
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-26GDScript: Fix wrong unsafety mark for binary operatorDmitrii 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: Don't use validated call for vararg methodsGeorge Marques
Since they may have runtime type validation, we cannot use the validated call.
2023-02-24Fixup GDScript test using non-deterministic idsRémi Verschelde
Follow-up to #73870.
2023-02-24Merge pull request #73870 from vnen/gdscript-dont-reference-group-propertiesRémi Verschelde
GDScript: Fix groups and categories been seen as members
2023-02-24GDScript: Fix groups and categories been seen as membersGeorge Marques
2023-02-24GDScript: Fix range regressionDmitrii Maganov
2023-02-23Merge pull request #73798 from vonagam/fix-bad-continue-in-lambdaRémi Verschelde
GDScript: Fix parsing unexpected break/continue in lambda
2023-02-23GDScript: Fix parsing unexpected break/continue in lambdaDmitrii Maganov
2023-02-23GDScript: Fix usage of enum value as range argumentDmitrii Maganov
2023-02-22Document `@GDScript.is_instance_of` methodDanil Alexeev
2023-02-21Merge pull request #73709 from vonagam/fix-error-message-unfound-typeRémi Verschelde
GDScript: Fix error message for unfound type
2023-02-21Merge pull request #73705 from anvilfolk/doublewoopsieRémi Verschelde
Added check for null objects in gdscript typed assign.
2023-02-21Merge pull request #73689 from vnen/gdscript-fix-inheritance-native-classRémi Verschelde
GDScript: Fix setting native type with script inheritance
2023-02-21GDScript: Fix error message for unfound typeDmitrii Maganov
2023-02-21Added check for null objects in gdscript typed assign.ocean (they/them)
2023-02-21Merge pull request #73693 from vnen/gdscript-fix-script-signature-checkRémi Verschelde
GDScript: Fix override signature check of script inheritance
2023-02-21Merge pull request #73680 from vnen/gdscript-div-by-zero-crash-fixRémi Verschelde
GDScript: Avoid validated division operation to test for zero
2023-02-21GDScript: Fix override signature check of script inheritanceGeorge Marques
Avoid treating the super class as a meta type for signature check, since it is looking at the instance level for that.
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-21GDScript: Avoid validated division operation to test for zeroGeorge Marques
The validated operations for integer division and modulo do not check for division by zero. This avoids validated operation in these cases to make sure the check is performed and avoid crashing the engine.
2023-02-21GDScript: Fix crash when autoload script can't be foundGeorge Marques
2023-02-20Add test for const class referencesmashumafi
2023-02-20GDScript: Limit recursion depth for completion functionsGeorge Marques
Avoid crashing if the completion gets stuck in infinite recursion while trying to guess the expression type.
2023-02-20Merge pull request #73590 from vnen/gdscript-global-scope-enumsRémi Verschelde
Make global scope enums accessible as types in GDScript
2023-02-20Merge pull request #73544 from mashumafi/fix-func-arg-nullRémi Verschelde
Fix: Func with typed args error when arg is null
2023-02-20Merge pull request #73489 from vonagam/type-check-nodeRémi Verschelde
GDScript: Rework type check
2023-02-20Merge pull request #73291 from vonagam/fix-unsafe-weak-binopRémi Verschelde
GDScript: Fix missing unsafety mark for binary op with weak variables
2023-02-19Fix: Func with typed args error when arg is nullmashumafi
2023-02-19Make global scope enums accessible as types in GDScriptGeorge Marques
Add functions to CoreConstant so enums can be properly deduced. Also add the enums in release builds to make consistent with ClassDB enums and avoid differences in script compilation between debug and release.
2023-02-18Merge pull request #73501 from anvilfolk/oopsiedaisyYuri Sizov
Fix inability to assign null regression
2023-02-17Merge pull request #73448 from RandomShaper/fix_sticky_stackYuri Sizov
Avoid GDScript bookkeeping from referencing objects longer than necessary