protected function consumeComments()
{
$type = $this->tokenizer->peek();
while ($type == Tokens::T_COMMENT || $type == Tokens::T_DOC_COMMENT) {
$token = $this->consumeToken($type);
$type = $this->tokenizer->peek();
if (Tokens::T_COMMENT === $token->type) {
continue;
}
$this->docComment = $token->image;
if (preg_match('(\\s+@package\\s+[^\\s]+\\s+)', $token->image)) {
$this->packageName = $this->parsePackageAnnotation($token->image);
}
}
}