protected function Twig_ExpressionParser::isUnary in Translation template extractor 6.3
Same name and namespace in other branches
- 7.3 vendor/Twig/ExpressionParser.php \Twig_ExpressionParser::isUnary()
1 call to Twig_ExpressionParser::isUnary()
- Twig_ExpressionParser::getPrimary in vendor/
Twig/ ExpressionParser.php
File
- vendor/
Twig/ ExpressionParser.php, line 108
Class
- Twig_ExpressionParser
- Parses expressions.
Code
protected function isUnary(Twig_Token $token) {
return $token
->test(Twig_Token::OPERATOR_TYPE) && isset($this->unaryOperators[$token
->getValue()]);
}