<feed xmlns='http://www.w3.org/2005/Atom'>
<title>tools.nes/tests/expected/unused_definition.txt, branch main</title>
<subtitle>Tools for NES/Famicom development.
</subtitle>
<id>https://git.mssola.com/nes/tools.nes/atom?h=main</id>
<link rel='self' href='https://git.mssola.com/nes/tools.nes/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.mssola.com/nes/tools.nes/'/>
<updated>2026-07-07T21:26:50Z</updated>
<entry>
<title>Be more specific on unused objects</title>
<updated>2026-07-07T21:26:50Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mssola@mssola.com</email>
</author>
<published>2026-07-07T21:25:49Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/nes/tools.nes/commit/?id=2b1356d371b52d68243ddebbfcf3f65047c2fd76'/>
<id>urn:sha1:2b1356d371b52d68243ddebbfcf3f65047c2fd76</id>
<content type='text'>
It was downright lazy from my end to not inspect the line of the object
that was being unused. Fix this by trying to fetch the bundle's node.

This right now applies to variable definitions. Objects like macro
arguments are pending to be done.

Signed-off-by: Miquel Sabaté Solà &lt;mssola@mssola.com&gt;
</content>
</entry>
<entry>
<title>Refer to the original file for unused objects</title>
<updated>2026-06-05T21:32:39Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mssola@mssola.com</email>
</author>
<published>2026-06-05T21:32:39Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/nes/tools.nes/commit/?id=85a68dbdcd0200a711bacda9c7170129350813c8'/>
<id>urn:sha1:85a68dbdcd0200a711bacda9c7170129350813c8</id>
<content type='text'>
When warning users on unused objects (e.g. variables, proc's), we have
to pick up the source of origin for this warning. In places where the
original PNode is not available, then we go with the last source we have
at hand, as that's the usual way to go (i.e. the error occurred at the
current source/context).

That being said, for unused objects that's not desirable, because we
might otherwise claim the error to happen on the file we first
targetted, but it's way more useful to understand where the object was
defined.

Hence, when defining a variable, address or proc, let's actually store
the PNode associated with it as well. This way the checker can hopefully
get the source from this PNode and be more clear to the user.

Signed-off-by: Miquel Sabaté Solà &lt;mssola@mssola.com&gt;
</content>
</entry>
</feed>
