Ergo.Context.reset_status

You're seeing just the function reset_status, go back to Ergo.Context module for more information.
Link to this function

reset_status(ctx)

Clears the value of the status and ast fields to ensure that the wrong status information cannot be returned from a child parser.

Examples

iex> context = Context.new(&Ergo.Parser.call/2, "Hello World")
iex> context = %{context | status: {:error, [{:inexplicable_error, "What the…"}]}, ast: true}
iex> context = Context.reset_status(context)
iex> assert %Context{status: :ok, ast: nil} = context