| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function build(string $kind, LexerInterface $lexer, array $params = []): ?array |
||
| 33 | { |
||
| 34 | $builder = $this->getBuilder($kind); |
||
| 35 | |||
| 36 | if ($builder !== null) { |
||
| 37 | return $builder->build($lexer, $params); |
||
| 38 | } |
||
| 39 | |||
| 40 | throw new LanguageException(sprintf('AST of kind "%s" not supported.', $kind)); |
||
| 41 | } |
||
| 58 |