1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-29 16:16:38 +00:00

Fix error on parsing statement-less GDScript files,

add an empty file warning,
add relevant tests.
This commit is contained in:
ThreeRhinosInAnElephantCostume
2021-09-11 20:38:15 +02:00
parent bb0122c933
commit e99730340b
13 changed files with 57 additions and 4 deletions

View File

@@ -68,6 +68,7 @@ public:
ASSERT_ALWAYS_TRUE, // Expression for assert argument is always true.
ASSERT_ALWAYS_FALSE, // Expression for assert argument is always false.
REDUNDANT_AWAIT, // await is used but expression is synchronous (not a signal nor a coroutine).
EMPTY_FILE, // A script file is empty.
WARNING_MAX,
};