Skip to content

Commit e047051

Browse files
authored
Merge pull request #175 from xp-framework/feature/transform-multiple-without-statements
Transform multiple nodes without creating statements
2 parents 3c70fb7 + f600243 commit e047051

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/php/lang/ast/Emitter.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ public function emitOne($result, $node) {
148148
$this->{'emit'.$r->kind}($result, $r);
149149
return;
150150
} else if ($r) {
151-
foreach ($r as $n) {
151+
foreach ($r as $s => $n) {
152152
$this->{'emit'.$n->kind}($result, $n);
153-
$result->out->write(';');
153+
null === $s || $result->out->write(';');
154154
}
155155
return;
156156
}

0 commit comments

Comments
 (0)