public function parsePostfixExpression($node) {
while (true) {
$token = $this->parser
->getCurrentToken();
if ($token
->getType() == Twig_Token::PUNCTUATION_TYPE) {
if ('.' == $token
->getValue() || '[' == $token
->getValue()) {
$node = $this
->parseSubscriptExpression($node);
}
elseif ('|' == $token
->getValue()) {
$node = $this
->parseFilterExpression($node);
}
else {
break;
}
}
else {
break;
}
}
return $node;
}