KeyValue<O1, O2> constructor

KeyValue<O1, O2>(
  1. StringParser<O1> key,
  2. StringParser<O2> value,
  3. int sep,
  4. AnyStringParser ws,
)

Implementation

KeyValue(this.key, this.value, this.sep, this.ws) {
  checkUtf16CodePoint(sep);
  final printableSep = printableChar(sep);
  label =
      'keyValue(${Parser.quote(key)} $printableSep ${Parser.quote(value)} ${Parser.quote(ws)})';
  error = ParseError.expected(printableSep);
}