55namespace TypeLang \PHPDoc ;
66
77use JetBrains \PhpStorm \Language ;
8- use TypeLang \PHPDoc \Exception \InvalidTagException ;
9- use TypeLang \PHPDoc \Exception \InvalidTagNameException ;
108use TypeLang \PHPDoc \Exception \ParsingException ;
119use TypeLang \PHPDoc \Exception \RuntimeExceptionInterface ;
1210use TypeLang \PHPDoc \Parser \Comment \CommentParserInterface ;
1311use TypeLang \PHPDoc \Parser \Comment \RegexCommentParser ;
1412use TypeLang \PHPDoc \Parser \Comment \Segment ;
1513use TypeLang \PHPDoc \Parser \Description \DescriptionParserInterface ;
16- use TypeLang \PHPDoc \Parser \Description \SprintfDescriptionReader ;
14+ use TypeLang \PHPDoc \Parser \Description \SprintfDescriptionParser ;
1715use TypeLang \PHPDoc \Parser \SourceMap ;
18- use TypeLang \PHPDoc \Parser \Tag \TagParser ;
16+ use TypeLang \PHPDoc \Parser \Tag \RegexTagParser ;
1917use TypeLang \PHPDoc \Parser \Tag \TagParserInterface ;
2018use TypeLang \PHPDoc \Tag \Factory \FactoryInterface ;
2119use TypeLang \PHPDoc \Tag \Factory \TagFactory ;
@@ -31,8 +29,8 @@ class Parser implements ParserInterface
3129 public function __construct (
3230 FactoryInterface $ tags = new TagFactory (),
3331 ) {
34- $ this ->tags = new TagParser ($ tags );
35- $ this ->descriptions = new SprintfDescriptionReader ($ this ->tags );
32+ $ this ->tags = new RegexTagParser ($ tags );
33+ $ this ->descriptions = new SprintfDescriptionParser ($ this ->tags );
3634 $ this ->comments = new RegexCommentParser ();
3735 }
3836
0 commit comments