Inheritance: extends Doctrine\Common\Lexer\AbstractLexer
Beispiel #1
0
 /**
  * @param $lexer
  * @return array
  */
 protected function collectTokens(Lexer $lexer)
 {
     $tokens = array();
     while ($lexer->moveNext()) {
         $tokens[] = $lexer->lookahead['value'];
     }
     return $tokens;
 }
Beispiel #2
0
 /**
  * @return bool
  */
 private function isNextCloseParenthesis()
 {
     $isCloseParenthesis = $this->lexer->isNextToken(Lexer::T_CLOSE_PARENTHESIS);
     $this->lexer->moveNext();
     return $isCloseParenthesis;
 }