summaryrefslogtreecommitdiff
path: root/modules/gdscript
AgeCommit message (Collapse)Author
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
2023-02-17Avoid GDScript bookkeeping from referencing objects longer than necessaryPedro J. Estébanez
2023-02-17GDScript: Rework type checkDmitrii Maganov
2023-02-17Fix inability to assign null regressionocean (they/them)
Co-authored-by: Dmitry Maganov <vonagam@gmail.com>
2023-02-17Merge pull request #72867 from vnen/gdscript-limit-call-depthYuri Sizov
GDScript: Add limit to call depth
2023-02-17Merge pull request #72925 from vonagam/fix-enum-typed-array-errorYuri Sizov
GDScript: Fix error about enum typed arrays
2023-02-17Merge pull request #73398 from anvilfolk/fix-getterRémi Verschelde
Fix unset getter return types resulting in strange behavior
2023-02-17Merge pull request #73364 from anvilfolk/fix-freedRémi Verschelde
Fix crash by freed object assign to typed variable
2023-02-16Fix crash by freed object assign to typed variableocean (they/them)
2023-02-16GDScript: Fix infer on read-only propertyDmitrii Maganov
2023-02-15Add return type for GDScript gettersocean (they/them)
2023-02-14GDScript: Fix default value of exported enum variableDanil Alexeev
2023-02-14GDScript: Fix missing unsafety mark for binary op with weak variablesDmitrii Maganov
2023-02-14Tweak `@GlobalScope` & `GDScript`'s documentationMicky
2023-02-13GDScript: Fix usage of ints with typed array of floatsDmitrii Maganov
2023-02-13Revert "Fixed the jumping to function definition using 'Ctrl+LMB'."Rémi Verschelde
This reverts commit 7eb6367d5cb62fb48563ad940423198f792e3fe8. Fixes #73058. Fixes #73167. This caused regressions, we'll retry with fixes for 4.1.
2023-02-12Improve GDScript error for method call on null/previously freed instancepkowal
Fixes #53878.
2023-02-11Merge pull request #73033 from akien-mga/gdscript-fix-gd4-renames-buildRémi Verschelde
Clean up ProjectConverter3To4 architecture, move renames map to separate file
2023-02-11Merge pull request #72654 from RandomShaper/ptrcall_ret_raw_objRémi Verschelde
Avoid losing references to objects in the native-scripting boundary
2023-02-10Clean up ProjectConverter3To4 architecture, move renames map to separate fileRémi Verschelde
This allows properly limiting what features depend on the RegEx module (doing the actual conversion) and what features only require the renames data (GDScript suggestions). Also better excludes the conversion command line options when actually disabling deprecated code. Fixes #73029.
2023-02-10GDScript: Remove `treat_warnings_as_errors` project settingDanil Alexeev
2023-02-09Merge pull request #72971 from vnen/gdscript-multiline-commentRémi Verschelde
GDScript: Allow strings as multiline comments
2023-02-09Merge pull request #72975 from vnen/gdscript-no-ascii-spoof-checkRémi Verschelde
GDScript: Be more lenient with identifiers
2023-02-09GDScript: Be more lenient with identifiersGeorge Marques
- Allow identifiers similar to keywords if they are in ASCII range. - Allow constants to be treated as regular identifiers. - Allow keywords that can be used as identifiers in expressions.
2023-02-09GDScript: Allow strings as multiline commentsGeorge Marques
Bring back the behavior in 3.x that was left out by oversight.
2023-02-09Merge pull request #69550 from Rindbee/fix-script-editor-not-reload-via-lspRémi Verschelde
Fix internal editor not updating when using external editor via LSP