Same name in other branches
- 5.0.x advagg_js_minify/jsminplus.inc \JSParser::parse()
- 7.x-1.x advagg_js_compress/jsminplus.inc \JSParser::parse()
- 7.x-2.x advagg_js_compress/jsminplus.inc \JSParser::parse()
- 8.x-2.x advagg_js_minify/jsminplus.inc \JSParser::parse()
- 8.x-3.x advagg_js_minify/jsminplus.inc \JSParser::parse()
- 8.x-4.x advagg_js_minify/jsminplus.inc \JSParser::parse()
Fichier
-
advagg_js_minify/
jsminplus.inc, line 872
Classe
Code
public function parse($s, $f, $l) {
// initialize tokenizer
$this->t
->init($s, $f, $l);
$x = new JSCompilerContext(false);
$n = $this->Script($x);
if (!$this->t
->isDone()) {
throw $this->t
->newSyntaxError('Syntax error');
}
return $n;
}