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 name = export.Name;
|
||||||
|
|
||||||
var baseType = export.MarkupTypeBase;
|
|
||||||
var baseTypeName = _context.GetQualifiedName(baseType);
|
|
||||||
|
|
||||||
XElement xExport = new(_nsUix + export.MarkupType.ToString(),
|
XElement xExport = new(_nsUix + export.MarkupType.ToString(),
|
||||||
new XAttribute("Name", name),
|
new XAttribute("Name", name));
|
||||||
new XAttribute("Base", baseTypeName));
|
|
||||||
|
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)
|
if (export.InitializePropertiesOffset is not uint.MaxValue)
|
||||||
AnalyzeMethodForInit(export.InitializePropertiesOffset, xExport, export, name + "_prop");
|
AnalyzeMethodForInit(export.InitializePropertiesOffset, xExport, export, name + "_prop");
|
||||||
|
|||||||
Reference in New Issue
Block a user