1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-09-11 20:54:37 +00:00
6502bench/SourceGen/WpfGui
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
..
AboutBox.xaml Minor updates 2019-10-25 18:16:09 -07:00
AboutBox.xaml.cs Minor updates 2019-10-25 18:16:09 -07:00
CodeListItemStyle.xaml SourceGen After Dark 2019-10-12 17:23:32 -07:00
DataFileLoadIssue.xaml Minor fixes 2019-09-21 18:49:03 -07:00
DataFileLoadIssue.xaml.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
DiscardChanges.xaml Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
DiscardChanges.xaml.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
EditAddress.xaml Show load address in Edit Address dialog 2019-10-22 13:58:32 -07:00
EditAddress.xaml.cs Show load address in Edit Address dialog 2019-10-22 13:58:32 -07:00
EditAppSettings.xaml Finish removal of "disable label localizer" feature 2019-11-16 17:15:03 -08:00
EditAppSettings.xaml.cs Finish removal of "disable label localizer" feature 2019-11-16 17:15:03 -08:00
EditComment.xaml Minor UI tweaks 2019-09-18 18:11:48 -07:00
EditComment.xaml.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
EditDataOperand.xaml Add junk/align directives 2019-10-18 21:00:28 -07:00
EditDataOperand.xaml.cs Label rework, part 4 2019-11-16 16:44:08 -08:00
EditDefSymbol.xaml Limit value range of project address symbols 2019-10-27 15:36:47 -07:00
EditDefSymbol.xaml.cs Label rework, part 2 2019-11-12 17:44:51 -08:00
EditInstructionOperand.xaml Fix HTML output 2019-09-17 19:13:28 -07:00
EditInstructionOperand.xaml.cs Label rework, part 6 2019-11-18 13:36:53 -08:00
EditLabel.xaml Label rework, part 2 2019-11-12 17:44:51 -08:00
EditLabel.xaml.cs Label rework, part 6 2019-11-18 13:36:53 -08:00
EditLocalVariableTable.xaml Allow explicit widths in project/platform symbols, part 2 2019-10-01 19:11:54 -07:00
EditLocalVariableTable.xaml.cs Label rework, part 2 2019-11-12 17:44:51 -08:00
EditLongComment.xaml Tweak line folding code 2019-11-01 19:47:56 -07:00
EditLongComment.xaml.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
EditLvTableLocation.xaml Add a "move table" button 2019-09-01 16:40:54 -07:00
EditLvTableLocation.xaml.cs Add a "move table" button 2019-09-01 16:40:54 -07:00
EditNote.xaml Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
EditNote.xaml.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
EditProjectProperties.xaml Add change discard confirmation to project properties editor 2019-11-04 17:41:33 -08:00
EditProjectProperties.xaml.cs Label rework, part 2 2019-11-12 17:44:51 -08:00
EditStatusFlags.xaml Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
EditStatusFlags.xaml.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
Export.xaml Make "long labels on new line" configurable in export dialog 2019-09-18 11:14:20 -07:00
Export.xaml.cs Replace '#' with '_' in .html filename 2019-10-10 14:00:52 -07:00
FindBox.xaml Add "find previous" 2019-10-09 17:47:07 -07:00
FindBox.xaml.cs Add "find previous" 2019-10-09 17:47:07 -07:00
FontPicker.xaml Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
FontPicker.xaml.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
FormatAddressTable.xaml Rename FormatSplitAddress to FormatAddressTable 2019-09-15 13:37:38 -07:00
FormatAddressTable.xaml.cs Label rework, part 6 2019-11-18 13:36:53 -08:00
GotoBox.xaml Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
GotoBox.xaml.cs Label rework, part 4 2019-11-16 16:44:08 -08:00
MainWindow.xaml Label rework, part 6 2019-11-18 13:36:53 -08:00
MainWindow.xaml.cs Label rework, part 6 2019-11-18 13:36:53 -08:00
NewProject.xaml Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
NewProject.xaml.cs Fix startup issues 2019-07-20 17:36:12 -07:00
ProjectLoadIssues.xaml Fix visibility binding 2019-10-27 10:38:29 -07:00
ProjectLoadIssues.xaml.cs Open damaged projects in read-only mode 2019-10-26 13:20:54 -07:00