Home
last modified time | relevance | path

Searched refs:comments (Results 1 – 25 of 53) sorted by relevance

123

/PHP-Parser/lib/PhpParser/
H A DNodeAbstract.php117 $comments = $this->getComments();
118 for ($i = count($comments) - 1; $i >= 0; $i--) {
119 $comment = $comments[$i];
136 $comments = $this->getComments();
137 for ($i = count($comments) - 1; $i >= 0; $i--) {
138 if ($comments[$i] instanceof Comment\Doc) {
140 $comments[$i] = $docComment;
141 $this->setAttribute('comments', $comments);
147 $comments[] = $docComment;
148 $this->setAttribute('comments', $comments);
/PHP-Parser/test/code/formatPreservation/
H A Dcomments.test7 $stmts[0]->setAttribute('comments', []);
19 $comments = $stmts[1]->getComments();
20 $comments[] = new Comment("// foo");
21 $stmts[1]->setAttribute('comments', $comments);
42 $method->setAttribute('comments', [new Comment\Doc("/**\n *\n */")]);
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')]);
231 $stmts[0]->stmts[1]->setAttribute('comments', []);
H A DnopCommentAtEnd.test7 $stmts[1] = new Stmt\Nop(['comments' => [new Comment('//Some comment here')]]);
/PHP-Parser/test/code/parser/
H A DblockComments.test26 comments: array(
31 comments: array(
36 comments: array(
43 comments: array(
H A Dcomments.test28 comments: array(
41 comments: array(
54 comments: array(
74 comments: array(
98 comments: array(
H A DnopPositions.test9 comments: array(
25 comments: array(
/PHP-Parser/lib/PhpParser/NodeVisitor/
H A DCommentAnnotatingVisitor.php45 $comments = [];
49 $comments[] = new Comment\Doc(
55 $comments[] = new Comment(
64 if (!empty($comments)) {
65 $node->setAttribute('comments', array_reverse($comments));
/PHP-Parser/test/code/parser/stmt/function/
H A DtypeVersions.test204 comments: array(
209 comments: array(
416 comments: array(
421 comments: array(
628 comments: array(
633 comments: array(
840 comments: array(
845 comments: array(
1052 comments: array(
1057 comments: array(
[all …]
/PHP-Parser/test/code/parser/stmt/loop/
H A Dfor.test49 comments: array(
80 comments: array(
93 comments: array(
106 comments: array(
/PHP-Parser/test/code/parser/stmt/
H A Dswitch.test43 comments: array(
60 comments: array(
70 comments: array(
H A Dif.test84 comments: array(
99 comments: array(
/PHP-Parser/test/code/parser/expr/fetchAndCall/
H A DstaticPropertyFetch.test25 comments: array(
63 comments: array(
68 comments: array(
H A DobjectAccess.test28 comments: array(
58 comments: array(
121 comments: array(
H A DstaticCall.test33 comments: array(
120 comments: array(
135 comments: array(
/PHP-Parser/test/code/parser/expr/
H A DexprInIsset.test21 comments: array(
38 comments: array(
H A Dmath.test43 comments: array(
70 comments: array(
198 comments: array(
231 comments: array(
264 comments: array(
H A DexprInList.test37 comments: array(
64 comments: array(
H A Dassign.test49 comments: array(
62 comments: array(
205 comments: array(
218 comments: array(
240 comments: array(
323 comments: array(
H A DternaryAndCoalesce.test32 comments: array(
67 comments: array(
101 comments: array(
H A Dnew.test55 comments: array(
100 comments: array(
150 comments: array(
H A Dlogic.test33 comments: array(
72 comments: array(
115 comments: array(
/PHP-Parser/test/code/parser/scalar/
H A DdocString.test41 comments: array(
54 comments: array(
75 comments: array(
/PHP-Parser/test/code/parser/stmt/namespace/
H A DcommentAfterNamespace.test16 comments: array(

Completed in 26 milliseconds

123