You are here

public function JSNode::addNode in Javascript Aggregator 6

1 call to JSNode::addNode()
JSNode::__construct in ./jsminplus.php

File

./jsminplus.php, line 1694

Class

JSNode

Code

public function addNode($node) {
  if ($node !== null) {
    if ($node->start < $this->start) {
      $this->start = $node->start;
    }
    if ($this->end < $node->end) {
      $this->end = $node->end;
    }
  }
  $this->treeNodes[] = $node;
}