alias Crystal::Repl::Interpreter::ReturnedValue

Overview

This is a value that's being returned from inside a block. The tricky part here is that we need to return from a method, but we also need to execute any ensures. So, we store the returned value in this struct and start going up the call stack. target_frame_index is the frame index where we must stop.

Alias Definition

Crystal::Repl::Interpreter::BigReturnedValue | Crystal::Repl::Interpreter::SmallReturnedValue

Defined in:

compiler/crystal/interpreter/interpreter.cr