occurrenceByPathname method
Resolve a /-separated pathname to a HierarchyOccurrence.
Ignores signals, including a signal with the same name as an occurrence in a legacy netlist.
Implementation
HierarchyOccurrence? occurrenceByPathname(String pathname) {
final addr = OccurrenceAddress.tryFromPathname(
pathname,
root,
occurrencesOnly: true,
);
return addr == null ? null : occurrenceByAddress(addr);
}