root property
The top-level element. Throws if there is none, as JavaRosa does.
Implementation
@override
TreeElement get root {
if (_base.numChildren == 0) throw StateError('root node has no children');
return _base.childAt(0);
}
The top-level element. Throws if there is none, as JavaRosa does.
@override
TreeElement get root {
if (_base.numChildren == 0) throw StateError('root node has no children');
return _base.childAt(0);
}