BaseHierarchyAdapter.fromTree constructor
- HierarchyOccurrence rootNode
Creates an adapter wrapping an existing HierarchyOccurrence tree.
The tree itself is the single source of truth — children and signals are read directly from the HierarchyOccurrence lists.
Example usage:
final treeRoot = await dataSource.evalModuleTree();
final service = BaseHierarchyAdapter.fromTree(treeRoot);
final paths = service.searchSignalPaths('clk');
Implementation
factory BaseHierarchyAdapter.fromTree(
HierarchyOccurrence rootNode,
) = _TreeBackedAdapter;