summaryrefslogtreecommitdiff
path: root/modules/gdscript/gdscript_analyzer.cpp
AgeCommit message (Collapse)Author
2020-11-09Variant: Rename Type::_RID to Type::RIDRémi Verschelde
The underscore prefix was used to avoid the conflict between the `RID` class name and the matching enum value in `Variant::Type`. This can be fixed differently by prefixing uses of the `RID` class in `Variant` with the scope resolution operator, as done already for `AABB`.
2020-11-09Refactored variant constructor logicreduz
2020-11-07Reorganized core/ directory, it was too fatty alreadyreduz
-Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
2020-11-07Refactored variant setters/gettersreduz
-Discern between named, indexed and keyed -Get direct access to functions for typed GDScript and GDNative bindings -Small changes to some classes in order to work with the new setget binder
2020-11-03Merge pull request #41516 from Lunatoid/allow-object-newRémi Verschelde
Fixed ParseError when calling Object.new()
2020-10-20Merge pull request #41983 from ThakeeNathees/array-const-folding-bug-fixGeorge Marques
Array/Dictionary Nodes no more reduced to array/dictionary variant
2020-09-18Fix typos with codespellRémi Verschelde
Using codespell 1.17.1. Method: ``` $ cat > ../godot-word-whitelist.txt << EOF ang curvelinear dof doubleclick fave findn leapyear lod merchantibility nd numer ois ony que seeked synching te uint unselect webp EOF $ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po" $ git diff // undo unwanted changes ```
2020-09-11Array/Dictinoary no more reduced to array/dictionary variantThakee Nathees
Fix: #41377 Fix: #20436 Fix: #41953
2020-09-08Merge pull request #41709 from ThakeeNathees/dictionary-indexing-bug-fixRémi Verschelde
Fixed parser error when indexing a dictionary.
2020-09-06GDScript: parameter infer type bug fixThakee Nathees
Fix: #41772
2020-09-03fixed parser error when indexing a dictionary.Thakee Nathees
Fix: #41707
2020-09-02Fixed ParseError when calling Object.new()Lunatoid
Fixes #41462 where calling Object.new() in GDScript gave an error. I fixed it by adding exclusion when checking if the name is a builtin type to exclude objects with a comment detailing why.
2020-09-01Change GDScript compiler to use codegen abstractionGeorge Marques
2020-09-01GDScript: Don't mark function parameters as constantGeorge Marques
They can be reassigned as if it were a local variable.
2020-09-01GDScript: Properly set class inheritance for global classesGeorge Marques
2020-09-01GDScript: Fix analysis of singleton dependenciesGeorge Marques
Sometimes a singleton might depend on another before they are fully compiled so we can't rely on globals in this case.
2020-09-01GDScript: Don't try to parse constant scripts that aren't validGeorge Marques
Since it's likely that they won't parse correctly.
2020-08-26GDScript: Show error when there's an inheritance cycleGeorge Marques
2020-08-26GDScript: Fix issues when deriving from other scriptsGeorge Marques
2020-08-23GDScript: Properly resolve external inner classes from preloadGeorge Marques
This gets the correct parser and class node when resolving from a full GDScript reference.
2020-08-23Merge pull request #41238 from MarianoGnu/gdscript-export-resourceGeorge Marques
Fix GdScript Analyzier not detecting Resource subclass correctly
2020-08-19GDScript: Make subscript access be properly type checkedGeorge Marques
2020-08-19GDScript: Check duplicate keys in dictionaries and enumsGeorge Marques
2020-08-19GDScript: Allow preload() to be used with constant expressionsGeorge Marques
2020-08-18GDScript: Allow enum values to be set to constant expressionsGeorge Marques
Also allow them to access previous values wihout referencing the enum.
2020-08-18GDScript: Allow supertype objects to be assigned to a subtype variableGeorge Marques
It allows `get_node()` to be used with typed variables This is marked as unsafe to warn the user.
2020-08-18GDScript: Allow implicit type conversion when constructing variantsGeorge Marques
Incidentally fix error message when no valid constructor is found which was missing an end parenthesis.
2020-08-17GDSript: Prevent crash when completing unary operatorsGeorge Marques
2020-08-17GDScript: Fix wrong argument check for formatting operatorGeorge Marques
2020-08-13Fix GdScript Analyzier not detecting Resource subclass correctlyMariano Suligoy
2020-08-12Merge pull request #41104 from vnen/gdscript-assignment-tidyGeorge Marques
Tidy up assignment operator check
2020-08-11Merge pull request #41055 from snichols/null-callee-fixRémi Verschelde
Fix crash with null callee
2020-08-08Merge pull request #40673 from ThakeeNathees/gdscript-op-eval-validationGeorge Marques
GDScript operator evaluation validation bug fix
2020-08-08Merge pull request #40951 from bruvzg/gds_cleanupGeorge Marques
[GDScript] Add static HashMap cleanup.
2020-08-08GDScript: Tidy up assignment operator checkGeorge Marques
The operator is already gathered by the parser, no need to do it again in the analyzer.
2020-08-06GDScript: unsafe arithmetic assignment bug fixThakee Nathees
Fix: #41051
2020-08-05Fixing null callee crash.Stephen Nichols
2020-08-03Merge pull request #40690 from ↵George Marques
ThakeeNathees/arithmetic-assign-type-check-bug-fix GDScript arithmetic assignment type check bug fix
2020-08-03Fixed tiny grammar issues in error messagesunknown
2020-08-01[GDScript] Add static HashMap cleanup.bruvzg
2020-07-29GDScript: Fix crash caused by inconsistent get_memberLyuma
2020-07-27GDScript: Fix crash on 'await' completionGeorge Marques
2020-07-26GDScript: "Object" datatype changed from BUILTIN to NATIVEThakee Nathees
Fix: #40656
2020-07-26GDScript arithmetic assignment type check bug fixedThakee Nathees
Fix: #40686
2020-07-24GDScript operator evaluation validation bug fixThakee Nathees
Fix: #40665
2020-07-22Wrap up GDScript 2.0 base implementationGeorge Marques
2020-07-20Reintroduce code completionGeorge Marques
2020-07-20Added support for enums to be used as types in GDScriptGeorge Marques
2020-07-20Add warning checks in GDScript analyzerGeorge Marques
Reenable checking those when validating code.
2020-07-20Add new GDScript type checkerGeorge Marques