Searched refs:comments (Results 1 – 25 of 53) sorted by relevance
123
/PHP-Parser/lib/PhpParser/ |
H A D | NodeAbstract.php | 117 $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 D | comments.test | 7 $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 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')]); 231 $stmts[0]->stmts[1]->setAttribute('comments', []);
|
H A D | nopCommentAtEnd.test | 7 $stmts[1] = new Stmt\Nop(['comments' => [new Comment('//Some comment here')]]);
|
/PHP-Parser/test/code/parser/ |
H A D | blockComments.test | 26 comments: array( 31 comments: array( 36 comments: array( 43 comments: array(
|
H A D | comments.test | 28 comments: array( 41 comments: array( 54 comments: array( 74 comments: array( 98 comments: array(
|
H A D | nopPositions.test | 9 comments: array( 25 comments: array(
|
/PHP-Parser/lib/PhpParser/NodeVisitor/ |
H A D | CommentAnnotatingVisitor.php | 45 $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 D | typeVersions.test | 204 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 D | for.test | 49 comments: array( 80 comments: array( 93 comments: array( 106 comments: array(
|
/PHP-Parser/test/code/parser/stmt/ |
H A D | switch.test | 43 comments: array( 60 comments: array( 70 comments: array(
|
H A D | if.test | 84 comments: array( 99 comments: array(
|
/PHP-Parser/test/code/parser/expr/fetchAndCall/ |
H A D | staticPropertyFetch.test | 25 comments: array( 63 comments: array( 68 comments: array(
|
H A D | objectAccess.test | 28 comments: array( 58 comments: array( 121 comments: array(
|
H A D | staticCall.test | 33 comments: array( 120 comments: array( 135 comments: array(
|
/PHP-Parser/test/code/parser/expr/ |
H A D | exprInIsset.test | 21 comments: array( 38 comments: array(
|
H A D | math.test | 43 comments: array( 70 comments: array( 198 comments: array( 231 comments: array( 264 comments: array(
|
H A D | exprInList.test | 37 comments: array( 64 comments: array(
|
H A D | assign.test | 49 comments: array( 62 comments: array( 205 comments: array( 218 comments: array( 240 comments: array( 323 comments: array(
|
H A D | ternaryAndCoalesce.test | 32 comments: array( 67 comments: array( 101 comments: array(
|
H A D | new.test | 55 comments: array( 100 comments: array( 150 comments: array(
|
H A D | logic.test | 33 comments: array( 72 comments: array( 115 comments: array(
|
/PHP-Parser/test/code/parser/scalar/ |
H A D | docString.test | 41 comments: array( 54 comments: array( 75 comments: array(
|
/PHP-Parser/test/code/parser/stmt/namespace/ |
H A D | commentAfterNamespace.test | 16 comments: array(
|
Completed in 23 milliseconds
123