| @@ 198-205 (lines=8) @@ | ||
| 195 | } |
|
| 196 | } |
|
| 197 | ||
| 198 | if ($state !== 3) { |
|
| 199 | $parser->error( |
|
| 200 | 'Unexpected end of CASE expression', |
|
| 201 | $list->tokens[$list->idx - 1] |
|
| 202 | ); |
|
| 203 | } else { |
|
| 204 | $ret->expr = self::build($ret); |
|
| 205 | } |
|
| 206 | ||
| 207 | --$list->idx; |
|
| 208 | ||
| @@ 303-308 (lines=6) @@ | ||
| 300 | $ret[] = $expr; |
|
| 301 | } |
|
| 302 | ||
| 303 | if (($state !== 0) && ($state !== 6)) { |
|
| 304 | $parser->error( |
|
| 305 | 'A closing bracket was expected.', |
|
| 306 | $list->tokens[$list->idx - 1] |
|
| 307 | ); |
|
| 308 | } |
|
| 309 | ||
| 310 | --$list->idx; |
|
| 311 | ||