Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function build(LexerInterface $lexer, array $params): ?array |
||
22 | { |
||
23 | $parseFunction = function (LexerInterface $lexer): array { |
||
24 | return $this->buildAST(ASTKindEnum::INPUT_VALUE_DEFINITION, $lexer); |
||
|
|||
25 | }; |
||
26 | |||
27 | return $this->peek($lexer, TokenKindEnum::PAREN_L) |
||
28 | ? $this->many( |
||
29 | $lexer, |
||
30 | TokenKindEnum::PAREN_L, |
||
31 | $parseFunction, |
||
32 | TokenKindEnum::PAREN_R |
||
33 | ) |
||
34 | : []; |
||
35 | } |
||
37 |