Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for not being able to ignore shadowing warnings on class scope
- Loading branch information
Showing
7 changed files
with
41 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
modules/gdscript/tests/scripts/analyzer/features/allow_get_node_with_onready.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
GDTEST_OK | ||
shorthand <null> | ||
call <null> | ||
call_no_cast <null> | ||
shorthand_with_cast <null> | ||
call_with_cast <null> |
4 changes: 4 additions & 0 deletions
4
modules/gdscript/tests/scripts/analyzer/warnings/shadowning.gd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 10 additions & 6 deletions
16
modules/gdscript/tests/scripts/analyzer/warnings/shadowning.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,30 @@ | ||
GDTEST_OK | ||
>> WARNING | ||
>> Line: 5 | ||
>> Line: 3 | ||
>> SHADOWED_GLOBAL_IDENTIFIER | ||
>> The variable 'print_debug' has the same name as a built-in function. | ||
>> WARNING | ||
>> Line: 9 | ||
>> SHADOWED_GLOBAL_IDENTIFIER | ||
>> The variable 'Array' has the same name as a built-in type. | ||
>> WARNING | ||
>> Line: 6 | ||
>> Line: 10 | ||
>> SHADOWED_GLOBAL_IDENTIFIER | ||
>> The variable 'Node' has the same name as a global class. | ||
>> WARNING | ||
>> Line: 7 | ||
>> Line: 11 | ||
>> SHADOWED_GLOBAL_IDENTIFIER | ||
>> The variable 'is_same' has the same name as a built-in function. | ||
>> WARNING | ||
>> Line: 8 | ||
>> Line: 12 | ||
>> SHADOWED_GLOBAL_IDENTIFIER | ||
>> The variable 'sqrt' has the same name as a built-in function. | ||
>> WARNING | ||
>> Line: 9 | ||
>> Line: 13 | ||
>> SHADOWED_VARIABLE | ||
>> The local variable "member" is shadowing an already-declared variable at line 1. | ||
>> WARNING | ||
>> Line: 10 | ||
>> Line: 14 | ||
>> SHADOWED_VARIABLE_BASE_CLASS | ||
>> The local variable "reference" is shadowing an already-declared method at the base class "RefCounted". | ||
warn |