public function JSTokenizer::peek in Javascript Aggregator 6
2 calls to JSTokenizer::peek()
File
- ./
jsminplus.php, line 1793
Class
Code
public function peek() {
if ($this->lookahead) {
$next = $this->tokens[$this->tokenIndex + $this->lookahead & 3];
if ($this->scanNewlines && $next->lineno != $this->lineno) {
$tt = TOKEN_NEWLINE;
}
else {
$tt = $next->type;
}
}
else {
$tt = $this
->get();
$this
->unget();
}
return $tt;
}