| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function build(LexerInterface $lexer, array $params): ?array |
||
| 23 | { |
||
| 24 | $start = $lexer->getToken(); |
||
| 25 | |||
| 26 | $description = $this->buildAST(ASTKindEnum::DESCRIPTION, $lexer); |
||
| 27 | |||
| 28 | $this->expectKeyword($lexer, KeywordEnum::SCALAR); |
||
| 29 | |||
| 30 | return [ |
||
| 31 | 'kind' => NodeKindEnum::SCALAR_TYPE_DEFINITION, |
||
| 32 | 'description' => $description, |
||
| 33 | 'name' => $this->buildAST(ASTKindEnum::NAME, $lexer), |
||
| 34 | 'directives' => $this->buildAST(ASTKindEnum::DIRECTIVES, $lexer), |
||
| 35 | 'loc' => $this->buildLocation($lexer, $start), |
||
| 36 | ]; |
||
| 39 |