Files
godot/modules/gdscript/tests/scripts/parser
mattigu 292239db6b GDScript: Move variable/parameter usage tracking to the analyzer
Usage of variables and parameters was previously done in the parser by
incrementing usage whenever an identifier was parsed. This process was
unaware of accessing member variables, which caused the warning to not
be emitted when using a member variable with the same identifier as an
unused local variable.

This change moves the usage counting logic to `reduce_identifier` in the
analyzer which only runs on actual expressions. The warning emission was
also moved later into analyzing since the usage information is collected
later.
2026-07-13 20:08:28 +02:00
..