godot/modules/gdscript
ocean (they/them) 25c90836fd GDScript: do not warn of return value discarded for super() inside _init()
DO NOT BATCH MERGE WITH #77324, WILL RESULT IN BROKEN CI

Currently, calling super() inside _init() throws a
RETURN_VALUE_DISCARDED warning. The analyzer identifies super() as being a
constructor, which therefore returns an object of the relevant class.
However, super() isn't really a constructor by itself: in this case, it
is _part_ of the constructor, and so doesn't "return" a value.

A test case for this is already in #77324, which contains the warning. I
am duplicating it here, without the warning, and it should conflict with
the other PR.
2023-05-22 09:29:34 -04:00
..
doc_classes Docs: Point to @GDScript in GDscript (script impl) 2023-05-17 13:47:33 +02:00
editor Dump API docs from inline GDScript comments using --doctool --gdscript-docs PATH 2023-05-08 11:00:29 -05:00
icons Make script type distinguishable by icon 2022-01-13 12:29:05 +01:00
language_server LSP: don't send empty completion command 2023-05-06 20:56:15 +01:00
tests GDScript: do not warn of return value discarded for super() inside _init() 2023-05-22 09:29:34 -04:00
config.py [Scons] Implement module dependency sorting. 2022-08-04 20:00:19 +02:00
gdscript.cpp GDScript: Fix template_debug compilation with TOOLS/DEBUG macro mismatch 2023-04-28 11:09:12 +02:00
gdscript.h Add support for static variables in GDScript 2023-04-27 09:51:44 -03:00
gdscript_analyzer.cpp GDScript: do not warn of return value discarded for super() inside _init() 2023-05-22 09:29:34 -04:00
gdscript_analyzer.h Add support for static variables in GDScript 2023-04-27 09:51:44 -03:00
gdscript_byte_codegen.cpp Fix edge cases of object lifetime when signals involved 2023-04-11 17:27:39 +02:00
gdscript_byte_codegen.h Add support for static variables in GDScript 2023-04-27 09:51:44 -03:00
gdscript_cache.cpp Add support for static variables in GDScript 2023-04-27 09:51:44 -03:00
gdscript_cache.h Add support for static variables in GDScript 2023-04-27 09:51:44 -03:00
gdscript_codegen.h Add support for static variables in GDScript 2023-04-27 09:51:44 -03:00
gdscript_compiler.cpp Add support for static variables in GDScript 2023-04-27 09:51:44 -03:00
gdscript_compiler.h Add support for static variables in GDScript 2023-04-27 09:51:44 -03:00
gdscript_disassembler.cpp GDScript: Fix wrong increment for disassembly of lambda 2023-02-27 11:19:22 -03:00
gdscript_editor.cpp Merge pull request #72288 from MewPurPur/use-string-repeat 2023-05-05 09:56:48 -07:00
gdscript_function.cpp Merge pull request #65910 from KoBeWi/gdsus 2023-02-03 16:13:06 +01:00
gdscript_function.h Add support for static variables in GDScript 2023-04-27 09:51:44 -03:00
gdscript_lambda_callable.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
gdscript_lambda_callable.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
gdscript_parser.cpp Rework Navigation Avoidance 2023-05-10 05:01:58 +02:00
gdscript_parser.h Add support for static variables in GDScript 2023-04-27 09:51:44 -03:00
gdscript_rpc_callable.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
gdscript_rpc_callable.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
gdscript_tokenizer.cpp Fix for mixed tabs and spaces in gdscript 2023-04-20 12:08:23 +02:00
gdscript_tokenizer.h Add support for Unicode identifiers in GDScript 2023-01-21 13:39:40 -03:00
gdscript_utility_functions.cpp GDScript: Rework type check 2023-02-17 19:57:18 +02:00
gdscript_utility_functions.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
gdscript_vm.cpp Merge pull request #75732 from vonagam/fix-duplicate-condition 2023-04-28 18:45:25 +02:00
gdscript_warning.cpp GDScript: Reorganize and unify warnings 2023-04-28 18:25:11 +03:00
gdscript_warning.h GDScript: Reorganize and unify warnings 2023-04-28 18:25:11 +03:00
register_types.cpp Remove references to compiled GDScript in export 2023-01-20 15:09:07 -03:00
register_types.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
SCsub SCons: Unify tools/target build type configuration 2022-09-26 16:31:46 +02:00