Skip to content

Commit b25fb71

Browse files
committed
Use PHP::emitLambda() instead of inlining
1 parent 5880851 commit b25fb71

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/php/lang/ast/emit/RewriteBlockLambdaExpressions.class.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ protected function emitLambda($result, $lambda) {
1616
$this->emitAll($result, $body->statements);
1717
});
1818
} else {
19-
$result->out->write('fn');
20-
$this->emitSignature($result, $lambda->signature);
21-
$result->out->write('=>');
22-
$this->emitOne($result, $lambda->body);
19+
parent::emitLambda($result, $lambda);
2320
}
2421
}
2522
}

0 commit comments

Comments
 (0)