public function JSNode::__construct in Javascript Aggregator 6
File
- ./
jsminplus.php, line 1656
Class
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]);
}
}
}