includes/parser/Preprocessor_DOM.php 1 location
|
@@ 1295-1305 (lines=11) @@
|
| 1292 |
|
$outStack[] = ''; |
| 1293 |
|
$iteratorStack[] = $newIterator; |
| 1294 |
|
$indexStack[] = 0; |
| 1295 |
|
} elseif ( $iteratorStack[$level] === false ) { |
| 1296 |
|
// Return accumulated value to parent |
| 1297 |
|
// With tail recursion |
| 1298 |
|
while ( $iteratorStack[$level] === false && $level > 0 ) { |
| 1299 |
|
$outStack[$level - 1] .= $out; |
| 1300 |
|
array_pop( $outStack ); |
| 1301 |
|
array_pop( $iteratorStack ); |
| 1302 |
|
array_pop( $indexStack ); |
| 1303 |
|
$level--; |
| 1304 |
|
} |
| 1305 |
|
} |
| 1306 |
|
} |
| 1307 |
|
--$expansionDepth; |
| 1308 |
|
return $outStack[0]; |
includes/parser/Preprocessor_Hash.php 1 location
|
@@ 1117-1127 (lines=11) @@
|
| 1114 |
|
$outStack[] = ''; |
| 1115 |
|
$iteratorStack[] = $newIterator; |
| 1116 |
|
$indexStack[] = 0; |
| 1117 |
|
} elseif ( $iteratorStack[$level] === false ) { |
| 1118 |
|
// Return accumulated value to parent |
| 1119 |
|
// With tail recursion |
| 1120 |
|
while ( $iteratorStack[$level] === false && $level > 0 ) { |
| 1121 |
|
$outStack[$level - 1] .= $out; |
| 1122 |
|
array_pop( $outStack ); |
| 1123 |
|
array_pop( $iteratorStack ); |
| 1124 |
|
array_pop( $indexStack ); |
| 1125 |
|
$level--; |
| 1126 |
|
} |
| 1127 |
|
} |
| 1128 |
|
} |
| 1129 |
|
--$expansionDepth; |
| 1130 |
|
return $outStack[0]; |