Searched refs:docComment (Results 1 – 12 of 12) sorted by relevance
/PHP-Parser/test/PhpParser/Builder/ |
H A D | NamespaceTest.php | 18 $docComment = new Doc('/** Test */'); 22 ['comments' => [$docComment]] 28 ->setDocComment($docComment) 34 ->setDocComment($docComment)
|
H A D | EnumTest.php | 77 $docComment = <<<'DOC' 83 ->setDocComment($docComment) 89 new Comment\Doc($docComment) 96 ->setDocComment(new Comment\Doc($docComment)) 102 new Comment\Doc($docComment)
|
H A D | ClassTest.php | 112 $docComment = <<<'DOC' 118 ->setDocComment($docComment) 124 new Comment\Doc($docComment) 131 ->setDocComment(new Comment\Doc($docComment)) 137 new Comment\Doc($docComment)
|
/PHP-Parser/test/PhpParser/ |
H A D | NodeAbstractTest.php | 95 $docComment = new Comment\Doc('/** doc */'); 96 $node->setDocComment($docComment); 97 $this->assertSame($docComment, $node->getDocComment()); 100 $docComment = new Comment\Doc('/** doc 2 */'); 101 $node->setDocComment($docComment); 102 $this->assertSame($docComment, $node->getDocComment()); 107 $docComment = new Comment\Doc('/** baz */'); 109 $node->setDocComment($docComment); 110 $this->assertSame([$c1, $c2, $docComment], $node->getAttribute('comments')); 114 $node->setAttribute('comments', [$c1, $docComment, $c2]);
|
H A D | BuilderHelpersTest.php | 205 $docComment = new Comment\Doc('Some doc comment'); 206 $this->assertSame($docComment, BuilderHelpers::normalizeDocComment($docComment)); 208 $this->assertEquals($docComment, BuilderHelpers::normalizeDocComment('Some doc comment'));
|
/PHP-Parser/lib/PhpParser/Builder/ |
H A D | Declaration.php | 43 public function setDocComment($docComment) { argument 45 BuilderHelpers::normalizeDocComment($docComment)
|
H A D | EnumCase.php | 52 public function setDocComment($docComment) { argument 54 'comments' => [BuilderHelpers::normalizeDocComment($docComment)]
|
H A D | ClassConst.php | 102 public function setDocComment($docComment) { argument 104 'comments' => [BuilderHelpers::normalizeDocComment($docComment)]
|
H A D | Property.php | 157 public function setDocComment($docComment) { argument 159 'comments' => [BuilderHelpers::normalizeDocComment($docComment)]
|
/PHP-Parser/lib/PhpParser/ |
H A D | NodeAbstract.php | 135 public function setDocComment(Comment\Doc $docComment): void { argument 140 $comments[$i] = $docComment; 147 $comments[] = $docComment;
|
H A D | BuilderHelpers.php | 286 public static function normalizeDocComment($docComment): Comment\Doc { argument 287 if ($docComment instanceof Comment\Doc) { 288 return $docComment; 291 if (is_string($docComment)) { 292 return new Comment\Doc($docComment);
|
H A D | Node.php | 114 public function setDocComment(Comment\Doc $docComment): void; argument
|
Completed in 15 milliseconds