Same name and namespace in other branches
  1. 6.0.x advagg_js_minify/jsminplus.inc \JSNode::__construct() 1 commentaire
  2. 7.x-1.x advagg_js_compress/jsminplus.inc \JSNode::__construct() 1 commentaire
  3. 7.x-2.x advagg_js_compress/jsminplus.inc \JSNode::__construct() 1 commentaire
  4. 8.x-2.x advagg_js_minify/jsminplus.inc \JSNode::__construct() 1 commentaire
  5. 8.x-3.x advagg_js_minify/jsminplus.inc \JSNode::__construct() 1 commentaire
  6. 8.x-4.x advagg_js_minify/jsminplus.inc \JSNode::__construct() 1 commentaire

Fichier

advagg_js_minify/jsminplus.inc, line 1808

Classe

JSNode

Code

public function __construct($t, $type = 0) {
    if ($token = $t->currentToken()) {
        $this->type = $type ? $type : $token->type;
        $this->value = $token->value;
        $this->lineno = $token->lineno;
        $this->start = $token->start;
        $this->end = $token->end;
    }
    else {
        $this->type = $type;
        $this->lineno = $t->lineno;
    }
    if (($numargs = func_num_args()) > 2) {
        $args = func_get_args();
        for ($i = 2; $i < $numargs; $i++) {
            $this->addNode($args[$i]);
        }
    }
}