attachParentEvent method
Internal helper to attach a parent to this child, do not call directly.
Implementation
@internal
void attachParentEvent(XmlStartElementEvent? parentEvent) {
if (_parentEvent != null) {
throw StateError('Parent event already resolved.');
}
_parentEvent = parentEvent;
}