|
135 | 135 | new \Phplrt\Parser\Grammar\Concatenation([59]),
|
136 | 136 | new \Phplrt\Parser\Grammar\Optional(54),
|
137 | 137 | new \Phplrt\Parser\Grammar\Alternation([55, 56]),
|
138 |
| - new \Phplrt\Parser\Grammar\Concatenation([144]), |
| 138 | + new \Phplrt\Parser\Grammar\Concatenation([154]), |
139 | 139 | new \Phplrt\Parser\Grammar\Concatenation([67, 71, 72]),
|
140 | 140 | new \Phplrt\Parser\Grammar\Concatenation([86, 59]),
|
141 | 141 | new \Phplrt\Parser\Grammar\Lexeme('T_PARENTHESIS_OPEN', false),
|
|
194 | 194 | new \Phplrt\Parser\Grammar\Alternation([53, 99]),
|
195 | 195 | new \Phplrt\Parser\Grammar\Optional(115),
|
196 | 196 | new \Phplrt\Parser\Grammar\Concatenation([2, 116]),
|
197 |
| - new \Phplrt\Parser\Grammar\Concatenation([145]), |
| 197 | + new \Phplrt\Parser\Grammar\Concatenation([155]), |
198 | 198 | new \Phplrt\Parser\Grammar\Optional(121),
|
199 | 199 | new \Phplrt\Parser\Grammar\Concatenation([118, 119]),
|
200 | 200 | new \Phplrt\Parser\Grammar\Concatenation([124, 125, 126, 59, 127, 59]),
|
|
216 | 216 | new \Phplrt\Parser\Grammar\Lexeme('T_ATTR_OPEN', false),
|
217 | 217 | new \Phplrt\Parser\Grammar\Optional(136),
|
218 | 218 | new \Phplrt\Parser\Grammar\Lexeme('T_SQUARE_BRACKET_CLOSE', false),
|
219 |
| - new \Phplrt\Parser\Grammar\Concatenation([2]), |
| 219 | + new \Phplrt\Parser\Grammar\Concatenation([2, 145]), |
220 | 220 | new \Phplrt\Parser\Grammar\Lexeme('T_COMMA', false),
|
221 | 221 | new \Phplrt\Parser\Grammar\Concatenation([141, 140]),
|
222 | 222 | new \Phplrt\Parser\Grammar\Repetition(142, 0, INF),
|
| 223 | + new \Phplrt\Parser\Grammar\Concatenation([150, 146, 151, 152, 153]), |
| 224 | + new \Phplrt\Parser\Grammar\Optional(144), |
| 225 | + new \Phplrt\Parser\Grammar\Concatenation([59]), |
| 226 | + new \Phplrt\Parser\Grammar\Lexeme('T_COMMA', false), |
| 227 | + new \Phplrt\Parser\Grammar\Concatenation([147, 146]), |
| 228 | + new \Phplrt\Parser\Grammar\Lexeme('T_COMMA', false), |
| 229 | + new \Phplrt\Parser\Grammar\Lexeme('T_PARENTHESIS_OPEN', false), |
| 230 | + new \Phplrt\Parser\Grammar\Repetition(148, 0, INF), |
| 231 | + new \Phplrt\Parser\Grammar\Optional(149), |
| 232 | + new \Phplrt\Parser\Grammar\Lexeme('T_PARENTHESIS_CLOSE', false), |
223 | 233 | new \Phplrt\Parser\Grammar\Concatenation([123]),
|
224 |
| - new \Phplrt\Parser\Grammar\Concatenation([146, 149]), |
225 |
| - new \Phplrt\Parser\Grammar\Concatenation([150, 153]), |
| 234 | + new \Phplrt\Parser\Grammar\Concatenation([156, 159]), |
| 235 | + new \Phplrt\Parser\Grammar\Concatenation([160, 163]), |
226 | 236 | new \Phplrt\Parser\Grammar\Lexeme('T_OR', false),
|
227 |
| - new \Phplrt\Parser\Grammar\Concatenation([147, 145]), |
228 |
| - new \Phplrt\Parser\Grammar\Optional(148), |
229 |
| - new \Phplrt\Parser\Grammar\Concatenation([154]), |
| 237 | + new \Phplrt\Parser\Grammar\Concatenation([157, 155]), |
| 238 | + new \Phplrt\Parser\Grammar\Optional(158), |
| 239 | + new \Phplrt\Parser\Grammar\Concatenation([164]), |
230 | 240 | new \Phplrt\Parser\Grammar\Lexeme('T_AMP', false),
|
231 |
| - new \Phplrt\Parser\Grammar\Concatenation([151, 146]), |
232 |
| - new \Phplrt\Parser\Grammar\Optional(152), |
233 |
| - new \Phplrt\Parser\Grammar\Alternation([157, 155]), |
234 |
| - new \Phplrt\Parser\Grammar\Concatenation([158, 162]), |
| 241 | + new \Phplrt\Parser\Grammar\Concatenation([161, 156]), |
| 242 | + new \Phplrt\Parser\Grammar\Optional(162), |
| 243 | + new \Phplrt\Parser\Grammar\Alternation([167, 165]), |
| 244 | + new \Phplrt\Parser\Grammar\Concatenation([168, 172]), |
235 | 245 | new \Phplrt\Parser\Grammar\Lexeme('T_QMARK', true),
|
236 |
| - new \Phplrt\Parser\Grammar\Concatenation([156, 155]), |
237 |
| - new \Phplrt\Parser\Grammar\Alternation([165, 29, 20, 66, 117]), |
| 246 | + new \Phplrt\Parser\Grammar\Concatenation([166, 165]), |
| 247 | + new \Phplrt\Parser\Grammar\Alternation([175, 29, 20, 66, 117]), |
238 | 248 | new \Phplrt\Parser\Grammar\Lexeme('T_SQUARE_BRACKET_OPEN', true),
|
239 | 249 | new \Phplrt\Parser\Grammar\Lexeme('T_SQUARE_BRACKET_CLOSE', false),
|
240 |
| - new \Phplrt\Parser\Grammar\Concatenation([159, 160]), |
241 |
| - new \Phplrt\Parser\Grammar\Repetition(161, 0, INF), |
| 250 | + new \Phplrt\Parser\Grammar\Concatenation([169, 170]), |
| 251 | + new \Phplrt\Parser\Grammar\Repetition(171, 0, INF), |
242 | 252 | new \Phplrt\Parser\Grammar\Lexeme('T_PARENTHESIS_OPEN', false),
|
243 | 253 | new \Phplrt\Parser\Grammar\Lexeme('T_PARENTHESIS_CLOSE', false),
|
244 |
| - new \Phplrt\Parser\Grammar\Concatenation([163, 59, 164]), |
| 254 | + new \Phplrt\Parser\Grammar\Concatenation([173, 59, 174]), |
245 | 255 | ],
|
246 | 256 | 'reducers' => [
|
247 | 257 | 0 => static function (\Phplrt\Parser\Context $ctx, $children) {
|
|
363 | 373 | $hint = \reset($children);
|
364 | 374 | }
|
365 | 375 |
|
366 |
| - return new Node\Stmt\Template\ArgumentNode( |
| 376 | + return new Node\Stmt\Template\TemplateArgumentNode( |
367 | 377 | $type,
|
368 | 378 | $hint,
|
369 | 379 | $attributes,
|
|
377 | 387 | throw FeatureNotAllowedException::fromFeature('template arguments', $offset);
|
378 | 388 | }
|
379 | 389 |
|
380 |
| - return new Node\Stmt\Template\ArgumentsListNode($children); |
| 390 | + return new Node\Stmt\Template\TemplateArgumentsListNode($children); |
381 | 391 | },
|
382 | 392 | 54 => static function (\Phplrt\Parser\Context $ctx, $children) {
|
383 | 393 | return new Node\Stmt\Attribute\AttributeGroupsListNode($children);
|
|
618 | 628 | $children[0],
|
619 | 629 | );
|
620 | 630 | },
|
621 |
| - 145 => function (\Phplrt\Parser\Context $ctx, $children) { |
| 631 | + 144 => static function (\Phplrt\Parser\Context $ctx, $children) { |
| 632 | + return new Node\Stmt\Attribute\AttributeArgumentsListNode($children); |
| 633 | + }, |
| 634 | + 146 => static function (\Phplrt\Parser\Context $ctx, $children) { |
| 635 | + return new Node\Stmt\Attribute\AttributeArgumentNode($children[0]); |
| 636 | + }, |
| 637 | + 155 => function (\Phplrt\Parser\Context $ctx, $children) { |
622 | 638 | // The "$offset" variable is an auto-generated
|
623 | 639 | $offset = $ctx->lastProcessedToken->getOffset();
|
624 | 640 |
|
|
632 | 648 |
|
633 | 649 | return $children;
|
634 | 650 | },
|
635 |
| - 146 => function (\Phplrt\Parser\Context $ctx, $children) { |
| 651 | + 156 => function (\Phplrt\Parser\Context $ctx, $children) { |
636 | 652 | // The "$offset" variable is an auto-generated
|
637 | 653 | $offset = $ctx->lastProcessedToken->getOffset();
|
638 | 654 |
|
|
646 | 662 |
|
647 | 663 | return $children;
|
648 | 664 | },
|
649 |
| - 154 => static function (\Phplrt\Parser\Context $ctx, $children) { |
| 665 | + 164 => static function (\Phplrt\Parser\Context $ctx, $children) { |
650 | 666 | if (\is_array($children)) {
|
651 | 667 | return new Node\Stmt\NullableTypeNode($children[1]);
|
652 | 668 | }
|
653 | 669 |
|
654 | 670 | return $children;
|
655 | 671 | },
|
656 |
| - 155 => function (\Phplrt\Parser\Context $ctx, $children) { |
| 672 | + 165 => function (\Phplrt\Parser\Context $ctx, $children) { |
657 | 673 | // The "$offset" variable is an auto-generated
|
658 | 674 | $offset = $ctx->lastProcessedToken->getOffset();
|
659 | 675 |
|
|
0 commit comments