path property

List<String> get path

Returns path to this node such that ProgramInfo.lookup would return this node given its path.

Implementation

List<String> get path {
  final result = <String>[];
  var n = this;
  while (n.parent != null) {
    result.add(n.name);
    n = n.parent!;
  }
  return result.reversed.toList();
}