processEOF method

  1. @override
bool processEOF()
override

Implementation

@override
bool processEOF() {
  final last = tree.openElements.last;
  parser.parseError(last.sourceSpan, 'expected-named-closing-tag-but-got-eof',
      {'name': last.localName});
  tree.openElements.removeLast();
  parser.phase = parser.originalPhase!;
  return true;
}