godot/modules/gdscript
Daniel Spaniol 044ec35f62 Require `return` in all match branches
Before the parser only checked if the catch-all branch has a return in
order to determine if the entire match block has a return.

This code block was assumed to always return.

    match value:
        "test":
            print("test")
        _:
            return

Now as soon as one of the branches has no return, the entire match block
is marked to not have a return.

(cherry picked from commit 79176decd5)
2019-04-03 16:51:43 +02:00
..
doc_classes doc: Use HTTPS for docs.godotengine.org and point to latest branch 2018-11-05 08:46:27 +01:00
editor Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
SCsub SCons: Build thirdparty code in own env, disable warnings 2018-09-28 14:07:39 +02:00
config.py SCons: Pass env to modules can_build method 2018-05-30 19:11:36 +02:00
gdscript.cpp Fix typo in GDScript narrowing conversion warning message 2019-03-08 14:28:33 +01:00
gdscript.h Add a dependency search mode for GDScript parser 2019-03-03 16:51:54 -03:00
gdscript_compiler.cpp Fix duplicated lines in GDScript bytecode 2019-03-16 10:42:28 -07:00
gdscript_compiler.h Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
gdscript_editor.cpp Add -Wshadow=local to warnings and fix reported issues. 2019-02-20 19:44:12 +01:00
gdscript_function.cpp Revert "Forbid implicit type conversion in GDScript" 2019-03-04 12:25:59 +01:00
gdscript_function.h Revert "Forbid implicit type conversion in GDScript" 2019-03-04 12:25:59 +01:00
gdscript_functions.cpp GDScript: Fix return value of "lerp" builtin 2019-01-18 10:47:04 +01:00
gdscript_functions.h Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
gdscript_parser.cpp Require `return` in all match branches 2019-04-03 16:51:43 +02:00
gdscript_parser.h Revert "Forbid implicit type conversion in GDScript" 2019-03-04 12:25:59 +01:00
gdscript_tokenizer.cpp Fix -Wsign-compare warnings. 2019-02-27 07:45:57 +01:00
gdscript_tokenizer.h Fix warnings seen with -Wignored-qualifiers. 2019-02-21 20:24:29 +01:00
register_types.cpp Merge pull request #24883 from akien-mga/resourceformat-unregister 2019-01-10 14:25:09 +01:00
register_types.h Update copyright statements to 2019 2019-01-01 12:58:10 +01:00