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

Fichier

advagg_js_compress/jsminplus.inc, line 872

Classe

JSParser

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