Searched refs:Doc (Results 1 – 25 of 25) sorted by relevance
116 public function getDocComment(): ?Comment\Doc {120 if ($comment instanceof Comment\Doc) {135 public function setDocComment(Comment\Doc $docComment): void {138 if ($comments[$i] instanceof Comment\Doc) {
105 public function getDocComment(): ?Comment\Doc;114 public function setDocComment(Comment\Doc $docComment): void;
286 public static function normalizeDocComment($docComment): Comment\Doc {287 if ($docComment instanceof Comment\Doc) {292 return new Comment\Doc($docComment);
73 $className = $value['nodeType'] === 'Comment' ? Comment::class : Comment\Doc::class;
196 $type = $this instanceof Comment\Doc ? 'Comment_Doc' : 'Comment';
894 ? new Comment\Doc($token->text, $token->line, $token->pos, $tokenPos,
5 class Doc extends \PhpParser\Comment { class
42 $method->setAttribute('comments', [new Comment\Doc("/**\n *\n */")]);58 $stmts[0]->setDocComment(new Comment\Doc("/** foo */"));
11 $node->setAttribute('comments', [new Comment\Doc(<<<COMMENT
5 use PhpParser\Comment\Doc; alias18 $docComment = new Doc('/** Test */');
89 new Comment\Doc($docComment)96 ->setDocComment(new Comment\Doc($docComment))102 new Comment\Doc($docComment)
124 new Comment\Doc($docComment)131 ->setDocComment(new Comment\Doc($docComment))137 new Comment\Doc($docComment)
31 'comments' => [new Comment\Doc('/** Test */')]
47 new Comment\Doc('/** Nice trait */')
85 'comments' => [new Comment\Doc('/** Test */')]
80 'comments' => [new Comment\Doc('/** Test */')]
98 'comments' => [new Comment\Doc('/** Test */')]
127 'comments' => [new Comment\Doc('/** Test */')]
118 'comments' => [new Comment\Doc('/** Test */')]
38 new Comment\Doc('/** doc comment */'),95 $docComment = new Comment\Doc('/** doc */');100 $docComment = new Comment\Doc('/** doc 2 */');107 $docComment = new Comment\Doc('/** baz */');113 $newDocComment = new Comment\Doc('/** new baz */');
57 new Comment\Doc('/** Doc comment */',
205 $docComment = new Comment\Doc('Some doc comment');
75 $comment = new Comment\Doc("/**\n * This is a comment\n */");
49 $comments[] = new Comment\Doc(
211 `PhpParser\Comment[\Doc]` instances.
Completed in 24 milliseconds