Same name and namespace in other branches
  1. 6.0.x advagg_js_minify/jsminplus.inc \JSTokenizer::mustMatch() 1 comment
  2. 7.x-1.x advagg_js_compress/jsminplus.inc \JSTokenizer::mustMatch() 1 comment
  3. 7.x-2.x advagg_js_compress/jsminplus.inc \JSTokenizer::mustMatch() 1 comment
  4. 8.x-2.x advagg_js_minify/jsminplus.inc \JSTokenizer::mustMatch() 1 comment
  5. 8.x-3.x advagg_js_minify/jsminplus.inc \JSTokenizer::mustMatch() 1 comment
  6. 8.x-4.x advagg_js_minify/jsminplus.inc \JSTokenizer::mustMatch() 1 comment

File

advagg_js_minify/jsminplus.inc, line 1980

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();
}