@@ 517-523 (lines=7) @@ | ||
514 | } |
|
515 | ||
516 | // Parsing the `AS` keyword. |
|
517 | for (; $list->idx < $list->count; ++$list->idx) { |
|
518 | $token = $list->tokens[$list->idx]; |
|
519 | if ($token->type === Token::TYPE_DELIMITER) { |
|
520 | break; |
|
521 | } |
|
522 | $this->body[] = $token; |
|
523 | } |
|
524 | } elseif ($this->options->has('TRIGGER')) { |
|
525 | // Parsing the time and the event. |
|
526 | $this->entityOptions = OptionsArray::parse( |
|
@@ 555-561 (lines=7) @@ | ||
552 | $this->body[] = $token; |
|
553 | } |
|
554 | } else { |
|
555 | for (; $list->idx < $list->count; ++$list->idx) { |
|
556 | $token = $list->tokens[$list->idx]; |
|
557 | if ($token->type === Token::TYPE_DELIMITER) { |
|
558 | break; |
|
559 | } |
|
560 | $this->body[] = $token; |
|
561 | } |
|
562 | } |
|
563 | } |
|
564 | } |
@@ 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 |