View Source Babel.Context (Babel v1.2.0)

Passed to Babel.Applicable.apply/2 wrapping the given data.

In addition it retains a history of all previously executed steps by capturing their Babel.Traces.

Summary

Types

@type t() :: t(any())
@type t(data) :: %Babel.Context{data: data, history: [Babel.Trace.t()]}

Functions

Link to this function

new(data, history \\ [])

View Source
@spec new(data, history :: [Babel.Trace.t()]) :: t(data) when data: Babel.data()