Home
last modified time | relevance | path

Searched refs:Comment (Results 1 – 25 of 43) sorted by relevance

12

/PHP-Parser/test/code/prettyPrinter/stmt/
H A Dparam_comments.test7 // Comment
14 // Comment
20 // Comment
26 // Comment
40 // Comment
46 // Comment
51 // Comment
66 // Comment
72 // Comment
78 // Comment
[all …]
H A Dswitch.test16 // Comment
33 // Comment
/PHP-Parser/test/code/prettyPrinter/
H A Dindent.test7 * Comment
20 * Comment
34 * Comment
47 * Comment
61 * Comment
74 @@{"\t"}@@ * Comment
/PHP-Parser/lib/PhpParser/
H A DNode.php96 * @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 DNodeAbstract.php105 * @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 DJsonDecoder.php72 private function decodeComment(array $value): Comment {
73 $className = $value['nodeType'] === 'Comment' ? Comment::class : Comment\Doc::class;
H A DBuilderHelpers.php282 * @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 DDoc.php3 namespace PhpParser\Comment;
5 class Doc extends \PhpParser\Comment {
/PHP-Parser/test/code/formatPreservation/
H A Dcomments.test1 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 DarrayInsertionWithComments.test11 $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 DlistInsertion.test115 $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 DnopCommentAtEnd.test7 $stmts[1] = new Stmt\Nop(['comments' => [new Comment('//Some comment here')]]);
H A DclassMethodNop.test49 $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 Dmatch.test7 // Comment
14 // Comment
/PHP-Parser/test/code/parser/stmt/namespace/
H A DcommentAfterNamespace.test5 // Comment
17 0: // Comment
H A DoutsideStmt.test39 /* Comment */
46 0: /* Comment */
/PHP-Parser/test/code/parser/
H A DnopPositions.test4 /* Comment */
10 0: /* Comment */
H A DcommentAtEndOfClass.test1 Comment at end of class (#509)
/PHP-Parser/test/PhpParser/
H A DNodeAbstractTest.php37 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 DCommentTest.php7 $comment = new Comment('/* Some comment */',
24 $comment = new Comment($commentText);
/PHP-Parser/test/PhpParser/Builder/
H A DEnumTest.php5 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 DClassTest.php5 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 DEnumCaseTest.php5 use PhpParser\Comment; alias
31 'comments' => [new Comment\Doc('/** Test */')]
/PHP-Parser/lib/PhpParser/NodeVisitor/
H A DCommentAnnotatingVisitor.php5 use PhpParser\Comment; alias
49 $comments[] = new Comment\Doc(
55 $comments[] = new Comment(
/PHP-Parser/test/code/parser/stmt/
H A Dswitch.test8 // Comment
44 0: // Comment

Completed in 20 milliseconds

12