From 8fb3252df007fb74fcd695908f285915b4facda2 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Thu, 20 Jul 2023 15:30:06 +0100 Subject: Generate closure body --- src/main/java/org/shedlang/compiler/patio/PatioCodeGenClosures.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/org/shedlang/compiler/patio/PatioCodeGenClosures.java b/src/main/java/org/shedlang/compiler/patio/PatioCodeGenClosures.java index 29136b20..fc153522 100644 --- a/src/main/java/org/shedlang/compiler/patio/PatioCodeGenClosures.java +++ b/src/main/java/org/shedlang/compiler/patio/PatioCodeGenClosures.java @@ -50,7 +50,7 @@ class PatioCodeGenClosures { List positionalParams, List namedParams, FreeVariables freeVariables, - Function compileBody, + Function generateBody, Source source, PatioCodeGenContext context ) { @@ -97,6 +97,8 @@ class PatioCodeGenClosures { )); } + bodyContext = generateBody.apply(bodyContext); + return bodyContext; }); -- cgit v1.2.3