gui-cs / TerminalGuiDesigner

Forms Designer for Terminal.Gui (aka gui.cs)
MIT License
426 stars 28 forks source link

Parse .Designer.cs file to detect renames #212

Open tznind opened 1 year ago

tznind commented 1 year ago

CodeToView is responsible for converting a users .Designer.cs code into a runtime state for the editor.

Currently the load process is as follows:

If a user renames fields manually then the Data property will not match the field name (see #211)

It should however be possible to use the CSharpSyntaxTree to find such assignments where the private field name does not match and either warn or override and take the users new name.