summaryrefslogtreecommitdiff
path: root/modules/gdscript
AgeCommit message (Collapse)Author
2022-02-23Merge pull request #58244 from V-Sekai/typed_fail_case_returnRémi Verschelde
2022-02-23Merge pull request #58415 from V-Sekai/cyclic_assignment_gdscript_fixesRémi Verschelde
2022-02-22Rename motion_velocity to velocityChris Bradfield
2022-02-22Fixes cyclic detection from variables assigning themselves to themselves in ↵SaracenOne
autocomplete, and restricts initialization of variables from other variables which have not been declared above it in class body
2022-02-18Make 'is_attribute' false during parse error to prevent crashSaracenOne
2022-02-17Return a correctly typed variant in case of a function error to prevent hard ↵SaracenOne
crashes
2022-02-16Convert _notification methods to switch - Chunk CJakob Bouchard
2022-02-15Add an XML schema for documentationHugo Locurcio
This makes it easier to spot syntax errors when editing the class reference. The schema is referenced locally so validation can still work offline. Each class XML's schema conformance is also checked on GitHub Actions.
2022-02-12Improve compilation speed (forward declarations/includes cleanup)Hendrik Brucker
2022-02-08Refactor some object type checking code with `cast_to`Rémi Verschelde
Less stringly typed logic, and less String allocations and comparisons.
2022-02-07[Net] Add type check to GDScriptRPCCallable.Fabio Alessandrelli
It will print an error when using an RPC defined on an object which does not extend Node.
2022-02-07[Net] Implement GDScript custom RPC callable.Fabio Alessandrelli
2022-02-07Merge pull request #57748 from fabriceci/rename-script-template-variableRémi Verschelde
2022-02-07rename jump force to jump velocityfabriceci
2022-02-07Add some more fixes to visual shaderYuri Roubinsky
2022-02-04Highlight "namespace" as a GDScript keyword in the syntax highlighterHugo Locurcio
Like "trait" and "yield", "namespace" is currently not implemented but is still reserved for future use.
2022-02-04Merge pull request #57591 from vnen/gdscript-enum-fixesRémi Verschelde
2022-02-04Cleanup and move char functions to the `char_utils.h` header.bruvzg
2022-02-04String: Add contains().Anilforextra
2022-02-03GDScript: Treat enum values as int and enum types as dictionaryGeorge Marques
Since enums resolve to a dictionary at runtime, calling dictionary methods on an enum type is a valid use case. This ensures this is true by adding test cases. This also makes enum values be treated as ints when used in operations.
2022-02-03GDScript: Allow tests to run on release buildsGeorge Marques
- Fix compilation issues by disabling warnings on release builds. This also strips warnings from expected result before the comparison to avoid false mismatches. - Add a `#debug-only` flag to tests. Must be the first line of the test script. Those won't run with release builds. Can be used for test cases that rely on checks only available on debug builds.
2022-02-03GDScript: Consolidate behavior for assigning enum typesGeorge Marques
This makes sure that assigning values to enum-typed variables are consistent. Same enum is always valid, different enum is always invalid (without casting) and assigning `int` creates a warning if there is no casting. There are new test cases to ensure this behavior doesn't break in the future.
2022-01-30Add support for the escaped UTF-16 and UTF-32 Unicode characters in the ↵bruvzg
scripts and expressions.
2022-01-27Merge pull request #57205 from TechnoPorg/variant-template-castRémi Verschelde
Allow method binds to take Object subclasses as arguments
2022-01-27Merge pull request #57281 from Rubonnek/rename-subsequenceRémi Verschelde
2022-01-26Rename String::is_subsequence_ofi to String::is_subsequence_ofnWilson E. Alvarez
2022-01-26Fix crash with non-constant keys in match statement Dictionary patterncdemirer
2022-01-25Allow method binds to take Object subclasses as argumentsTechnoPorg
This commit adds a condition to VariantCaster that casts Variants of type OBJECT to any type T, if T is derived from Object. This change enables a fair bit of code cleanup. First, the Variant implicit cast operators for Node and Control can be removed, which allows for some invalid includes to be removed. Second, helper methods in Tree whose sole purpose was to cast arguments to TreeItem * are no longer necessary. A few small changes also had to be made to other files, due to the changes cascading down all the includes.
2022-01-22GDScript cache crashfix.K. S. Ernest (iFire) Lee
2022-01-23Merge pull request #57052 from KoBeWi/nosortRémi Verschelde
2022-01-22Merge pull request #55433 from V-Sekai/prev_operand_nullptr_checkRémi Verschelde
Check for nullptr expression in parse_precedence function
2022-01-22Merge pull request #55214 from Scony/fix-gdscript-crash-2Rémi Verschelde
Fix GDScript parser crash on 'dollar mixed with assignment' expression
2022-01-22Don't sort printed Dictionarykobewi
2022-01-20Rename Variant::is_ref() to is_ref_counted()Pedro J. Estébanez
2022-01-17Merge pull request #56739 from strank/masterRémi Verschelde
GDScript: Fix parsing default parameter values from function calls
2022-01-17Merge pull request #55995 from Xwdit/enum_fixRémi Verschelde
Fix enum int comparison
2022-01-17Merge pull request #55625 from ↵Rémi Verschelde
cdemirer/fix-type-guessing-and-gdscript-parser-printing Fix `--test gdscript-parser` crash
2022-01-17Merge pull request #55616 from cdemirer/masterRémi Verschelde
Fix nested ternary-if codegen
2022-01-15Improvments for SyntaxHighlightersPaulb23
- Fix immedate Funcion in lamba highlight - Highlight signals as one colour - Highlight node paths as one colour - Highlight escape chars in strings
2022-01-14Merge pull request #55541 from KoBeWi/outcognito_scriptsRémi Verschelde
2022-01-13Fix various typosluz paz
Found via `codespell -q 3 -S ./thirdparty,*.po,./DONORS.md -L ackward,ang,ans,ba,beng,cas,childs,childrens,dof,doubleclick,expct,fave,findn,gird,hist,inh,inout,leapyear,lod,nd,numer,ois,ony,paket,ro,seeked,sinc,switchs,te,uint,varn,vew`
2022-01-13GDScript: Fix parsing default parameter values from function callsstrank
2022-01-13Merge pull request #56268 from KoBeWi/🚗complete_settersRémi Verschelde
2022-01-13Make script type distinguishable by iconkobewi
2022-01-11Assign member type when parsing setters to preventSaracenOne
'Compiler bug: unresolved assign' errors
2022-01-10Merge pull request #56326 from NNesh/fix/unknown_default_value_callableRémi Verschelde
Extended the _make_arguments_hint function to get default values for function arguments in hint
2022-01-10Fixed <unknown> text for callable default value for a function arguments hintNNesh
Format switch Added a case for constant subscripts Fixed default value hinting for the enum type Removed is_null checking for value Added a case for dictionary
2022-01-10Merge pull request #55715 from nathanfranke/enum-orderedRémi Verschelde
2022-01-10Merge pull request #56194 from cdemirer/fix-operation-result-type-inferenceRémi Verschelde
2022-01-10Merge pull request #56232 from V-Sekai/invalid_explicit_variant_assign_fixRémi Verschelde