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

Fichier

advagg_js_minify/jsminplus.inc, line 885

Classe

JSParser

Code

private function Script($x) {
    $n = $this->Statements($x);
    $n->type = JS_SCRIPT;
    $n->funDecls = $x->funDecls;
    $n->varDecls = $x->varDecls;
    // minify by scope
    if ($this->minifier) {
        $n->value = $this->minifier
            ->parseTree($n);
        // clear tree from node to save memory
        $n->treeNodes = null;
        $n->funDecls = null;
        $n->varDecls = null;
        $n->type = JS_MINIFIED;
    }
    return $n;
}