| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | 1 | private function parseNode(Node $astNode, AttributeNodeInterface $parent): AttributeNodeInterface |
|
| 38 | { |
||
| 39 | 1 | $node = new AttributeNode([ |
|
| 40 | 1 | 'label' => $astNode->getNodeKindName(), |
|
| 41 | 1 | 'astNode' => $astNode, |
|
| 42 | ]); |
||
| 43 | |||
| 44 | 1 | $parent->add($node); |
|
| 45 | |||
| 46 | 1 | foreach ($astNode->getChildNodes() as $child) { |
|
| 47 | 1 | $this->parseNode($child, $node); |
|
| 48 | } |
||
| 49 | |||
| 50 | 1 | return $parent; |
|
| 51 | } |
||
| 53 |