You are here

public function JSTokenizer::mustMatch in Javascript Aggregator 6

File

./jsminplus.php, line 1785

Class

JSTokenizer

Code

public function mustMatch($tt) {
  if (!$this
    ->match($tt)) {
    throw $this
      ->newSyntaxError('Unexpected token; token ' . $tt . ' expected');
  }
  return $this
    ->currentToken();
}