document method
Implementation
Parser<XmlDocumentNaturalImpl> document() => documentProd().token().map((a) {
final each = a.value;
return XmlDocumentNaturalImpl(
_range(a),
() {
final dynamic _decl = each[0];
if (_decl == null) {
return null;
} else {
return each[0] as XmlDeclarationNaturalImpl;
}
}(),
(each[1] as List<dynamic>).cast<XmlNode>(),
() {
final dynamic doctype = each[2];
if (doctype == null) {
return null;
} else {
return doctype as XmlDoctypeNaturalImpl;
}
}(),
(each[3] as List<dynamic>).cast<XmlNode>(),
each[4] as XmlElementNaturalImpl,
(each[5] as List<dynamic>).cast<XmlNode>(),
);
});