private function JSParser::Script in Javascript Aggregator 6
2 calls to JSParser::Script()
File
- ./
jsminplus.php, line 745
Class
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;
}