| @@ 61-66 (lines=6) @@ | ||
| 58 | */ |
|
| 59 | public function parse(Parser $parser, TokensList $list) |
|
| 60 | { |
|
| 61 | for (; $list->idx < $list->count; ++$list->idx) { |
|
| 62 | if ($list->tokens[$list->idx]->type === Token::TYPE_DELIMITER) { |
|
| 63 | break; |
|
| 64 | } |
|
| 65 | $this->unknown[] = $list->tokens[$list->idx]; |
|
| 66 | } |
|
| 67 | } |
|
| 68 | } |
|
| 69 | ||
| @@ 188-193 (lines=6) @@ | ||
| 185 | $ret->options = OptionsArray::parse($parser, $list, $options); |
|
| 186 | ||
| 187 | if ($ret->options->has('AS')) { |
|
| 188 | for (; $list->idx < $list->count; ++$list->idx) { |
|
| 189 | if ($list->tokens[$list->idx]->type === Token::TYPE_DELIMITER) { |
|
| 190 | break; |
|
| 191 | } |
|
| 192 | $ret->unknown[] = $list->tokens[$list->idx]; |
|
| 193 | } |
|
| 194 | break; |
|
| 195 | } |
|
| 196 | ||
| @@ 593-599 (lines=7) @@ | ||
| 590 | } |
|
| 591 | ||
| 592 | // Parsing the `AS` keyword. |
|
| 593 | for (; $list->idx < $list->count; ++$list->idx) { |
|
| 594 | $token = $list->tokens[$list->idx]; |
|
| 595 | if ($token->type === Token::TYPE_DELIMITER) { |
|
| 596 | break; |
|
| 597 | } |
|
| 598 | $this->body[] = $token; |
|
| 599 | } |
|
| 600 | } elseif ($this->options->has('TRIGGER')) { |
|
| 601 | // Parsing the time and the event. |
|
| 602 | $this->entityOptions = OptionsArray::parse( |
|
| @@ 631-637 (lines=7) @@ | ||
| 628 | $this->body[] = $token; |
|
| 629 | } |
|
| 630 | } else { |
|
| 631 | for (; $list->idx < $list->count; ++$list->idx) { |
|
| 632 | $token = $list->tokens[$list->idx]; |
|
| 633 | if ($token->type === Token::TYPE_DELIMITER) { |
|
| 634 | break; |
|
| 635 | } |
|
| 636 | $this->body[] = $token; |
|
| 637 | } |
|
| 638 | } |
|
| 639 | } |
|
| 640 | } |
|