Skip to content

Commit

Permalink
Merge pull request #175 from xp-framework/feature/transform-multiple-…
Browse files Browse the repository at this point in the history
…without-statements

Transform multiple nodes without creating statements
  • Loading branch information
thekid authored Oct 1, 2023
2 parents 3c70fb7 + f600243 commit e047051
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/php/lang/ast/Emitter.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ public function emitOne($result, $node) {
$this->{'emit'.$r->kind}($result, $r);
return;
} else if ($r) {
foreach ($r as $n) {
foreach ($r as $s => $n) {
$this->{'emit'.$n->kind}($result, $n);
$result->out->write(';');
null === $s || $result->out->write(';');
}
return;
}
Expand Down

0 comments on commit e047051

Please sign in to comment.