You are here

public function JSTokenizer::mustMatch in Advanced CSS/JS Aggregation 7

Same name and namespace in other branches
  1. 8.4 advagg_js_minify/jsminplus.inc \JSTokenizer::mustMatch()
  2. 8.2 advagg_js_minify/jsminplus.inc \JSTokenizer::mustMatch()
  3. 8.3 advagg_js_minify/jsminplus.inc \JSTokenizer::mustMatch()
  4. 6 advagg_js_compress/jsminplus.inc \JSTokenizer::mustMatch()
  5. 7.2 advagg_js_compress/jsminplus.inc \JSTokenizer::mustMatch()

File

advagg_js_compress/jsminplus.inc, line 1964

Class

JSTokenizer

Code

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