Home
last modified time | relevance | path

Searched refs:docComment (Results 1 – 12 of 12) sorted by relevance

/PHP-Parser/test/PhpParser/Builder/
H A DNamespaceTest.php18 $docComment = new Doc('/** Test */');
22 ['comments' => [$docComment]]
28 ->setDocComment($docComment)
34 ->setDocComment($docComment)
H A DEnumTest.php77 $docComment = <<<'DOC'
83 ->setDocComment($docComment)
89 new Comment\Doc($docComment)
96 ->setDocComment(new Comment\Doc($docComment))
102 new Comment\Doc($docComment)
H A DClassTest.php112 $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 DNodeAbstractTest.php95 $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 DBuilderHelpersTest.php205 $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 DDeclaration.php43 public function setDocComment($docComment) { argument
45 BuilderHelpers::normalizeDocComment($docComment)
H A DEnumCase.php52 public function setDocComment($docComment) { argument
54 'comments' => [BuilderHelpers::normalizeDocComment($docComment)]
H A DClassConst.php102 public function setDocComment($docComment) { argument
104 'comments' => [BuilderHelpers::normalizeDocComment($docComment)]
H A DProperty.php157 public function setDocComment($docComment) { argument
159 'comments' => [BuilderHelpers::normalizeDocComment($docComment)]
/PHP-Parser/lib/PhpParser/
H A DNodeAbstract.php135 public function setDocComment(Comment\Doc $docComment): void { argument
140 $comments[$i] = $docComment;
147 $comments[] = $docComment;
H A DBuilderHelpers.php286 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 DNode.php114 public function setDocComment(Comment\Doc $docComment): void; argument

Completed in 15 milliseconds