public function IdentifierHandler::handle in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/css-selector/Parser/Handler/IdentifierHandler.php \Symfony\Component\CssSelector\Parser\Handler\IdentifierHandler::handle()
Parameters
Reader $reader:
TokenStream $stream:
Return value
bool
Overrides HandlerInterface::handle
File
- vendor/
symfony/ css-selector/ Parser/ Handler/ IdentifierHandler.php, line 53
Class
- IdentifierHandler
- CSS selector comment handler.
Namespace
Symfony\Component\CssSelector\Parser\HandlerCode
public function handle(Reader $reader, TokenStream $stream) {
$match = $reader
->findPattern($this->patterns
->getIdentifierPattern());
if (!$match) {
return false;
}
$value = $this->escaping
->escapeUnicode($match[0]);
$stream
->push(new Token(Token::TYPE_IDENTIFIER, $value, $reader
->getPosition()));
$reader
->moveForward(strlen($match[0]));
return true;
}