protected function Twig_ExpressionParser::isUnary

1 call to Twig_ExpressionParser::isUnary()
Twig_ExpressionParser::getPrimary in drupal/core/vendor/twig/twig/lib/Twig/ExpressionParser.php

File

drupal/core/vendor/twig/twig/lib/Twig/ExpressionParser.php, line 111

Class

Twig_ExpressionParser
Parses expressions.

Code

protected function isUnary(Twig_Token $token) {
  return $token
    ->test(Twig_Token::OPERATOR_TYPE) && isset($this->unaryOperators[$token
    ->getValue()]);
}