attachParentEvent method

  1. @internal
void attachParentEvent(
  1. XmlStartElementEvent? parentEvent
)
inherited

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;
}