You are here

private function JSParser::Statements in Javascript Aggregator 6

3 calls to JSParser::Statements()
JSParser::Block in ./jsminplus.php
JSParser::Script in ./jsminplus.php
JSParser::Statement in ./jsminplus.php

File

./jsminplus.php, line 768

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