protected function parseFunctionCallExpression($node)
{
$line = $this->stream->getCurrentToken()->getLine();
$this->stream->expect(Token::OPERATOR, '(');
$args = array();
while (!$this->stream->test(Token::OPERATOR, ')')) {
if (!empty($args)) {
$this->stream->expect(Token::OPERATOR, ',');
if ($this->stream->test(Token::OPERATOR, ')')) {
break;
}
}
$args[] = $this->parseExpression();
}
$this->stream->expect(Token::OPERATOR, ')');
return new Expression\FunctionCallExpression($node, $args, $line);
}