You are here

public function JSTokenizer::unget in Javascript Aggregator 6

2 calls to JSTokenizer::unget()
JSTokenizer::match in ./jsminplus.php
JSTokenizer::peek in ./jsminplus.php

File

./jsminplus.php, line 2064

Class

JSTokenizer

Code

public function unget() {
  if (++$this->lookahead == 4) {
    throw $this
      ->newSyntaxError('PANIC: too much lookahead!');
  }
  $this->tokenIndex = $this->tokenIndex - 1 & 3;
}