summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_editor.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Reworked signal connection system, added support for Callable and Signal ↵Juan Linietsky2020-02-201-14/+14
| | | | objects and made them default.
* PoolVector is gone, replaced by VectorJuan Linietsky2020-02-181-3/+3
| | | | | Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
* Remove deprecated sync and slave networking keywordsRémi Verschelde2020-02-131-1/+1
| | | | | | 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 #35218 from bojidar-bg/26691-parse-error-errorsRémi Verschelde2020-01-161-1/+3
|\ | | | | Fix errors raised when showing parse errors in the editor
| * Fix errors raised when showing parse errors in the editorBojidar Marinov2020-01-161-1/+3
| | | | | | | | Fixes #26691
* | Fix function arguments hint format in GDScript editorDanil Alexeev2020-01-161-15/+3
|/ | | | | for consistency with the format of the documentation: "type func_name(arg1: type, arg2: type)"
* Update copyright statements to 2020Rémi Verschelde2020-01-011-2/+2
| | | | | | | | | | | 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.
* Fix GDScript autocompletion with `as` or typed variablesBojidar Marinov2019-12-121-0/+11
| | | | Fixes #31818, fixes #33434
* Make the script templates' blank lines conform with the official style guideMichael Alexsander2019-11-171-0/+3
|
* Fix autocompletion for singletonsEbbDrop2019-10-171-5/+4
|
* Adds skip-breakpoints featureiwek72019-09-031-2/+3
|
* Try and show all the properties added with _get_property_list() when ↵MrCdK2019-09-031-3/+12
| | | | | | triggering completion. Closes https://github.com/godotengine/godot/issues/25097
* gdscript: Fix build after #24925Rémi Verschelde2019-09-021-1/+2
| | | | | | The PR did not use the ScriptCodeCompletionOption system introduced later on, and somehow this did not generate a merge conflict even though neighboring code was changed.
* Merge pull request #24925 from Mr-Slurpy/typed-autoloadRémi Verschelde2019-09-021-0/+9
|\ | | | | Added autoloads as a potential type.
| * Added autoloads as a potential type.Daniel Eliasinski2019-01-111-0/+9
| |
* | Replace last occurrences of 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG'Rémi Verschelde2019-08-171-1/+1
| | | | | | | | | | | | | | | | | | | | The last remaining ERR_EXPLAIN call is in FreeType code and makes sense as is (conditionally defines the error message). There are a few ERR_EXPLAINC calls for C-strings where String is not included which can stay as is to avoid adding additional _MSGC macros just for that. Part of #31244.
* | Merge pull request #30576 from qarmin/lgtm_coverageRémi Verschelde2019-07-201-2/+0
|\ \ | | | | | | Changed some code reported by LGTM and Coverity
| * | Changed some code showed in LGTM and Coverageqarmin2019-07-201-2/+0
| | |
* | | Remove useless casts to StringNils ANDRÉ-CHANG2019-07-171-2/+2
| | |
* | | Show static functions inside classes in method listNils ANDRÉ-CHANG2019-07-151-0/+4
|/ /
* | Parse more informations for code completionGeequlim2019-07-041-75/+144
| |
* | Many fallthrough switch cases now have the FALLTHROUGH macro to tell the ↵hbina0852019-06-291-4/+8
| | | | | | | | compiler that this is intended.
* | Merge pull request #28099 from lupoDharkael/fix-completionRémi Verschelde2019-06-031-7/+7
|\ \ | | | | | | Fix code completion not working with class_name
| * | Don't allow class_name in built-in scriptslupoDharkael2019-04-171-3/+3
| | |
| * | Fix code completion not working with class_namelupoDharkael2019-04-161-4/+4
| | |
* | | autocomplete for enum valueshilfazer2019-05-261-1/+1
| | |
* | | Fix slight issues with autocompletion and member lists in GDScriptBojidar Marinov2019-05-021-1/+1
| | | | | | | | | | | | | | | Fixes #27152 Fixes #28591
* | | Merge pull request #27676 from qarmin/small_fixes_2Rémi Verschelde2019-05-011-7/+4
|\ \ \ | | | | | | | | Small fixes to static analyzer bugs
| * | | Small fixes to static analyzer bugsqarmin2019-04-041-7/+4
| | | |
* | | | Merge pull request #24437 from mateusfccp/single_quotes_optionRémi Verschelde2019-04-301-12/+20
|\ \ \ \ | | | | | | | | | | Add settings for single-quotes on completion
| * | | | Add settings for single-quotes on completionMateus Felipe C. C. Pinto2018-12-181-12/+20
| | | | |
* | | | | Merge pull request #27673 from qarmin/small_fixesRémi Verschelde2019-04-221-1/+1
|\ \ \ \ \ | |_|_|/ / |/| | | | Small fixes, mostly duplicated code
| * | | | Small fixes, mostly dupicated codeqarmin2019-04-081-1/+1
| | |/ / | |/| |
* | | | Style: Apply new changes from clang-format 8.0Rémi Verschelde2019-04-091-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | It seems to stay compatible with formatting done by clang-format 6.0 and 7.0, so contributors can keep using those versions for now (they will not undo those changes).
* | | | Add support for type hints in non-default script editor templatesHugo Locurcio2019-04-051-25/+34
|/ / / | | | | | | | | | | | | | | | This also refactors template processing to avoid repetition. This closes #27074.
* | | Add -Wshadow=local to warnings and fix reported issues.marxin2019-02-201-14/+14
| | | | | | | | | | | | Fixes #25316.
* | | Merge pull request #25715 from hpvb/fix-25598Rémi Verschelde2019-02-161-9/+18
|\ \ \ | | | | | | | | Add a maximum recusion depth to _guess_expression_type
| * | | Add a maximum recusion depth to _guess_expression_typeHein-Pieter van Braam2019-02-081-9/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a recursive declaration ends up in a GDScript file the _guess_expression_type function would start looping and eventually run out of stack space. We now cap recusion for this function to 100 frames. This fixes #25598
* | | | Fix many asan and ubsan reported issuesHein-Pieter van Braam2019-01-301-0/+3
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | This allows most demos to run without any ubsan or asan errors. There are still some things in thirdpart/ and some things in AudioServer that needs a look but this fixes a lot of issues. This should help debug less obvious issues, hopefully. This fixes #25217 and fixes #25218
* | / GDScript autocomplete: don't carry values when guessing from `is`George Marques2019-01-151-1/+5
| |/ |/| | | | | | | Guessing the type from an `is` operator should no be considered an assigment. This would cause crashes in certain scenarios.
* | Fix code completion on nodes in current sceneTimo Schwarzer2019-01-051-1/+1
| |
* | Fix segfault when trying to autocomplete in inner classesTimo Schwarzer2019-01-031-2/+6
| | | | | | | | Fixes #24697
* | Update copyright statements to 2019Rémi Verschelde2019-01-011-2/+2
|/ | | | Happy new year to the wonderful Godot community!
* Fix GDScript assuming awareness of whole ClassDBPedro J. Estébanez2018-10-281-1/+6
|
* Unify ClassDB lookups for code completionPedro J. Estébanez2018-10-281-28/+24
|
* Optional getters/setters editor autocompleteJakub Grzesik2018-10-231-1/+2
| | | | solves #22291
* Fix warning about functions defined but not used [-Wunused-function]Rémi Verschelde2018-09-291-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes the following GCC 5 warnings: ``` core/io/zip_io.h:128:26: warning: 'zlib_filefunc_def zipio_create_io_from_file(FileAccess**)' defined but not used [-Wunused-function] core/script_debugger_remote.cpp:110:17: warning: 'ObjectID safe_get_instance_id(const Variant&)' defined but not used [-Wunused-function] drivers/unix/socket_helpers.h:103:12: warning: 'int _socket_create(IP::Type&, int, int)' defined but not used [-Wunused-function] drivers/unix/socket_helpers.h:45:15: warning: 'size_t _set_sockaddr(sockaddr_storage*, const IP_Address&, int, IP::Type)' defined but not used [-Wunused-function] drivers/unix/socket_helpers.h:76:15: warning: 'size_t _set_listen_sockaddr(sockaddr_storage*, int, IP::Type, IP_Address)' defined but not used [-Wunused-function] editor/editor_fonts.cpp:40:24: warning: 'Ref<BitmapFont> make_font(int, int, int, int, const int*, const Ref<Texture>&)' defined but not used [-Wunused-function] editor/editor_themes.cpp:85:26: warning: 'Ref<StyleBoxFlat> change_border_color(Ref<StyleBoxFlat>, Color)' defined but not used [-Wunused-function] editor/import/editor_import_collada.cpp:493:13: warning: 'void _generate_normals(const PoolVector<int>&, const PoolVector<Vector3>&, PoolVector<Vector3>&)' defined but not used [-Wunused-function] editor/import/editor_import_collada.cpp:524:13: warning: 'void _generate_tangents_and_binormals(const PoolVector<int>&, const PoolVector<Vector3>&, const PoolVector<Vector3>&, const PoolVector<Vector3>&, PoolVector<float>&)' defined but not used [-Wunused-function] editor/pvrtc_compress.cpp:118:13: warning: 'void _compress_etc(Image*)' defined but not used [-Wunused-function] modules/etc/image_etc.cpp:89:13: warning: 'void _decompress_etc1(Image*)' defined but not used [-Wunused-function] modules/etc/image_etc.cpp:93:13: warning: 'void _decompress_etc2(Image*)' defined but not used [-Wunused-function] modules/gdscript/editor/gdscript_highlighter.cpp:46:13: warning: 'bool _is_whitespace(CharType)' defined but not used [-Wunused-function] scene/2d/cpu_particles_2d.cpp:510:14: warning: 'float rand_from_seed_m1_p1(uint32_t&)' defined but not used [-Wunused-function] scene/3d/cpu_particles.cpp:474:14: warning: 'float rand_from_seed_m1_p1(uint32_t&)' defined but not used [-Wunused-function] scene/resources/default_theme/default_theme.cpp:123:20: warning: 'Ref<Shader> make_shader(const char*, const char*, const char*)' defined but not used [-Wunused-function] scene/resources/default_theme/default_theme.cpp:130:24: warning: 'Ref<BitmapFont> make_font(int, int, int, int, const int*, const Ref<Texture>&)' defined but not used [-Wunused-function] ``` Had to split `core/io/zip_io.h` into header and .cpp file without 'static' keyword. Not fixed yet (static definition in header used in some files but not all): ``` modules/websocket/lws_helper.h:111:13: warning: 'void _lws_make_protocols(void*, int (*)(lws*, lws_callback_reasons, void*, void*, size_t), PoolVector<String>, _LWSRef**)' defined but not used [-Wunused-function] ``` Also fixed a couple other warnings missed in previous commits.
* Fix warnings about unhandled enum value in switch [-Wswitch]Rémi Verschelde2018-09-271-0/+2
| | | | | | | | | | | Fixes GCC 5 warnings of the form: core/io/http_client.cpp:288:9: warning: enumeration value 'STATUS_SSL_HANDSHAKE_ERROR' not handled in switch [-Wswitch] core/io/marshalls.cpp:806:9: warning: enumeration value 'AABB' not handled in switch [-Wswitch] Those can be trivial cases where adding a default fallback is the solution, or more complex issues/hidden bugs where missed values are actually meant to be handled.
* Fix warnings about unused variables [-Wunused-variable]Rémi Verschelde2018-09-271-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes the following GCC 5 warnings: ``` drivers/gles2/rasterizer_scene_gles2.cpp:1139:15: warning: unused variable 'offset' [-Wunused-variable] drivers/gles2/rasterizer_scene_gles2.cpp:1205:39: warning: unused variable 'multi_mesh' [-Wunused-variable] drivers/gles2/rasterizer_storage_gles2.cpp:359:7: warning: unused variable 'srgb' [-Wunused-variable] drivers/gles2/shader_gles2.cpp:1016:45: warning: unused variable 'texture_hints' [-Wunused-variable] editor/animation_track_editor.cpp:776:9: warning: unused variable 'keys_to' [-Wunused-variable] editor/editor_inspector.cpp:273:7: warning: unused variable 'vs_height' [-Wunused-variable] editor/editor_themes.cpp:202:10: warning: unused variable 'begin_time' [-Wunused-variable] editor/editor_themes.cpp:239:10: warning: unused variable 'end_time' [-Wunused-variable] editor/plugins/animation_blend_tree_editor_plugin.cpp:726:17: warning: unused variable 'an' [-Wunused-variable] editor/plugins/script_text_editor.cpp:1278:8: warning: unused variable 'fold_state' [-Wunused-variable] main/main.cpp:132:13: warning: 'use_vsync' defined but not used [-Wunused-variable] modules/cvtt/image_compress_cvtt.cpp:231:8: warning: unused variable 'y_end' [-Wunused-variable] modules/cvtt/image_compress_cvtt.cpp:311:6: warning: unused variable 'shift' [-Wunused-variable] modules/gdscript/gdscript_editor.cpp:58:7: warning: unused variable 'th' [-Wunused-variable] modules/gridmap/grid_map.cpp:1084:6: warning: unused variable 'ofs' [-Wunused-variable] modules/theora/video_stream_theora.cpp:442:9: warning: unused variable 'tr' [-Wunused-variable] modules/visual_script/visual_script_editor.cpp:2606:6: warning: unused variable 'count' [-Wunused-variable] modules/visual_script/visual_script_editor.cpp:2829:6: warning: unused variable 'seq_count' [-Wunused-variable] modules/visual_script/visual_script_editor.cpp:2844:24: warning: unused variable 'vnode_function' [-Wunused-variable] modules/websocket/lws_peer.cpp:122:12: warning: unused variable 'peer_data' [-Wunused-variable] modules/websocket/lws_peer.cpp:135:12: warning: unused variable 'peer_data' [-Wunused-variable] modules/websocket/lws_peer.cpp:63:12: warning: unused variable 'peer_data' [-Wunused-variable] modules/websocket/lws_peer.cpp:91:12: warning: unused variable 'peer_data' [-Wunused-variable] platform/android/export/export.cpp:763:16: warning: unused variable 'node_size' [-Wunused-variable] scene/gui/rich_text_label.cpp:850:10: warning: unused variable 'x_ofs' [-Wunused-variable] scene/gui/text_edit.cpp:653:8: warning: unused variable 'tab_w' [-Wunused-variable] scene/resources/bit_mask.cpp:186:6: warning: unused variable 'i' [-Wunused-variable] scene/resources/mesh.cpp:549:20: warning: '_array_name' defined but not used [-Wunused-variable] servers/audio/audio_rb_resampler.cpp:107:10: warning: unused variable 'v2' [-Wunused-variable] servers/audio/audio_rb_resampler.cpp:108:10: warning: unused variable 'v3' [-Wunused-variable] servers/audio/audio_rb_resampler.cpp:109:10: warning: unused variable 'v4' [-Wunused-variable] servers/audio/audio_rb_resampler.cpp:110:10: warning: unused variable 'v5' [-Wunused-variable] servers/audio/audio_rb_resampler.cpp:111:10: warning: unused variable 'v0n' [-Wunused-variable] servers/audio/audio_rb_resampler.cpp:112:10: warning: unused variable 'v1n' [-Wunused-variable] servers/audio/audio_rb_resampler.cpp:113:10: warning: unused variable 'v2n' [-Wunused-variable] servers/audio/audio_rb_resampler.cpp:114:10: warning: unused variable 'v3n' [-Wunused-variable] servers/audio/audio_rb_resampler.cpp:115:10: warning: unused variable 'v4n' [-Wunused-variable] servers/audio/audio_rb_resampler.cpp:116:10: warning: unused variable 'v5n' [-Wunused-variable] servers/visual/default_mouse_cursor.xpm:2:21: warning: 'default_mouse_cursor_xpm' defined but not used [-Wunused-variable] ```
* GDScript: Fix autocompletion inference after `is` checkGeorge Marques2018-09-191-0/+1
| | | | Fix #21915