occurrenceByPathname method

HierarchyOccurrence? occurrenceByPathname(
  1. String pathname
)

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);
}