package org.jruby.ir.interpreter;
import java.util.EnumSet;
import java.util.List;
import java.util.function.Supplier;
import org.jruby.ir.IRClosure;
import org.jruby.ir.IRFlags;
import org.jruby.ir.instructions.Instr;
import org.jruby.runtime.DynamicScope;
import org.jruby.runtime.ThreadContext;
public class ClosureInterpreterContext extends InterpreterContext {
public ClosureInterpreterContext(IRClosure scope, List<Instr> instructions, int temporaryVariableCount, EnumSet<IRFlags> flags) {
super(scope, instructions, temporaryVariableCount,flags);
}
public ClosureInterpreterContext(IRClosure scope, Supplier<List<Instr>> instructions, int temporaryVariableCount, EnumSet<IRFlags> flags) {
super(scope, instructions, temporaryVariableCount, flags);
}
@Override
public DynamicScope newDynamicScope(ThreadContext context) {
throw new RuntimeException("We do not push bindings for closures");
}
}