/PHP-Parser/lib/PhpParser/NodeVisitor/ |
H A D | NodeConnectingVisitor.php | 35 $node->setAttribute('parent', $this->stack[count($this->stack) - 1]); 39 $node->setAttribute('previous', $this->previous); 40 $this->previous->setAttribute('next', $node);
|
H A D | CloningVisitor.php | 16 $node->setAttribute('origNode', $origNode);
|
H A D | ParentConnectingVisitor.php | 29 $node->setAttribute('parent', $this->stack[count($this->stack) - 1]);
|
H A D | NameResolver.php | 225 $name->setAttribute('resolvedName', $resolvedName); 227 $name->setAttribute('namespacedName', FullyQualified::concat( 237 $name->setAttribute('originalName', $originalName); 247 $name->setAttribute('namespacedName', FullyQualified::concat(
|
H A D | CommentAnnotatingVisitor.php | 65 $node->setAttribute('comments', array_reverse($comments));
|
/PHP-Parser/test/code/formatPreservation/ |
H A D | comments.test | 7 $stmts[0]->setAttribute('comments', []); 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 | rewriteVariableInterpolationString.test | 6 $stmts[0]->expr->parts[0]->setAttribute('origNode', null);
|
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 | 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")]);
|
H A D | inlineHtml.test | 9 $stmts[0]->setAttribute('origNode', null);
|
/PHP-Parser/lib/PhpParser/ |
H A D | NodeAbstract.php | 141 $this->setAttribute('comments', $comments); 148 $this->setAttribute('comments', $comments); 151 public function setAttribute(string $key, $value): void { function in PhpParser\\NodeAbstract
|
H A D | Node.php | 121 public function setAttribute(string $key, $value): void; function
|
H A D | ParserAbstract.php | 628 $stmt->setAttribute($endAttribute, $lastStmt->getAttribute($endAttribute)); 879 $part->setAttribute('rawValue', $part->value); 1008 $node->setAttribute('endLine', $nopAttrs['endLine']); 1011 $node->setAttribute('endFilePos', $nopAttrs['endFilePos']); 1014 $node->setAttribute('endTokenPos', $nopAttrs['endTokenPos']);
|
/PHP-Parser/test/PhpParser/ |
H A D | NodeAbstractTest.php | 83 $node->setAttribute('comments', $comments); 87 $node->setAttribute('comments', []); 108 $node->setAttribute('comments', [$c1, $c2]); 114 $node->setAttribute('comments', [$c1, $docComment, $c2]); 168 $node->setAttribute('key', 'value'); 176 $node->setAttribute('null', null);
|
/PHP-Parser/grammar/ |
H A D | php.y | 247 $$->setAttribute('kind', Stmt\Namespace_::KIND_SEMICOLON); 251 $$->setAttribute('kind', Stmt\Namespace_::KIND_BRACED); 255 $$->setAttribute('kind', Stmt\Namespace_::KIND_BRACED); 391 $$->setAttribute('hasLeadingNewline', $this->inlineHtmlHasLeadingNewline(#1)); 1355 { $$ = Expr\List_[$3]; $$->setAttribute('kind', Expr\List_::KIND_LIST);
|
/PHP-Parser/ |
H A D | UPGRADE-4.0.md | 69 * The `Node::setLine()` method has been removed. If you really need to, you can use `setAttribute()`
|
H A D | CHANGELOG.md | 817 * The `Node::setLine()` method has been removed. If you really need to, you can use `setAttribute()`
|
/PHP-Parser/lib/PhpParser/Parser/ |
H A D | Php7.php | 1354 $self->semValue->setAttribute('kind', Stmt\Namespace_::KIND_SEMICOLON); 1359 $self->semValue->setAttribute('kind', Stmt\Namespace_::KIND_BRACED); 1364 $self->semValue->setAttribute('kind', Stmt\Namespace_::KIND_BRACED); 1509 …$self->semValue->setAttribute('hasLeadingNewline', $self->inlineHtmlHasLeadingNewline($stackPos-(1… 2695 …$stackPos-(4-1)], $self->tokenEndStack[$stackPos])); $self->semValue->setAttribute('kind', Expr\Li…
|
H A D | Php8.php | 1349 $self->semValue->setAttribute('kind', Stmt\Namespace_::KIND_SEMICOLON); 1354 $self->semValue->setAttribute('kind', Stmt\Namespace_::KIND_BRACED); 1359 $self->semValue->setAttribute('kind', Stmt\Namespace_::KIND_BRACED); 1504 …$self->semValue->setAttribute('hasLeadingNewline', $self->inlineHtmlHasLeadingNewline($stackPos-(1… 2691 …$stackPos-(4-1)], $self->tokenEndStack[$stackPos])); $self->semValue->setAttribute('kind', Expr\Li…
|
/PHP-Parser/doc/ |
H A D | 2_Usage_of_basic_components.markdown | 206 It is possible to associate custom metadata with a node using the `setAttribute()` method. This data
|