|
@@ 1254-1262 (lines=9) @@
|
| 1251 |
|
$this->t->scanOperand = true; |
| 1252 |
|
break; |
| 1253 |
|
|
| 1254 |
|
case KEYWORD_IN: |
| 1255 |
|
// An in operator should not be parsed if we're parsing the head of |
| 1256 |
|
// a for (...) loop, unless it is in the then part of a conditional |
| 1257 |
|
// expression, or parenthesized somehow. |
| 1258 |
|
if ($x->inForLoopInit && !$x->hookLevel && |
| 1259 |
|
!$x->bracketLevel && !$x->curlyLevel && |
| 1260 |
|
!$x->parenLevel |
| 1261 |
|
) |
| 1262 |
|
break 2; |
| 1263 |
|
// FALL THROUGH |
| 1264 |
|
case OP_COMMA: |
| 1265 |
|
// A comma operator should not be parsed if we're parsing the then part |
|
@@ 1264-1271 (lines=8) @@
|
| 1261 |
|
) |
| 1262 |
|
break 2; |
| 1263 |
|
// FALL THROUGH |
| 1264 |
|
case OP_COMMA: |
| 1265 |
|
// A comma operator should not be parsed if we're parsing the then part |
| 1266 |
|
// of a conditional expression unless it's parenthesized somehow. |
| 1267 |
|
if ($tt == OP_COMMA && $x->hookLevel && |
| 1268 |
|
!$x->bracketLevel && !$x->curlyLevel && |
| 1269 |
|
!$x->parenLevel |
| 1270 |
|
) |
| 1271 |
|
break 2; |
| 1272 |
|
// Treat comma as left-associative so reduce can fold left-heavy |
| 1273 |
|
// COMMA trees into a single array. |
| 1274 |
|
// FALL THROUGH |