public function JSTokenizer::mustMatch in Advanced CSS/JS Aggregation 7.2
Same name and namespace in other branches
- 8.4 advagg_js_minify/jsminplus.inc \JSTokenizer::mustMatch()
- 8.2 advagg_js_minify/jsminplus.inc \JSTokenizer::mustMatch()
- 8.3 advagg_js_minify/jsminplus.inc \JSTokenizer::mustMatch()
- 6 advagg_js_compress/jsminplus.inc \JSTokenizer::mustMatch()
- 7 advagg_js_compress/jsminplus.inc \JSTokenizer::mustMatch()
File
- advagg_js_compress/
jsminplus.inc, line 1981 - JSMinPlus version 1.4
Class
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();
}