Tiny refactor
This commit is contained in:
@@ -248,7 +248,8 @@ class Helpers {
|
|||||||
var expr = if (body.length == 0) {
|
var expr = if (body.length == 0) {
|
||||||
EReturn(null).withMacroPosOf(if (name != null) name else argList);
|
EReturn(null).withMacroPosOf(if (name != null) name else argList);
|
||||||
} else {
|
} else {
|
||||||
var block = k.convert(CallExp(Symbol("begin").withPos(body[0].pos), body).withPos(body[0].pos));
|
var builder = body[0].expBuilder();
|
||||||
|
var block = k.convert(builder.begin(body));
|
||||||
|
|
||||||
if (returnsValue) {
|
if (returnsValue) {
|
||||||
EReturn(block).withMacroPosOf(body[-1]);
|
EReturn(block).withMacroPosOf(body[-1]);
|
||||||
|
|||||||
Reference in New Issue
Block a user