// TODO: don't require pop
if (!expr) context.consumeCurrentValue();
}
public void compilePreExe(Node node, BodyCompiler context, boolean expr) {
final PreExeNode preExeNode = (PreExeNode) node;
// create the closure class and instantiate it
final CompilerCallback closureBody = new CompilerCallback() {
public void call(BodyCompiler context) {
if (preExeNode.getBodyNode() != null) {
compile(preExeNode.getBodyNode(), context,true);
} else {
context.loadNil();
}
}
};
context.runBeginBlock(preExeNode.getScope(), closureBody);
// TODO: don't require pop
if (!expr) context.consumeCurrentValue();
}