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

Fichier

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