minilua::LiteralOrigin struct

Origin for a Value that was created from a literal in code.

Contents

Supports equality operators.

Public functions

auto simplify() const -> Origin -> auto
auto with_updated_ranges(const RangeMap& range_map) const -> LiteralOrigin -> auto

Public variables

Range location
The range of the literal.

Function documentation

auto minilua::LiteralOrigin::simplify() const -> Origin

Simplify the origin.

Removes unusable origins from the tree.

auto minilua::LiteralOrigin::with_updated_ranges(const RangeMap& range_map) const -> LiteralOrigin

Helper method for Origin::with_updated_ranges.