Same name in other branches
- 5.0.x advagg_js_minify/jsminplus.inc \JSTokenizer::peek()
- 6.0.x advagg_js_minify/jsminplus.inc \JSTokenizer::peek()
- 7.x-1.x advagg_js_compress/jsminplus.inc \JSTokenizer::peek()
- 8.x-2.x advagg_js_minify/jsminplus.inc \JSTokenizer::peek()
- 8.x-3.x advagg_js_minify/jsminplus.inc \JSTokenizer::peek()
- 8.x-4.x advagg_js_minify/jsminplus.inc \JSTokenizer::peek()
2 calls to JSTokenizer::peek()
- JSTokenizer::isDone dans advagg_js_compress/
jsminplus.inc - JSTokenizer::peekOnSameLine dans advagg_js_compress/
jsminplus.inc
Fichier
-
advagg_js_compress/
jsminplus.inc, line 1989
Classe
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;
}