Lines Matching full:next
77 * Returns next token.
121 * Returns next identifier token.
123 * @throws SyntaxErrorException If next token is not an identifier
127 $next = $this->getNext();
129 if (!$next->isIdentifier()) {
130 throw SyntaxErrorException::unexpectedToken('identifier', $next);
133 return $next->getValue();
137 * Returns next identifier or null if star delimiter token is found.
139 * @throws SyntaxErrorException If next token is not an identifier or a star delimiter
143 $next = $this->getNext();
145 if ($next->isIdentifier()) {
146 return $next->getValue();
149 if ($next->isDelimiter(['*'])) {
153 throw SyntaxErrorException::unexpectedToken('identifier or "*"', $next);
157 * Skips next whitespace if any.