public function AbstractLexer::skipUntil in Service Container 7.2
Same name and namespace in other branches
- 7 modules/providers/service_container_annotation_discovery/lib/Doctrine/lexer/lib/Doctrine/Common/Lexer/AbstractLexer.php \Doctrine\Common\Lexer\AbstractLexer::skipUntil()
Tells the lexer to skip input tokens until it sees a token with the given value.
Parameters
string $type The token type to skip until.:
File
- modules/
providers/ service_container_annotation_discovery/ lib/ Doctrine/ lexer/ lib/ Doctrine/ Common/ Lexer/ AbstractLexer.php, line 149
Class
- AbstractLexer
- Base class for writing simple lexers, i.e. for creating small DSLs.
Namespace
Doctrine\Common\LexerCode
public function skipUntil($type) {
while ($this->lookahead !== null && $this->lookahead['type'] !== $type) {
$this
->moveNext();
}
}