You are here

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

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

File

advagg_js_minify/jsminplus.inc, line 1980
JSMinPlus version 1.4

Class

JSTokenizer

Code

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