/**
* Parse a statement.
*
* @return \PDepend\Source\AST\ASTNode
* @throws \PDepend\Source\Parser\UnexpectedTokenException
* @since 1.0.0
*/
private function parseStatement()
{
if (null === ($stmt = $this->parseOptionalStatement())) {
throw new UnexpectedTokenException($this->tokenizer->next(), $this->compilationUnit->getFileName());
}
return $stmt;
}