mirror of
https://github.com/ZuneDev/ZuneUIXTools.git
synced 2026-07-27 13:11:59 -07:00
Support exported types without base types (e.g. Class)
This commit is contained in:
@@ -41,12 +41,15 @@ public partial class Decompiler
|
||||
{
|
||||
var name = export.Name;
|
||||
|
||||
var baseType = export.MarkupTypeBase;
|
||||
var baseTypeName = _context.GetQualifiedName(baseType);
|
||||
|
||||
XElement xExport = new(_nsUix + export.MarkupType.ToString(),
|
||||
new XAttribute("Name", name),
|
||||
new XAttribute("Base", baseTypeName));
|
||||
new XAttribute("Name", name));
|
||||
|
||||
var baseType = export.MarkupTypeBase;
|
||||
if (baseType is not null)
|
||||
{
|
||||
var baseTypeName = _context.GetQualifiedName(baseType);
|
||||
xExport.SetAttributeValue("Base", baseTypeName);
|
||||
}
|
||||
|
||||
if (export.InitializePropertiesOffset is not uint.MaxValue)
|
||||
AnalyzeMethodForInit(export.InitializePropertiesOffset, xExport, export, name + "_prop");
|
||||
|
||||
Reference in New Issue
Block a user