Home
last modified time | relevance | path

Searched refs:setAttribute (Results 1 – 21 of 21) sorted by relevance

/PHP-Parser/lib/PhpParser/NodeVisitor/
H A DNodeConnectingVisitor.php35 $node->setAttribute('parent', $this->stack[count($this->stack) - 1]);
39 $node->setAttribute('previous', $this->previous);
40 $this->previous->setAttribute('next', $node);
H A DCloningVisitor.php16 $node->setAttribute('origNode', $origNode);
H A DParentConnectingVisitor.php29 $node->setAttribute('parent', $this->stack[count($this->stack) - 1]);
H A DNameResolver.php225 $name->setAttribute('resolvedName', $resolvedName);
227 $name->setAttribute('namespacedName', FullyQualified::concat(
237 $name->setAttribute('originalName', $originalName);
247 $name->setAttribute('namespacedName', FullyQualified::concat(
H A DCommentAnnotatingVisitor.php65 $node->setAttribute('comments', array_reverse($comments));
/PHP-Parser/test/code/formatPreservation/
H A Dcomments.test7 $stmts[0]->setAttribute('comments', []);
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 DrewriteVariableInterpolationString.test6 $stmts[0]->expr->parts[0]->setAttribute('origNode', null);
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 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")]);
H A DinlineHtml.test9 $stmts[0]->setAttribute('origNode', null);
/PHP-Parser/lib/PhpParser/
H A DNodeAbstract.php141 $this->setAttribute('comments', $comments);
148 $this->setAttribute('comments', $comments);
151 public function setAttribute(string $key, $value): void { function in PhpParser\\NodeAbstract
H A DNode.php121 public function setAttribute(string $key, $value): void; function
H A DParserAbstract.php628 $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 DNodeAbstractTest.php83 $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 Dphp.y247 $$->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 DUPGRADE-4.0.md69 * The `Node::setLine()` method has been removed. If you really need to, you can use `setAttribute()`
H A DCHANGELOG.md817 * The `Node::setLine()` method has been removed. If you really need to, you can use `setAttribute()`
/PHP-Parser/lib/PhpParser/Parser/
H A DPhp7.php1354 $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 DPhp8.php1349 $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 D2_Usage_of_basic_components.markdown206 It is possible to associate custom metadata with a node using the `setAttribute()` method. This data

Completed in 69 milliseconds