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


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


iex> context ="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