summaryrefslogtreecommitdiff
path: root/modules/gdscript
AgeCommit message (Collapse)Author
2020-01-10Merge pull request #34978 from GodotExplorer/lsp-fix-bracket-completionRémi Verschelde
LSP: Fix bracket completion for functions with one argument
2020-01-10Merge pull request #34958 from vnen/gdscript-is-check-valid-instanceRémi Verschelde
GDScript: Validate object instance on `is` operation
2020-01-10LSP: Fix bracket completion for functions with one argumentGeequlim
2020-01-09GDScript: Fix type name on error message for function parametersGeorge Marques
2020-01-09GDScript: Fix resolution of default parameter valuesGeorge Marques
Fix #26556
2020-01-09GDScript: Validate object instance on `is` operationGeorge Marques
Avoids crashes on debug mode. Instead it now breaks the execution and show the error in-editor. Will still crash on release. Also add a similar check to Marshalls to ensure the debugger doesn't crash when trying to serialize the invalid instance.
2020-01-09GDScript: Don't re-evaluate index on assigment with operationGeorge Marques
Pass the calculated index from the stack and use the same to get and set the value. This avoids a function with side effects being evaluated twice when using indexing in an assignment with operation statement (e.g. a[function()] += 1).
2020-01-09Merge pull request #34948 from vnen/gdscript-copy-constructorRémi Verschelde
GDScript: Allow copy constructor for built-in types
2020-01-09GDScript: Allow copy constructor for built-in typesGeorge Marques
Those are implicitly defined in Variant.
2020-01-09Add GDScript warning for standalone expressionGeorge Marques
This makes the error message clearer as it might be used to call functions with side effects.
2020-01-08GDScript: set assign operation on local var made by matchGeorge Marques
This is needed in a all local variables with assigment to properly set the typed operation. Fix #34928
2020-01-08Merge pull request #34920 from GodotExplorer/lsp-signatureHelperRémi Verschelde
GDScript LSP: Implement signatureHelp
2020-01-08Merge pull request #34918 from vnen/gdscript-assign-opRémi Verschelde
GDScript: enable type checks on release mode
2020-01-09GDScript LSP: Implement signatureHelpgeequlim
Enable smart resolve default to true as it is required for script symbol lookup
2020-01-08GDScript: enable type checks on release modeGeorge Marques
Also make builtin GDScript functions report return type as Variant in release so type is converted when needed.
2020-01-08GDScript: properly set type of local variable initializationGeorge Marques
Properly sets the type of the identifier for the local variable that is stored in the assignment operation. This makes sure that the compiler is aware of typing for local variables when they are initialized with the declaration.
2020-01-04GDScript LSP: Implement goto declarationgeequlim
2020-01-02Allow the usage of newlines in export hintsBojidar Marinov
Fixes #34689
2020-01-01Update copyright statements to 2020Rémi Verschelde
Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
2019-12-24Cleans up headers included in editor_node.hHaoyu Qiu
2019-12-16Merge pull request #34280 from zaksnet/fix-yield-documentationRémi Verschelde
Fix documentation for yield
2019-12-15Updates docs for GDScript built-in functionsHaoyu Qiu
* Adds description for `ord()` * Adds relationship description between `char()` and `ord()` * Describes the argument of `char()` as Unicode code point instead of ASCII code * Fixes wrong interval notation in `randi()` description
2019-12-13GDScript: Convert values when setting member variablesGeorge Marques
This allows doing: self.x = 1 even if self.x is declared as float.
2019-12-13GDScript: Fix type conversion in assignment with operationGeorge Marques
2019-12-13Fix documentation for yieldZak
#33872 PR was misleading as i though inheritance from GDScriptFunctionState was optional.
2019-12-12Merge pull request #34286 from bojidar-bg/31818-cast-autocompleteRémi Verschelde
Fix GDScript autocompletion with "as" or typed variables
2019-12-12Fix GDScript autocompletion with `as` or typed variablesBojidar Marinov
Fixes #31818, fixes #33434
2019-12-11Add note in 'load()' docs that the path must be absoluteMichael Alexsander
2019-12-11Merge pull request #34271 from vnen/gdscript-unused-class-variable-disableRémi Verschelde
Disable GDScript warning for unused class variable by default
2019-12-11Merge pull request #33018 from Xrayez/fix-inst2dict-gettersRémi Verschelde
Fix `inst2dict` calling to getters to retrieve value
2019-12-11Disable GDScript warning for unused class variable by defaultGeorge Marques
2019-12-10Merge pull request #34040 from qarmin/unused_variable_more_precise_numbersRémi Verschelde
Removed unused variables, add some constants numbers
2019-12-10Removed unused variables, add some constants numbersRafał Mikrut
2019-12-06doc: Markup fixes for enums and constantsRémi Verschelde
2019-12-04Merge pull request #34067 from bojidar-bg/32370-retype-messageRémi Verschelde
Make error when accidentially redeclaring a variable's type clearer
2019-12-03Mention that `int()` can be used as an alternative to `floor()`Hugo Locurcio
2019-12-02Make error when accidentially redeclaring a variable's type clearerBojidar Marinov
Fixes #32370
2019-11-30Add docs for is_equal_approx on structuresAaron Franke
2019-11-30Fixed typo in docs for Script and GDScript classes ("exends" -> "extends")miere43
2019-11-27Document how to bypass the unused argument/variable warning in messageHugo Locurcio
Note that prefixing with an underscore only works with unused arguments and local variables, not class variables and signals. This closes #26056.
2019-11-26Remove type hint from the @GDScript class documentationHugo Locurcio
The current consensus in the Godot documentation is to avoid using type hints unless they're relevant to the behavior explained.
2019-11-25Added missing documentation for yield()Zak Stam
Added some missing documentation about yield() being able to wait for a function also. I cant believe something like that was missing from the docs, it would have saved me so much time (and others i assume).
2019-11-22Fix typos with codespellRémi Verschelde
Using codespell 1.16.0. Method: ``` $ cat > ../godot-word-whitelist.txt << EOF ang curvelinear dof doubleclick 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 ```
2019-11-17Make the script templates' blank lines conform with the official style guideMichael Alexsander
2019-11-15Parser: Check all the arguments of the ternary operatorlupoDharkael
2019-11-12Merge pull request #32966 from ffaristocrat/fix-hex-parsingRémi Verschelde
Fix base 16 hex literal parsing
2019-11-12Fixes #32963 by correctly parsing bin/hex literalsMicheál Keane
2019-11-11Remove ERR_EXPLAIN macros and the scaffolding they needed.Marcel Admiraal
2019-11-11Remove all uses of ERR_EXPLAIN macros.Marcel Admiraal
2019-11-07Add setting to exclude addons from script warningsmashumafi