/** * Parses a comment and optionally an embedded class or interface type * annotation. * * @return \PDepend\Source\AST\ASTComment * @since 0.9.8 */ private function parseCommentWithOptionalInlineClassOrInterfaceReference() { $token = $this->consumeToken(Tokens::T_COMMENT); $comment = $this->builder->buildAstComment($token->image); if (preg_match(self::REGEXP_INLINE_TYPE, $token->image, $match)) { $comment->addChild($this->builder->buildAstClassOrInterfaceReference($match[1])); } $comment->configureLinesAndColumns($token->startLine, $token->endLine, $token->startColumn, $token->endColumn); return $comment; }