getScopePath static method
Find the path from root scope to a given scope Useful for understanding scope hierarchy
Implementation
static List<String> getScopePath(ZenScope scope) {
final path = <String>[];
ZenScope? current = scope;
while (current != null) {
path.insert(0, current.name ?? current.id);
current = current.parent;
}
return path;
}