[wip] Rework load_libraryfile and LazyLibrary using overlays

This commit is contained in:
Jan Petykiewicz 2026-04-21 23:17:31 -07:00
commit e8e19a5a9b
7 changed files with 1204 additions and 616 deletions

View file

@ -131,6 +131,15 @@ class ILibraryView(Mapping[str, 'Pattern'], metaclass=ABCMeta):
"""
return Abstract(name=name, ports=self[name].ports)
def source_order(self) -> tuple[str, ...]:
"""
Return names in the library's preferred source order.
Source-backed views may override this to preserve on-disk ordering
without materializing patterns.
"""
return tuple(self.keys())
def dangling_refs(
self,
tops: str | Sequence[str] | None = None,