readChar method

  1. @override
int readChar()
override

Consumes a single character and returns its character code.

This throws a FormatException if the string has been fully consumed. It doesn't affect lastMatch.

Implementation

@override
int readChar() {
  final character = super.readChar();
  _adjustLineAndColumn(character);
  return character;
}