GDScript: Fix @warning_ignore annotation issues

This commit is contained in:
Danil Alexeev
2024-02-28 17:23:11 +03:00
parent 61282068f4
commit ef1909fca3
25 changed files with 603 additions and 209 deletions
@@ -2,8 +2,8 @@ GDTEST_OK
>> WARNING
>> Line: 3
>> UNUSED_PRIVATE_CLASS_VARIABLE
>> The class variable "_a" is declared but never used in the script.
>> The class variable "_a" is declared but never used in the class.
>> WARNING
>> Line: 7
>> UNUSED_PRIVATE_CLASS_VARIABLE
>> The class variable "_d" is declared but never used in the script.
>> The class variable "_d" is declared but never used in the class.
@@ -0,0 +1,12 @@
signal s1()
signal s2()
signal s3()
@warning_ignore("unused_signal")
signal s4()
func no_exec():
s1.emit()
print(s2)
func test():
pass
@@ -0,0 +1,5 @@
GDTEST_OK
>> WARNING
>> Line: 3
>> UNUSED_SIGNAL
>> The signal "s3" is declared but never explicitly used in the class.