protected function parseIfModifier($token, $node)
{
static $modifiers = array('if', 'unless');
if ($this->stream->test($modifiers)) {
$statement = $this->stream->expect($modifiers)->getValue();
$test_expr = $this->parseExpression();
if ($statement == 'if') {
$node = new Node\IfNode(array(array($test_expr, $node)), null, $token->getLine());
} elseif ($statement == 'unless') {
$node = new Node\IfNode(array(array(new Expression\NotExpression($test_expr, $token->getLine()), $node)), null, $token->getLine());
}
}
return $node;
}