You are here

public function JSNode::addNode in Advanced CSS/JS Aggregation 8.3

Same name and namespace in other branches
  1. 8.4 advagg_js_minify/jsminplus.inc \JSNode::addNode()
  2. 8.2 advagg_js_minify/jsminplus.inc \JSNode::addNode()
  3. 6 advagg_js_compress/jsminplus.inc \JSNode::addNode()
  4. 7.2 advagg_js_compress/jsminplus.inc \JSNode::addNode()
  5. 7 advagg_js_compress/jsminplus.inc \JSNode::addNode()
1 call to JSNode::addNode()
JSNode::__construct in advagg_js_minify/jsminplus.inc

File

advagg_js_minify/jsminplus.inc, line 1842
JSMinPlus version 1.4

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