public class WithCallStack
extends java.lang.Object
implements java.lang.AutoCloseable
try (WithCallStack cs = new WithCallStack(CallFrame.fromVal("rest", ast))) {
return ast.rest();
}
WithCallStack.run(
CallFrame.fromVal("rest", ast)));
() -> return ast.rest();
}
| Constructor and Description |
|---|
WithCallStack(CallFrame callFrame) |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
call(CallFrame callFrame,
java.util.function.Supplier<T> func) |
void |
close() |
static void |
run(CallFrame callFrame,
java.lang.Runnable func) |
public WithCallStack(CallFrame callFrame)