summaryrefslogtreecommitdiff
path: root/modules/gdscript/gdscript_analyzer.cpp
AgeCommit message (Collapse)Author
2021-09-21GDScript: Remove conversion assign mistakenly done when unneededGeorge Marques
2021-09-17Merge pull request #51671 from RandomShaper/fix_gdscript_crashGeorge Marques
Fix some GDScript bugs
2021-09-17GDScript: Avoid inferred types from giving hard errorsGeorge Marques
2021-09-15Merge pull request #50456 from Blackiris/fix-extends-parent-relativeGeorge Marques
Fix extends with relative path to parent script
2021-09-15Merge pull request #52582 from ↵Rémi Verschelde
jmb462/Prevent-non-explicit-inferring-parameter-from-null
2021-09-13Merge pull request #52632 from vnen/autoload-global-script-class-conflictRémi Verschelde
Disallow class names to be the same as global names
2021-09-13Merge pull request #52100 from vnen/gdscript-access-outer-constantsRémi Verschelde
GDScript: Allow access to outer constant and enum values
2021-09-13Disallow class names to be the same as global namesGeorge Marques
Also forbid autoloads to have the same name as global script class.
2021-09-11Prevent non explicit inferring parameter from nulljmb462
2021-09-11Fix parameter type resolution in GDScriptPedro J. Estébanez
2021-09-11Implement iterator variable typing in GDScriptPedro J. Estébanez
2021-09-10Merge pull request #49897 from Blackiris/fix-dollar-point-crash-on-editorGeorge Marques
Fix crash when writing $. in the editor
2021-09-05Fix extends with relative path to parent scriptJulien Nguyen
2021-09-03Merge pull request #52329 from ↵Max Hilbrunner
ZuBsPaCe/gdscript-unused-private-class-variable-fix GDScript: Fix for UNUSED_PRIVATE_CLASS_VARIABLE
2021-09-03GDScript: Count usages of member variables.ZuBsPaCe
Otherwise private member variables will always lead to UNUSED_PRIVATE_CLASS_VARIABLE.
2021-09-02Check for GDScript member and class naming conflicts in a variety of conditions.SaracenOne
2021-08-29Rename String::is_rel_path to String::is_relative_pathWilson E. Alvarez
2021-08-24GDScript: Allow access to outer constant and enum valuesGeorge Marques
2021-08-20GDScript: Make singleton functions be seen as staticGeorge Marques
Since those can be called without an instance.
2021-08-18GDScript: Fix calling builtin static functionsGeorge Marques
2021-08-18GDScript: Fix issue when calling `new()` on its ownGeorge Marques
2021-08-18GDScript: Fix inner classes and preloaded scripts as typesGeorge Marques
2021-08-17Remove underscore hacksMax Hilbrunner
Way less cruft. :) Co-authored-by: Ignacio Roldán Etcheverry <neikeq@users.noreply.github.com>
2021-07-23Use C++ iterators for Lists in many situationsAaron Franke
2021-07-08Fix crash when writing $. in the editorJulien Nguyen
2021-06-19Rename `instance()`->`instantiate()` when it's a verbLightning_A
2021-06-19Merge pull request #49287 from reduz/expose-variant-internal-bindersRémi Verschelde
Make some Variant internal functions public.
2021-06-18Merge pull request #49449 from SpectralDragon/fix-enum-equal-operationGeorge Marques
Fix equal operation for typed enums
2021-06-18GDScript: Fix setting type of operator return valueGeorge Marques
Also write type adjust when needed for binary operators.
2021-06-11Rename Reference to RefCountedPedro J. Estébanez
2021-06-11Core: Move DirAccess and FileAccess to `core/io`Rémi Verschelde
File handling APIs are typically considered part of I/O, and we did have most `FileAccess` implementations in `core/io` already.
2021-06-09Fix equal operation for typed enumsВладислав Прусаков
2021-06-04Rename Quat to QuaternionMarcel Admiraal
2021-06-03Rename Variant TRANSFORM to TRANSFORM3DAaron Franke
Also _transform to _transform3d
2021-05-26Merge pull request #49114 from vnen/gdscript-fix-self-function-type-checkRémi Verschelde
GDScript: Fix function signature check for self calls
2021-05-26GDScript: Fix function signature check for self callsGeorge Marques
2021-05-26GDScript: Use analyzer data to decide assignment conversionGeorge Marques
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.
2021-05-16GDScript: Add support for builtin static method callsGeorge Marques
2021-04-28GDScript: Fix crash when base of an attribute is invalidGeorge Marques
In attribute expressions (`a.b`) it's possible that the base has an incorrect syntax and thus become a nullptr expression in the tree. This commit add the check for this case to fail gracefully instead of crashing.
2021-04-28GDScript: Implement lambdas compilation and runtimeGeorge Marques
2021-04-28GDScript: Add lambdas to the type analyzerGeorge Marques
- Lambdas are always callables (no specific signature match). - Captures from the current context are evaluated.
2021-04-28GDScript: Add lambda syntax parsingGeorge Marques
Lambda syntax is the same as a the function syntax (using the same `func` keyword) except that the name is optional and it can be embedded anywhere an expression is expected. E.g.: func _ready(): var my_lambda = func(x): print(x) my_lambda.call("hello")
2021-04-23GDScript: Fix resolution of dictionary keysGeorge Marques
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.
2021-03-30Merge pull request #47131 from vnen/gdscript-export-fixRémi Verschelde
Fix a few issues with @export in GDScript
2021-03-30GDScript: Fix array type check on constantsGeorge Marques
They mistakenly pointing to the wrong union member (variable instead of constant).
2021-03-30Move GDSript annotation application after type-checkingGeorge Marques
This ensures that annotations that rely on the datatype (such as @export) can validated it timely, allowing compound expressions instead of only literal values.
2021-03-29Add typed arrays to GDScriptGeorge Marques
- 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.
2021-01-11Merge pull request #43176 from mateosss/crash-uninit-constRémi Verschelde
Fix crash by adding nullcheck for uninitialized constants
2021-01-11Merge pull request #44719 from ThakeeNathees/assert-argument-bug-fixedRémi Verschelde
GDScript assert message parsing bug fixed
2021-01-11Merge pull request #44672 from ThakeeNathees/array-dict-const-fold-bug-fixRémi Verschelde
Array/Dictionary marked as not safe to const fold