summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_parser.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Add UID support to GDScript files"Rémi Verschelde2024-01-291-35/+3
| | | | | | | | | | | This reverts commit c7f68a27ec4b825302998eeb5a400f869cd21cf7. We still think GDScript files need UIDs to allow safe refactoring, but we're still debating what form those should take exactly. So far there seems to be agreement that it shouldn't be done via an annotation as implemented here, so we're reverting this one for now, to revisit the feature in a future PR.
* Remove unnecessary `this->` expressionsA Thousand Ships2024-01-291-4/+4
|
* Add UID support to GDScript fileskobewi2024-01-171-3/+35
|
* Merge pull request #83120 from ↵Rémi Verschelde2024-01-041-3/+7
|\ | | | | | | | | | | dalexeev/gds-allow-property-getter-empty-parentheses GDScript: Allow empty parentheses for property getter declaration
| * GDScript: Allow empty parentheses for property getter declarationDanil Alexeev2023-10-111-3/+7
| |
* | Merge pull request #84445 from Rubonnek/add-const-references-clang-tidyRémi Verschelde2024-01-041-1/+1
|\ \ | | | | | | | | | Add const references detected by clang-tidy
| * | Add const references detected by clang-tidyWilson E. Alvarez2023-12-161-1/+1
| | |
* | | Merge pull request #85487 from vnen/gdscript-static-register-annotationsYuri Sizov2023-12-191-35/+39
|\ \ \ | |/ / |/| | | | | GDScript: Make annotations register statically in parser
| * | GDScript: Make annotations register statically in parserGeorge Marques2023-11-281-35/+39
| |/ | | | | | | | | So it only register the annotations once per run instead of doing it every time a script is parsed.
* / Change container_element_type to vector containerThaddeus Crews2023-12-051-26/+33
|/
* Merge pull request #83050 from k0T0z/fix-unnecessary-includeRémi Verschelde2023-10-101-4/+0
|\ | | | | | | Deleting unnecessary include in GDScriptParser
| * removing unnecessary include of gdscript_warning.h as it is already included ↵Saif Kandil2023-10-091-4/+0
| | | | | | | | | | | | in the header file Signed-off-by: Saif Kandil <74428638+k0T0z@users.noreply.github.com>
* | Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicableA Thousand Ships2023-10-081-1/+1
|/
* GDScript: Add error when exporting node in non [Node]-derived classesDanil Alexeev2023-10-051-29/+35
|
* Merge pull request #80085 from vnen/gdscript-pattern-guardsYuri Sizov2023-09-281-1/+32
|\ | | | | | | GDScript: Implement pattern guards for match statement
| * GDScript: Implement pattern guards for match statementGeorge Marques2023-09-271-1/+32
| | | | | | | | | | | | | | | | | | | | | | | | Within a match statement, it is now possible to add guards in each branch: var a = 0 match a: 0 when false: print("does not run") 0 when true: print("but this does") This allows more complex logic for deciding which branch to take.
* | Merge pull request #75988 from dalexeev/gds-unsafe-call-argumentYuri Sizov2023-09-271-3/+10
|\ \ | |/ |/| | | GDScript: Improve call analysis
| * GDScript: Improve call analysisDanil Alexeev2023-09-211-3/+10
| | | | | | | | | | | | * Add missing `UNSAFE_CALL_ARGUMENT` warning. * Fix `Object` constructor. * Display an error for non-existent static methods.
* | [Modules] Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicableA Thousand Ships2023-09-261-1/+1
|/
* Merge pull request #81699 from dalexeev/gds-fix-and-improve-doc-comment-parsingRémi Verschelde2023-09-201-108/+77
|\ | | | | | | GDScript: Fix and improve doc comment parsing
| * GDScript: Fix and improve doc comment parsingDanil Alexeev2023-09-161-108/+77
| |
* | GDScript: Fix subscript resolution for constant non-metatypesDanil Alexeev2023-09-191-17/+21
|/
* Merge pull request #81079 from dalexeev/gds-fix-get-method-listRémi Verschelde2023-09-111-0/+100
|\ | | | | | | GDScript: Fix `get_*_list()` methods return incorrect info
| * GDScript: Fix `get_*_list()` methods return incorrect infoDanil Alexeev2023-09-041-0/+100
| |
* | Add coloring for completion of vector componentsYuri Rubinsky2023-08-301-0/+13
|/
* Merge pull request #75656 from YuriSizov/core-iconic-builtinsRémi Verschelde2023-08-291-2/+15
|\ | | | | | | Add a script method to get its class icon
| * Add a script method to get its class iconYuri Sizov2023-08-241-2/+15
| | | | | | | | Co-authored-by: Danil Alexeev <danil@alexeev.xyz>
* | Merge pull request #80964 from dalexeev/gds-allow-use-local-consts-as-typesYuri Sizov2023-08-251-3/+1
|\ \ | | | | | | | | | GDScript: Allow use local constants as types
| * | GDScript: Allow use local constants as typesDanil Alexeev2023-08-251-3/+1
| |/
* / GDScript: Fix lambda resolution with cyclic referencesDanil Alexeev2023-08-251-0/+6
|/
* GDScript: Add static typing for `for` loop variableDanil Alexeev2023-08-171-1/+12
|
* Merge pull request #78552 from dalexeev/gds-check-get-node-in-static-funcRémi Verschelde2023-08-171-2/+0
|\ | | | | | | GDScript: Check `get_node()` shorthand in static functions
| * GDScript: Check `get_node()` shorthand in static functionsDanil Alexeev2023-08-091-2/+0
| |
* | Fix superfluous `"` in error messageMarkus Sauermann2023-08-131-1/+1
|/
* Merge pull request #79935 from dalexeev/gds-validate-node-path-annotationYuri Sizov2023-08-011-2/+16
|\ | | | | | | GDScript: Add validation for `@export_node_path` annotation arguments
| * GDScript: Add validation for `@export_node_path` annotation argumentsDanil Alexeev2023-07-261-2/+16
| | | | | | | | Co-authored-by: George Marques <george@gmarqu.es>
* | Merge pull request #79880 from dalexeev/gds-fix-id-shadowing-belowYuri Sizov2023-07-311-0/+3
|\ \ | | | | | | | | | GDScript: Fix bug with identifier shadowed below in current scope
| * | GDScript: Fix bug with identifier shadowed below in current scopeDanil Alexeev2023-07-261-0/+3
| |/
* | Merge pull request #78941 from ↵Yuri Sizov2023-07-311-62/+89
|\ \ | |/ |/| | | | | | | dalexeev/gds-doc-comments-deprecated-and-experimental GDScript: Add `@deprecated` and `@experimental` doc comment tags
| * GDScript: Add `@deprecated` and `@experimental` doc comment tagsDanil Alexeev2023-07-081-62/+89
| |
* | Fix for not being able to ignore shadowing warnings on class scopejpcerrone2023-07-241-14/+0
| |
* | GDScript: Properly track extents of constants and patternsGeorge Marques2023-07-121-0/+2
| | | | | | | | Even in the case of errors.
* | Change explicit 'Godot 4.0' references to 'Godot 4'Rémi Verschelde2023-07-101-1/+1
|/ | | | Fixes #79276.
* Merge pull request #77744 from dalexeev/gds-reset-block-locals-on-exitRémi Verschelde2023-06-211-4/+9
|\ | | | | | | GDScript: Reset local variables on exit from block
| * GDScript: Reset local variables on exit from blockDanil Alexeev2023-06-021-4/+9
| |
* | Fix lambda parsing continuing on subsequent lines #73273今井きなみ2023-06-211-1/+1
| |
* | Merge pull request #77129 from dalexeev/gds-fix-static-var-bugs-part-1Rémi Verschelde2023-06-191-1/+9
|\ \ | | | | | | | | | GDScript: Fix some bugs with static variables and functions
| * | GDScript: Fix some bugs with static variables and functionsDanil Alexeev2023-06-161-1/+9
| | |
* | | Merge pull request #76207 from dalexeev/clarify-rpc-docsFabio Alessandrelli2023-06-181-12/+7
|\ \ \ | | | | | | | | Clarify `@rpc` annotation arguments docs
| * | | Clarify `@rpc` annotation arguments docsDanil Alexeev2023-06-131-12/+7
| | | |