CharParser constructor

CharParser(
  1. int c
)

Implementation

CharParser(this.c) : _res = Tuple1(c) {
  if (c >= 0xd800 && c <= 0xdfff) {
    throw RangeError.value(c, 'c', 'Not a valid UTF-16 character');
  }

  label = '[0x${c.toRadixString(16)}]';
  quote = false;
}