summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_parser.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
| * | GDScript: Consolidate behavior for assigning enum typesGeorge Marques2022-02-031-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge pull request #55433 from V-Sekai/prev_operand_nullptr_checkRémi Verschelde2022-01-221-1/+1
|\ \ \ | | | | | | | | Check for nullptr expression in parse_precedence function
| * | | Check for nullptr expression in parse_precedence functionSaracenOne2021-11-291-1/+1
| | | |
* | | | Merge pull request #55214 from Scony/fix-gdscript-crash-2Rémi Verschelde2022-01-221-0/+3
|\ \ \ \ | |_|/ / |/| | | Fix GDScript parser crash on 'dollar mixed with assignment' expression
| * | | Fix GDScript parser crash on 'dollar mixed with assignment' expressionPawel Lampe2021-11-211-0/+3
| | |/ | |/| | | | | | | fixes #53696
* | | Merge pull request #55625 from ↵Rémi Verschelde2022-01-171-1/+5
|\ \ \ | | | | | | | | | | | | | | | | cdemirer/fix-type-guessing-and-gdscript-parser-printing Fix `--test gdscript-parser` crash
| * | | Fix gdscript-parser crashcdemirer2022-01-031-1/+5
| | | | | | | | | | | | | | | | Fixes gdscript-parser crashing while printing empty identifiers.
* | | | Fix various typosluz paz2022-01-131-1/+1
| | | | | | | | | | | | 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`
* | | | Merge pull request #55715 from nathanfranke/enum-orderedRémi Verschelde2022-01-101-4/+4
|\ \ \ \
| * | | | Use OrderedHashMap for enum_valuesNathan Franke2021-12-161-4/+4
| | | | |
* | | | | Merge pull request #56342 from NNesh/fix/class-completionRémi Verschelde2022-01-101-0/+2
|\ \ \ \ \
| * | | | | Fixed completion showing for class membersNNesh2022-01-081-0/+2
| |/ / / /
* | | | | Merge pull request #56483 from vnen/gdscript-warning-annotationRémi Verschelde2022-01-051-9/+53
|\ \ \ \ \ | | | | | | | | | | | | Add annotation to ignore warnings
| * | | | | GDScript: Add annotation to ignore warningsGeorge Marques2022-01-041-9/+53
| |/ / / /
* / / / / Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
|/ / / / | | | | | | | | | | | | Happy new year to the wonderful Godot community!
* | | | Fix shadowed global identifier warning duplicationYuri Roubinsky2021-12-131-34/+3
| | | |
* | | | Replace String comparisons with "", String() to is_empty()Nathan Franke2021-12-091-2/+2
|/ / / | | | | | | | | | | | | | | | Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
* | / Fix typo in `gdscript_parser`Raul Santos2021-12-031-4/+4
| |/ |/|
* | Rename `remove()` to `remove_at()` when removing by indexLightning_A2021-11-231-2/+2
| |
* | Allow using built-in names for variables, push warnings insteadYuri Roubinsky2021-11-131-27/+24
|/
* Merge pull request #54676 from Chaosus/gds_restrict_namesRémi Verschelde2021-11-101-8/+76
|\
| * Prevent identifiers from naming as built-in funcs and global classesYuri Roubinsky2021-11-081-8/+76
| |
* | Allow using $/root node pathsMaximilian2021-11-091-0/+17
|/ | | | | | | | | | format fix shadowing use match instead of comparison Update gdscript_parser.cpp
* Merge pull request #54350 from akien-mga/clang-format-dont-align-operandsRémi Verschelde2021-10-281-3/+3
|\
| * clang-format: Various fixes to comments alignment from `clang-format` 13Rémi Verschelde2021-10-281-3/+3
| | | | | | | | All reviewed manually and occasionally rewritten to avoid bad auto formatting.
* | Merge pull request #53526 from KoBeWi/super_printRémi Verschelde2021-10-281-1/+1
|\ \ | |/ |/|
| * Change print_line() to use any number of Variantskobewi2021-10-071-1/+1
| |
* | GDScript: Avoid crash if missing setter signatureGeorge Marques2021-10-151-6/+8
| |
* | Merge pull request #53103 from ZuBsPaCe/gdscript-analyze-properties-fixGeorge Marques2021-10-111-7/+42
|\ \ | | | | | | GDScript: Report property type errors
| * | GDScript: Report property type errorsZuBsPaCe2021-10-081-7/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | Inline getters & setters are now FunctionNodes. Their names are set in the parser, not in the compiler. GDScript-Analyzer will now run through getter and setter. Also report wrong type or signature errors regarding getset properties. Added GDScript tests for getters and setters. #53102
* | | Remove redundant String operation from GDScript enum exportsYuri Sizov2021-10-111-1/+1
|/ /
* / [Net] Rename RPCConfig.sync to call_local.Fabio Alessandrelli2021-10-081-2/+2
|/ | | | For consistency with the other user facing changes.
* Fix outdated no_call_local, use call_remoteMax Hilbrunner2021-10-061-1/+1
|
* GDScript Check for null list in `for` loopBrian Semrau2021-10-021-0/+4
|
* [Net] Rename RPC constants and annotation arguments.Fabio Alessandrelli2021-10-011-8/+8
| | | | | | | | | any -> any_peer sync -> call_local ordered -> unreliable_ordered Multiplayer.RPC_MODE_ANY -> RPC_MODE_ANY_PEER Multiplayer.TRANSFER_MODE_ORDERED -> TRANSFER_MODE_UNRELIABLE_ORDERED
* Use range iterators for `Map`Lightning_A2021-09-301-3/+3
|
* Merge pull request #52906 from vnen/gdscript-show-error-on-yieldRémi Verschelde2021-09-211-1/+6
|\
| * GDScript: Show specific error when "yield" is usedGeorge Marques2021-09-211-1/+6
| | | | | | | | | | To help people porting code, it gives a hint to use "await" instead of a generic error.
* | Merge pull request #52905 from vnen/gdscript-single-line-declarationRémi Verschelde2021-09-211-7/+16
|\ \
| * | GDScript: Allow classes declaration to be done in single lineGeorge Marques2021-09-211-7/+16
| |/ | | | | | | | | Incidentally, allow multiple statements in single line functions when using semicolon as a terminator.
* / GDScript: Allow multiple lines in signal parameters declarationGeorge Marques2021-09-211-1/+4
|/
* GDScript: Properly catch error when missing index in subscriptGeorge Marques2021-09-171-0/+4
|
* Merge pull request #51671 from RandomShaper/fix_gdscript_crashGeorge Marques2021-09-171-0/+33
|\ | | | | Fix some GDScript bugs
| * Implement iterator variable typing in GDScriptPedro J. Estébanez2021-09-111-0/+33
| |
* | Merge pull request #52706 from vnen/gdscript-ternary-operator-crashRémi Verschelde2021-09-151-0/+4
|\ \ | | | | | | GDScript: Show error when missing expression after ternary else
| * | GDScript: Show error when missing expression after ternary elseGeorge Marques2021-09-151-0/+4
| | |
* | | GDScript: Show error on unary operators without argumentGeorge Marques2021-09-151-0/+12
|/ /
* | GDScript: Allow string keys on Lua-style dictionariesGeorge Marques2021-09-151-3/+12
| | | | | | | | | | Which is useful when the key isn't a valid identifier, such as keys with spaces or numeric keys.
* | Merge pull request #52068 from ThreeRhinosInAnElephantCostume/fixgdscriptRémi Verschelde2021-09-131-3/+20
|\ \ | | | | | | Fix parse error on statement-less files with only newlines, add a warning for empty files.
| * | Fix error on parsing statement-less GDScript files,ThreeRhinosInAnElephantCostume2021-09-111-3/+20
| | | | | | | | | | | | | | | add an empty file warning, add relevant tests.