declaration method

  1. @override
Parser<XmlDeclarationNaturalImpl> declaration()
override

Implementation

@override
Parser<XmlDeclarationNaturalImpl> declaration() => declarationProd().token().map((a) {
      final each = a.value;
      return XmlDeclarationNaturalImpl(
        _range(a),
        (each[1] as Iterable<dynamic>).cast<XmlAttributeNaturalImpl>(),
      );
    });