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

Fichier

advagg_js_minify/jsminplus.inc, line 1980

Classe

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