occurrenceByAddress method
- OccurrenceAddress addr
Look up a node by its OccurrenceAddress.
Address [] maps to the root wrapper ("r").
Address 0 maps to the top module ("0").
Address 0, 1, 2 maps to node "0.1.2".
Implementation
LayoutNode? occurrenceByAddress(OccurrenceAddress addr) =>
nodeMap[addr.path.isEmpty ? 'r' : addr.path.join('.')];