| @@ 54-59 (lines=6) @@ | ||
| 51 | */ |
|
| 52 | public function parse(Parser $parser, TokensList $list) |
|
| 53 | { |
|
| 54 | for (; $list->idx < $list->count; ++$list->idx) { |
|
| 55 | if ($list->tokens[$list->idx]->type === Token::TYPE_DELIMITER) { |
|
| 56 | break; |
|
| 57 | } |
|
| 58 | $this->unknown[] = $list->tokens[$list->idx]; |
|
| 59 | } |
|
| 60 | } |
|
| 61 | } |
|
| 62 | ||
| @@ 201-206 (lines=6) @@ | ||
| 198 | $ret->options = OptionsArray::parse($parser, $list, $options); |
|
| 199 | ||
| 200 | if ($ret->options->has('AS')) { |
|
| 201 | for (; $list->idx < $list->count; ++$list->idx) { |
|
| 202 | if ($list->tokens[$list->idx]->type === Token::TYPE_DELIMITER) { |
|
| 203 | break; |
|
| 204 | } |
|
| 205 | $ret->unknown[] = $list->tokens[$list->idx]; |
|
| 206 | } |
|
| 207 | break; |
|
| 208 | } |
|
| 209 | ||
| @@ 586-592 (lines=7) @@ | ||
| 583 | } |
|
| 584 | ||
| 585 | // Parsing the `AS` keyword. |
|
| 586 | for (; $list->idx < $list->count; ++$list->idx) { |
|
| 587 | $token = $list->tokens[$list->idx]; |
|
| 588 | if ($token->type === Token::TYPE_DELIMITER) { |
|
| 589 | break; |
|
| 590 | } |
|
| 591 | $this->body[] = $token; |
|
| 592 | } |
|
| 593 | } elseif ($this->options->has('TRIGGER')) { |
|
| 594 | // Parsing the time and the event. |
|
| 595 | $this->entityOptions = OptionsArray::parse( |
|
| @@ 624-630 (lines=7) @@ | ||
| 621 | $this->body[] = $token; |
|
| 622 | } |
|
| 623 | } else { |
|
| 624 | for (; $list->idx < $list->count; ++$list->idx) { |
|
| 625 | $token = $list->tokens[$list->idx]; |
|
| 626 | if ($token->type === Token::TYPE_DELIMITER) { |
|
| 627 | break; |
|
| 628 | } |
|
| 629 | $this->body[] = $token; |
|
| 630 | } |
|
| 631 | } |
|
| 632 | } |
|
| 633 | } |
|