You are here

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

Same name and namespace in other branches
  1. 8.2 advagg_js_minify/jsminplus.inc \JSParser::Statements()
  2. 8.3 advagg_js_minify/jsminplus.inc \JSParser::Statements()
  3. 6 advagg_js_compress/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_minify/jsminplus.inc
JSParser::Script in advagg_js_minify/jsminplus.inc
JSParser::Statement in advagg_js_minify/jsminplus.inc

File

advagg_js_minify/jsminplus.inc, line 906
JSMinPlus version 1.4

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