Home
last modified time | relevance | path

Searched refs:getAttribute (Results 1 – 16 of 16) sorted by relevance

/PHP-Parser/test/PhpParser/NodeVisitor/
H A DNodeConnectingVisitorTest.php26 $this->assertSame(If_::class, get_class($node->getAttribute('parent')));
27 $this->assertSame(ConstFetch::class, get_class($node->getAttribute('previous')));
31 $this->assertSame(Else_::class, get_class($node->getAttribute('next')));
H A DNameResolverTest.php391 … $this->assertSame('NS\\foo', (string) $stmts[0]->stmts[0]->name->getAttribute('namespacedName'));
392 … $this->assertSame('NS\\FOO', (string) $stmts[0]->stmts[1]->name->getAttribute('namespacedName'));
519 $this->assertSame($n1, $stmts[0]->stmts[0]->class->getAttribute('originalName'));
520 $this->assertSame($n2, $stmts[0]->stmts[1]->name->getAttribute('originalName'));
539 new Name\FullyQualified('Foo\Bar'), $n1->getAttribute('resolvedName'));
542 new Name\FullyQualified('Foo\bar'), $n2->getAttribute('namespacedName'));
H A DParentConnectingVisitorTest.php24 $this->assertSame('C', $node->getAttribute('parent')->name->toString());
/PHP-Parser/lib/PhpParser/NodeVisitor/
H A DNodeConnectingVisitor.php38 …if ($this->previous !== null && $this->previous->getAttribute('parent') === $node->getAttribute('p…
/PHP-Parser/test/PhpParser/
H A DNodeAbstractTest.php110 $this->assertSame([$c1, $c2, $docComment], $node->getAttribute('comments'));
116 $this->assertSame([$c1, $newDocComment, $c2], $node->getAttribute('comments'));
170 $this->assertSame('value', $node->getAttribute('key'));
173 $this->assertNull($node->getAttribute('doesNotExist'));
174 $this->assertSame('default', $node->getAttribute('doesNotExist', 'default'));
178 $this->assertNull($node->getAttribute('null'));
179 $this->assertNull($node->getAttribute('null', 'default'));
H A DParserTestAbstract.php186 $this->assertSame($stmts[0]->expr->var->getAttribute('kind'), Expr\List_::KIND_LIST);
187 …$this->assertSame($stmts[0]->expr->var->items[0]->value->getAttribute('kind'), Expr\List_::KIND_LI…
188 $this->assertSame($stmts[1]->expr->var->getAttribute('kind'), Expr\List_::KIND_ARRAY);
189 …$this->assertSame($stmts[1]->expr->var->items[0]->value->getAttribute('kind'), Expr\List_::KIND_AR…
/PHP-Parser/doc/component/
H A DFAQ.markdown26 After running this visitor, the parent node can be obtained through `$node->getAttribute('parent')`.
48 After running this visitor, the parent node can be obtained through `$node->getAttribute('parent')`,
49 the previous node can be obtained through `$node->getAttribute('previous')`, and the next node can …
50 obtained through `$node->getAttribute('next')`.
/PHP-Parser/test/PhpParser/Node/Scalar/
H A DDNumberTest.php23 $this->assertSame('1_234.56', $lLumber->getAttribute('rawValue'));
H A DNumberTest.php22 $this->assertSame('1_234', $lLumber->getAttribute('rawValue'));
H A DStringTest.php22 $this->assertSame('"sequence \\x41"', $string->getAttribute('rawValue'));
/PHP-Parser/lib/PhpParser/
H A DNode.php135 public function getAttribute(string $key, $default = null); function
H A DNodeAbstract.php159 public function getAttribute(string $key, $default = null) { function in PhpParser\\NodeAbstract
H A DPrettyPrinterAbstract.php582 $origNode = $node->getAttribute('origNode');
717 && $subNode->getAttribute('origNode') !== $origSubNode
952 if (null !== $fixup && $arrItem->getAttribute('origNode') !== $origArrItem) {
1273 return $a === $b->getAttribute('origNode');
H A DParserAbstract.php628 $stmt->setAttribute($endAttribute, $lastStmt->getAttribute($endAttribute));
/PHP-Parser/lib/PhpParser/PrettyPrinter/
H A DStandard.php135 $kind = $node->getAttribute('kind', Scalar\String_::KIND_SINGLE_QUOTED);
138 $label = $node->getAttribute('docLabel');
157 $label = $node->getAttribute('docLabel');
176 if ($node->getAttribute('kind') === Scalar\String_::KIND_HEREDOC) {
177 $label = $node->getAttribute('docLabel');
201 $kind = $node->getAttribute('kind', Scalar\Int_::KIND_DEC);
483 $kind = $node->getAttribute('kind', Cast\Double::KIND_DOUBLE);
566 $syntax = $node->getAttribute('kind',
590 $syntax = $node->getAttribute('kind',
719 $kind = $node->getAttribute('kind', Expr\Exit_::KIND_DIE);
[all …]
/PHP-Parser/doc/
H A D2_Usage_of_basic_components.markdown207 can then be retrieved using `hasAttribute()`, `getAttribute()` and `getAttributes()`.
214 `getAttribute('startLine')`, and so on. The last doc comment from the `comments` attribute can be

Completed in 47 milliseconds