element method Null safety

Parser element()

Implementation

Parser element() => XmlToken.openElement
    .toParser()
    .seq(ref0(qualified))
    .seq(ref0(attributes))
    .seq(ref0(spaceOptional))
    .seq(XmlToken.closeEndElement.toParser().or(XmlToken.closeElement
        .toParser()
        .seq(ref0(content))
        .seq(XmlToken.openEndElement.toParser().token())
        .seq(ref0(qualified))
        .seq(ref0(spaceOptional))
        .seq(XmlToken.closeElement.toParser())));