root property

DartdocOption root

The root DartdocOption containing this object, or this if the object has no parent.

Implementation

DartdocOption get root {
  DartdocOption p = this;
  while (p.parent != null) {
    p = p.parent;
  }
  return p;
}