You are here

private function JSParser::nest in Javascript Aggregator 6

1 call to JSParser::nest()
JSParser::Statement in ./jsminplus.php

File

./jsminplus.php, line 1574

Class

JSParser

Code

private function nest($x, $node, $end = false) {
  array_push($x->stmtStack, $node);
  $n = $this
    ->statement($x);
  array_pop($x->stmtStack);
  if ($end) {
    $this->t
      ->mustMatch($end);
  }
  return $n;
}