You are here

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

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. 8.3 advagg_js_minify/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_compress/jsminplus.inc

File

advagg_js_compress/jsminplus.inc, line 1826

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