1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-07-07 07:28:57 +00:00
6502bench/SourceGen/Res
Andy McFadden d3670c48e8 Label rework, part 6
Correct handling of local variables.  We now correctly uniquify them
with regard to non-unique labels.  Because local vars can effectively
have global scope we mostly want to treat them as global, but they're
uniquified relative to other globals very late in the process, so we
can't just throw them in the symbol table and be done.  Fortunately
local variables exist in a separate namespace, so we just need to
uniquify the variables relative to the post-localization symbol table.
In other words, we take the symbol table, apply the label map, and
rename any variable that clashes.

This also fixes an older problem where we weren't masking the
leading '_' on variable labels when generating 64tass output.

The code list now makes non-unique labels obvious, but you can't tell
the difference between unique global and unique local.  What's more,
the default type value in Edit Label is now adjusted to Global for
unique locals that were auto-generated.  To make it a bit easier to
figure out what's what, the Info panel now has a "label type" line
that reports the type.

The 2023-non-unique-labels test had some additional tests added to
exercise conflicts with local variables.  The 2019-local-variables
test output changed slightly because the de-duplicated variable
naming convention was simplified.
2019-11-18 13:36:53 -08:00
..
AboutImage.png Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
CommandIcons.xaml Add toolbar button for "Go to Last Change" 2019-11-04 15:22:56 -08:00
Logo.png Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
SourceGenIcon.ico Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
Strings.xaml Label rework, part 6 2019-11-18 13:36:53 -08:00
Strings.xaml.cs Label rework, part 6 2019-11-18 13:36:53 -08:00
Theme_Dark.xaml SourceGen After Dark 2019-10-12 17:23:32 -07:00
Theme_Light.xaml SourceGen After Dark 2019-10-12 17:23:32 -07:00