// yes, let's parse it properly
$token =
$stream->
expect(/* Token::PUNCTUATION_TYPE */ 9, '('
);
$line =
$token->
getLine();
$names =
[];
while (true
) { $token =
$stream->
expect(/* Token::NAME_TYPE */ 5
);
$names[] =
new AssignNameExpression($token->
getValue(),
$token->
getLine());
if (!
$stream->
nextIf(/* Token::PUNCTUATION_TYPE */ 9, ','
)) { break;
} } $stream->
expect(/* Token::PUNCTUATION_TYPE */ 9, ')'
);
$stream->
expect(/* Token::ARROW_TYPE */ 12
);
return new ArrowFunctionExpression($this->
parseExpression(0
),
new Node($names),
$line);
} private function getPrimary(): AbstractExpression
{