hierarchy method
override
Computes the same thing as Module.hierarchy after build, but can also be run before build with only context about ROHD Bridge-aware hierarchy.
Implementation
@override
Iterable<Module> hierarchy() {
Module? pModule = this;
final hierarchyQueue = Queue<Module>();
while (pModule != null) {
hierarchyQueue.addFirst(pModule);
pModule = pModule.parent;
}
return hierarchyQueue;
}