/PHP-Parser/test/code/prettyPrinter/stmt/ |
H A D | param_comments.test | 7 // Comment 14 // Comment 20 // Comment 26 // Comment 40 // Comment 46 // Comment 51 // Comment 66 // Comment 72 // Comment 78 // Comment [all …]
|
H A D | switch.test | 16 // Comment 33 // Comment
|
/PHP-Parser/test/code/prettyPrinter/ |
H A D | indent.test | 7 * Comment 20 * Comment 34 * Comment 47 * Comment 61 * Comment 74 @@{"\t"}@@ * Comment
|
/PHP-Parser/lib/PhpParser/ |
H A D | Node.php | 96 * @return Comment[] 103 * @return null|Comment\Doc Doc comment object or null 105 public function getDocComment(): ?Comment\Doc; 112 * @param Comment\Doc $docComment Doc comment to set 114 public function setDocComment(Comment\Doc $docComment): void;
|
H A D | NodeAbstract.php | 105 * @return Comment[] 114 * @return null|Comment\Doc Doc comment object or null 116 public function getDocComment(): ?Comment\Doc { 120 if ($comment instanceof Comment\Doc) { 133 * @param Comment\Doc $docComment Doc comment to set 135 public function setDocComment(Comment\Doc $docComment): void { 138 if ($comments[$i] instanceof Comment\Doc) {
|
H A D | JsonDecoder.php | 72 private function decodeComment(array $value): Comment { 73 $className = $value['nodeType'] === 'Comment' ? Comment::class : Comment\Doc::class;
|
H A D | BuilderHelpers.php | 282 * @param Comment\Doc|string $docComment The doc comment to normalize 284 * @return Comment\Doc The normalized doc comment 286 public static function normalizeDocComment($docComment): Comment\Doc { 287 if ($docComment instanceof Comment\Doc) { 292 return new Comment\Doc($docComment);
|
/PHP-Parser/lib/PhpParser/Comment/ |
H A D | Doc.php | 3 namespace PhpParser\Comment; 5 class Doc extends \PhpParser\Comment {
|
/PHP-Parser/test/code/formatPreservation/ |
H A D | comments.test | 1 Comment changes 20 $comments[] = new Comment("// foo"); 42 $method->setAttribute('comments', [new Comment\Doc("/**\n *\n */")]); 58 $stmts[0]->setDocComment(new Comment\Doc("/** foo */"));
|
H A D | arrayInsertionWithComments.test | 11 $node->setAttribute('comments', [new Comment\Doc(<<<COMMENT 39 $node->setAttribute('comments', [new Comment("/* Block comment */")]); 60 $node->setAttribute('comments', [new Comment("// Line comment")]); 80 $node->setAttribute('comments', [new Comment("// Line comment")]); 97 $node->setAttribute('comments', [new Comment("// Line comment")]);
|
H A D | listInsertion.test | 115 $node->setAttribute('comments', [new Comment('// Test')]); 129 $node->setAttribute('comments', [new Comment('// Test'), new Comment('// Test 2')]); 170 $node->setAttribute('comments', [new Comment('// Test')]); 188 $node->setAttribute('comments', [new Comment('// Test')]); 208 $node->setAttribute('comments', [new Comment('// Test')]); 210 $stmts[0]->stmts[1]->setAttribute('comments', [new Comment('// Bar foo')]); 229 $node->setAttribute('comments', [new Comment('// Test')]);
|
H A D | nopCommentAtEnd.test | 7 $stmts[1] = new Stmt\Nop(['comments' => [new Comment('//Some comment here')]]);
|
H A D | classMethodNop.test | 49 $stmts[0]->stmts[0]->stmts[0]->setAttribute('comments', [new Comment("/* I'm a new comment */")]); 68 $stmts[0]->stmts[0]->stmts[0]->setAttribute('comments', [new Comment("// I'm a new comment")]);
|
/PHP-Parser/test/code/prettyPrinter/expr/ |
H A D | match.test | 7 // Comment 14 // Comment
|
/PHP-Parser/test/code/parser/stmt/namespace/ |
H A D | commentAfterNamespace.test | 5 // Comment 17 0: // Comment
|
H A D | outsideStmt.test | 39 /* Comment */ 46 0: /* Comment */
|
/PHP-Parser/test/code/parser/ |
H A D | nopPositions.test | 4 /* Comment */ 10 0: /* Comment */
|
H A D | commentAtEndOfClass.test | 1 Comment at end of class (#509)
|
/PHP-Parser/test/PhpParser/ |
H A D | NodeAbstractTest.php | 37 new Comment('// Comment 1' . "\n"), 38 new Comment\Doc('/** doc comment */'), 39 new Comment('// Comment 2' . "\n"), 95 $docComment = new Comment\Doc('/** doc */'); 100 $docComment = new Comment\Doc('/** doc 2 */'); 105 $c1 = new Comment('/* foo */'); 106 $c2 = new Comment('/* bar */'); 107 $docComment = new Comment\Doc('/** baz */'); 113 $newDocComment = new Comment\Doc('/** new baz */');
|
H A D | CommentTest.php | 7 $comment = new Comment('/* Some comment */', 24 $comment = new Comment($commentText);
|
/PHP-Parser/test/PhpParser/Builder/ |
H A D | EnumTest.php | 5 use PhpParser\Comment; alias 89 new Comment\Doc($docComment) 96 ->setDocComment(new Comment\Doc($docComment)) 102 new Comment\Doc($docComment) 142 ->setDocComment(new Comment('Test'));
|
H A D | ClassTest.php | 5 use PhpParser\Comment; alias 124 new Comment\Doc($docComment) 131 ->setDocComment(new Comment\Doc($docComment)) 137 new Comment\Doc($docComment) 177 ->setDocComment(new Comment('Test'));
|
H A D | EnumCaseTest.php | 5 use PhpParser\Comment; alias 31 'comments' => [new Comment\Doc('/** Test */')]
|
/PHP-Parser/lib/PhpParser/NodeVisitor/ |
H A D | CommentAnnotatingVisitor.php | 5 use PhpParser\Comment; alias 49 $comments[] = new Comment\Doc( 55 $comments[] = new Comment(
|
/PHP-Parser/test/code/parser/stmt/ |
H A D | switch.test | 8 // Comment 44 0: // Comment
|