GDScript: Add @warning_ignore_start and @warning_ignore_restore annotations
This commit is contained in:
parent
eb5103093c
commit
7d65d0a908
22 changed files with 221 additions and 89 deletions
|
|
@ -0,0 +1,5 @@
|
|||
@warning_ignore_start("unreachable_code")
|
||||
@warning_ignore_start("unreachable_code")
|
||||
|
||||
func test():
|
||||
pass
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
GDTEST_PARSER_ERROR
|
||||
Warning "UNREACHABLE_CODE" is already being ignored by "@warning_ignore_start" at line 1.
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
@warning_ignore_restore("unreachable_code")
|
||||
|
||||
func test():
|
||||
pass
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
GDTEST_PARSER_ERROR
|
||||
Warning "UNREACHABLE_CODE" is not being ignored by "@warning_ignore_start".
|
||||
Loading…
Add table
Add a link
Reference in a new issue