You are here

private function JSParser::Statements in Advanced CSS/JS Aggregation 6

Same name and namespace in other branches
  1. 8.4 advagg_js_minify/jsminplus.inc \JSParser::Statements()
  2. 8.2 advagg_js_minify/jsminplus.inc \JSParser::Statements()
  3. 8.3 advagg_js_minify/jsminplus.inc \JSParser::Statements()
  4. 7.2 advagg_js_compress/jsminplus.inc \JSParser::Statements()
  5. 7 advagg_js_compress/jsminplus.inc \JSParser::Statements()
3 calls to JSParser::Statements()
JSParser::Block in advagg_js_compress/jsminplus.inc
JSParser::Script in advagg_js_compress/jsminplus.inc
JSParser::Statement in advagg_js_compress/jsminplus.inc

File

advagg_js_compress/jsminplus.inc, line 890

Class

JSParser

Code

private function Statements($x) {
  $n = new JSNode($this->t, JS_BLOCK);
  array_push($x->stmtStack, $n);
  while (!$this->t
    ->isDone() && $this->t
    ->peek() != OP_RIGHT_CURLY) {
    $n
      ->addNode($this
      ->Statement($x));
  }
  array_pop($x->stmtStack);
  return $n;
}