summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_parser.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Style: clang-format: Disable AllowShortIfStatementsOnASingleLineRémi Verschelde2020-05-101-27/+54
| | | | | | | Part of #33027, also discussed in #29848. Enforcing the use of brackets even on single line statements would be preferred, but `clang-format` doesn't have this functionality yet.
* Merge pull request #37020 from aaronfranke/rangeRémi Verschelde2020-05-101-8/+8
|\ | | | | Allow using integer vectors for iteration and make range() use them
| * Change get_completion_identifier_is_function to return a boolAaron Franke2020-05-091-1/+1
| | | | | | | | A minor bugfix
| * Allow using integer vectors for iteration and make range() use themAaron Franke2020-05-091-7/+7
| |
* | more clearer unexpected statement end error messagesThakee Nathees2020-05-101-12/+22
| |
* | Merge pull request #37598 from ThakeeNathees/GDScript-type-resolve-bug-fixRémi Verschelde2020-05-091-0/+4
|\ \ | | | | | | GDScript class var type resolve bug fixed
| * | GDScript class var type resolve bug fixedThakee Nathees2020-04-051-0/+4
| | | | | | | | | | | | Fix: #37545
* | | Merge pull request #38412 from ThakeeNathees/static-func-var-accessRémi Verschelde2020-05-091-0/+4
|\ \ \ | |_|/ |/| | parser error for static func access non-static variables
| * | parser error for static func access non-static variablesThakee Nathees2020-05-031-0/+4
| | | | | | | | | | | | Fix: #38408
* | | Merge pull request #37293 from Janglee123/ctrl-click-improvementsRémi Verschelde2020-05-051-1/+11
|\ \ \ | | | | | | | | Improved go-to definition (Ctrl + Click)
| * | | Improved go-to definition (Ctrl + Click)janglee2020-05-051-1/+11
| | | | | | | | | | | | | | | | Co-Authored-By: Bojidar Marinov <bojidar.marinov.bg@gmail.com>
* | | | Mention offending function name in "Indented block expected" errorSteven Schoen2020-05-021-1/+1
| |/ / |/| |
* | | Fix for marking assert lines as safe bugTom Evans2020-04-271-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | Calling _reduce_node_type from GDScriptParser::_parse_block for assert was using a current class with a scope that didn't include all functions. Now calling in GDScriptParser::_check_block_types uses the right class type. We also now check the assert node message. The assert line was added to the set_errors associated with assert, since before the error would be reported on the next line
* | | Merge pull request #36927 from ThakeeNathees/export-var-type-reduce-implimentedRémi Verschelde2020-04-271-0/+35
|\ \ \ | | | | | | | | Fix: export var type reduce() implemented
| * | | export var type reduce() implementedThakee Nathees2020-04-271-0/+35
| | | |
* | | | Merge pull request #37265 from BigRed-118/mark_assert_safeRémi Verschelde2020-04-241-0/+9
|\ \ \ \ | | | | | | | | | | Mark assert lines as safe in gdscript
| * | | | Mark assert lines as safe in gdscriptTom Evans2020-03-251-0/+9
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | Now calling _reduce_node_type with debugging enabled to determine if assert line is safe. Part of doing this required the assert line to be stored away. Now the AssertNode line is being correctly set. Newlines are now marked safe always
* | | | Merge pull request #37232 from ThakeeNathees/load()-autocomplete-imlpementedRémi Verschelde2020-04-241-0/+7
|\ \ \ \ | | | | | | | | | | autocomplete for load() function implemented
| * | | | autocomplete for load() function implementedThakee Nathees2020-03-221-0/+7
| |/ / /
* | | | Merge pull request #37537 from ThakeeNathees/const-parsing-datatype-bug-fixRémi Verschelde2020-04-211-0/+13
|\ \ \ \ | | | | | | | | | | GDScript: Fix type inference for const reference to global class
| * | | | GDScript: Fix type inference for const reference to global classThakee Nathees2020-04-031-0/+13
| | |_|/ | |/| | | | | | | | | | Fixes #37529.
* | | | Merge pull request #37712 from stoofin/pattern-bind-warningRémi Verschelde2020-04-211-0/+1
|\ \ \ \ | | | | | | | | | | Fix unassigned variable warnings for match bindings
| * | | | Pattern bind counts as assignmentStoofin2020-04-091-0/+1
| | | | | | | | | | | | | | | | | | | | Fixes #34697
* | | | | Merge pull request #38041 from ThakeeNathees/class-name-check-enhanceRémi Verschelde2020-04-211-0/+6
|\ \ \ \ \ | | | | | | | | | | | | GDScript class name existance check enhanced
| * | | | | GDScript class name existance check enhancedThakee Nathees2020-04-201-0/+6
| | |_|_|/ | |/| | |
* | | | | Merge pull request #37955 from ThakeeNathees/lin-unsafe-base-know-index-unkonwnRémi Verschelde2020-04-211-0/+1
|\ \ \ \ \ | | | | | | | | | | | | Line marked unsafe when base known and index unkonwn
| * | | | | line unsafe for indexing with known base type & unkown identifierThakee Nathees2020-04-171-0/+1
| |/ / / /
* / / / / Fix handling of PROPERTY_USAGE_SUBGROUP in DocData and editorRémi Verschelde2020-04-201-1/+1
|/ / / / | | | | | | | | | | | | | | | | Subgroups were added in #37678 but not properly handled everywhere where PROPERTY_USAGE_GROUP is.
* | | | Merge pull request #37395 from ThakeeNathees/collon-equal-parser-bug-fixRémi Verschelde2020-04-101-3/+6
|\ \ \ \ | |_|/ / |/| | | `:=` fails on some nodes fix: #37357
| * | | `:=` fails on some nodes fix: #37357Thakee Nathees2020-03-291-3/+6
| | |/ | |/|
* | | Replace NULL with nullptrlupoDharkael2020-04-021-142/+142
| |/ |/|
* | Fix for loop range bug: #37358Thakee Nathees2020-03-281-1/+0
|/
* Style: Set clang-format Standard to Cpp11Rémi Verschelde2020-03-171-1/+1
| | | | | | | | | | For us, it practically only changes the fact that `A<A<int>>` is now used instead of the C++03 compatible `A<A<int> >`. Note: clang-format 10+ changed the `Standard` arguments to fully specified `c++11`, `c++14`, etc. versions, but we can't use `c++17` now if we want to preserve compatibility with clang-format 8 and 9. `Cpp11` is still supported as deprecated alias for `Latest`.
* Fix various typosluz.paz2020-03-111-1/+1
| | | Found via `codespell`
* Merge pull request #36704 from ThakeeNathees/gdscript-duplicate-args-fixRémi Verschelde2020-03-101-0/+6
|\ | | | | GDScript duplicate arguments bug fixed
| * duplicate arguments in a function handledThakee Nathees2020-03-061-0/+6
| |
* | Merge pull request #36767 from ThakeeNathees/class-pass-fixRémi Verschelde2020-03-101-0/+4
|\ \ | | | | | | fix: Classes can't have pass
| * | pass keyword inside a class implementedThakee Nathees2020-03-051-0/+4
| |/
* / logic error in gdscript_parser.cpp for-loop-rangeThakee Nathees2020-03-061-3/+3
|/ | | | | there was a logic error in for loop range argument that check if all of the argument were constants, fixed
* Variant: Added 64-bit packed arrays, renamed Variant::REAL to FLOAT.Juan Linietsky2020-02-251-18/+24
| | | | | | | | | | | | | | | | | | | | | - Renames PackedIntArray to PackedInt32Array. - Renames PackedFloatArray to PackedFloat32Array. - Adds PackedInt64Array and PackedFloat64Array. - Renames Variant::REAL to Variant::FLOAT for consistency. Packed arrays are for storing large amount of data and creating stuff like meshes, buffers. textures, etc. Forcing them to be 64 is a huge waste of memory. That said, many users requested the ability to have 64 bits packed arrays for their games, so this is just an optional added type. For Variant, the float datatype is always 64 bits, and exposed as `float`. We still have `real_t` which is the datatype that can change from 32 to 64 bits depending on a compile flag (not entirely working right now, but that's the idea). It affects math related datatypes and code only. Neither Variant nor PackedArray make use of real_t, which is only intended for math precision, so the term is removed from there to keep only float.
* Replace FALLTHROUGH macro by C++17 [[fallthrough]]Rémi Verschelde2020-02-231-13/+13
| | | | | | | | | | This attribute is now part of the standard we target so we no longer need compiler-specific hacks. Also enables -Wimplicit-fallthrough for Clang now that we can properly support it. It's already on by default for GCC's -Wextra. Fixes new warnings raised by Clang's -Wimplicit-fallthrough.
* Reworked signal connection system, added support for Callable and Signal ↵Juan Linietsky2020-02-201-15/+15
| | | | objects and made them default.
* PoolVector is gone, replaced by VectorJuan Linietsky2020-02-181-21/+21
| | | | | Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
* Remove more deprecated methods and codeRémi Verschelde2020-02-131-4/+0
|
* Remove deprecated sync and slave networking keywordsRémi Verschelde2020-02-131-9/+3
| | | | | | Those keywords were deprecated for 3.1 in #22087. Also fix token name for `TK_REMOTE`, should be "remote" like the keyword.
* Merge pull request #35412 from DaividFrank/check_overriding_selfRémi Verschelde2020-01-221-0/+5
|\ | | | | Disabled re-assigning 'self'
| * GDScript: Added checks in assign operations to disable re-assigning 'self'DaividFrank2020-01-221-0/+5
| |
* | Fix subclass finding in extend statement for sub-sub classesDani Frank2020-01-181-4/+4
|/ | | | | lookup was always done on top level script instead of advancing to subclass each time. this commit changes the lookup to always be at last found subclass
* Fix slight problems related to default values of exported typed arraysBojidar Marinov2020-01-161-25/+26
|
* GDScript: Check function arguments on release tooGeorge Marques2020-01-131-4/+0
| | | | | | | | Needed because otherwise the certain type operations (such as type casting) used as a function argument might become unresolved on release, causing a compilation failure. Fix #28680