Searched refs:getAttribute (Results 1 – 16 of 16) sorted by relevance
/PHP-Parser/test/PhpParser/NodeVisitor/ |
H A D | NodeConnectingVisitorTest.php | 26 $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 D | NameResolverTest.php | 415 … $this->assertSame('NS\\foo', (string) $stmts[0]->stmts[0]->name->getAttribute('namespacedName')); 416 … $this->assertSame('NS\\FOO', (string) $stmts[0]->stmts[1]->name->getAttribute('namespacedName')); 543 $this->assertSame($n1, $stmts[0]->stmts[0]->class->getAttribute('originalName')); 544 $this->assertSame($n2, $stmts[0]->stmts[1]->name->getAttribute('originalName')); 563 new Name\FullyQualified('Foo\Bar'), $n1->getAttribute('resolvedName')); 566 new Name\FullyQualified('Foo\bar'), $n2->getAttribute('namespacedName'));
|
H A D | ParentConnectingVisitorTest.php | 24 $this->assertSame('C', $node->getAttribute('parent')->name->toString());
|
/PHP-Parser/lib/PhpParser/NodeVisitor/ |
H A D | NodeConnectingVisitor.php | 38 …if ($this->previous !== null && $this->previous->getAttribute('parent') === $node->getAttribute('p…
|
/PHP-Parser/test/PhpParser/ |
H A D | NodeAbstractTest.php | 110 $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 D | ParserTestAbstract.php | 186 $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 D | FAQ.markdown | 26 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 D | DNumberTest.php | 23 $this->assertSame('1_234.56', $lLumber->getAttribute('rawValue'));
|
H A D | NumberTest.php | 22 $this->assertSame('1_234', $lLumber->getAttribute('rawValue'));
|
H A D | StringTest.php | 22 $this->assertSame('"sequence \\x41"', $string->getAttribute('rawValue'));
|
/PHP-Parser/lib/PhpParser/ |
H A D | Node.php | 135 public function getAttribute(string $key, $default = null); function
|
H A D | NodeAbstract.php | 159 public function getAttribute(string $key, $default = null) { function in PhpParser\\NodeAbstract
|
H A D | PrettyPrinterAbstract.php | 610 $origNode = $node->getAttribute('origNode'); 745 && $subNode->getAttribute('origNode') !== $origSubNode 980 if (null !== $fixup && $arrItem->getAttribute('origNode') !== $origArrItem) { 1304 return $a === $b->getAttribute('origNode');
|
H A D | ParserAbstract.php | 628 $stmt->setAttribute($endAttribute, $lastStmt->getAttribute($endAttribute));
|
/PHP-Parser/lib/PhpParser/PrettyPrinter/ |
H A D | Standard.php | 140 $kind = $node->getAttribute('kind', Scalar\String_::KIND_SINGLE_QUOTED); 143 $label = $node->getAttribute('docLabel'); 162 $label = $node->getAttribute('docLabel'); 181 if ($node->getAttribute('kind') === Scalar\String_::KIND_HEREDOC) { 182 $label = $node->getAttribute('docLabel'); 206 $kind = $node->getAttribute('kind', Scalar\Int_::KIND_DEC); 488 $kind = $node->getAttribute('kind', Cast\Double::KIND_DOUBLE); 571 $syntax = $node->getAttribute('kind', 595 $syntax = $node->getAttribute('kind', 724 $kind = $node->getAttribute('kind', Expr\Exit_::KIND_DIE); [all …]
|
/PHP-Parser/doc/ |
H A D | 2_Usage_of_basic_components.markdown | 207 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 30 milliseconds