mirror of
https://github.com/ZuneDev/ZuneUIXTools.git
synced 2026-07-27 13:11:59 -07:00
ASM: Deduplicate imports
This commit is contained in:
@@ -85,7 +85,9 @@ public class Disassembler
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<IImportDirective> GetImports()
|
public IEnumerable<IImportDirective> GetImports() => EnumerateImports().Distinct();
|
||||||
|
|
||||||
|
public IEnumerable<IImportDirective> EnumerateImports()
|
||||||
{
|
{
|
||||||
// Ues _importedUris to keep track of what has already been imported.
|
// Ues _importedUris to keep track of what has already been imported.
|
||||||
// Skip self and default UIX namespace.
|
// Skip self and default UIX namespace.
|
||||||
|
|||||||
Reference in New Issue
Block a user