checkEndOfFile method

void checkEndOfFile()

Generate an error if file has not been completely consumed.

Implementation

void checkEndOfFile() {
  if (!(_peekKind(TokenKind.END_OF_FILE) || _peekKind(TokenKind.INCOMPLETE_COMMENT))) {
    _error('premature end of file unknown CSS');
  }
}