| @@ 278-286 (lines=9) @@ | ||
| 275 | return $this->block(); |
|
| 276 | } |
|
| 277 | ||
| 278 | protected function parseCase() |
|
| 279 | { |
|
| 280 | $value = $this->expect('case')->value; |
|
| 281 | $node = new Nodes\CaseNode($value); |
|
| 282 | $node->line = $this->line(); |
|
| 283 | $node->block = $this->block(); |
|
| 284 | ||
| 285 | return $node; |
|
| 286 | } |
|
| 287 | ||
| 288 | protected function parseWhen() |
|
| 289 | { |
|
| @@ 370-380 (lines=11) @@ | ||
| 367 | return $node; |
|
| 368 | } |
|
| 369 | ||
| 370 | protected function parseCustomKeyword() |
|
| 371 | { |
|
| 372 | $token = $this->expect('customKeyword'); |
|
| 373 | $node = new Nodes\CustomKeyword($token->value, $token->args); |
|
| 374 | $node->line = $this->line(); |
|
| 375 | if ('indent' === $this->peekType()) { |
|
| 376 | $node->block = $this->block(); |
|
| 377 | } |
|
| 378 | ||
| 379 | return $node; |
|
| 380 | } |
|
| 381 | ||
| 382 | protected function parseExtends() |
|
| 383 | { |
|