attribute method

  1. @override
Parser<XmlAttributeNaturalImpl> attribute()
override

Implementation

@override
Parser<XmlAttributeNaturalImpl> attribute() => attributeProd().token().map((a) {
      final each = a.value;
      return XmlAttributeNaturalImpl(
        _range(a),
        (each[0] as Token<dynamic>).value as XmlName,
        ((each[4] as Token<dynamic>).value as List<dynamic>)[0] as String,
        ((each[4] as Token<dynamic>).value as List<dynamic>)[1] as XmlAttributeType,
        _range(a.value[2] as Token<String>),
        _range<dynamic>(a.value[0] as Token<dynamic>),
        _range<dynamic>(a.value[4] as Token<dynamic>),
      );
    });