minilua::SourceChange struct

A source change for a single location.

Supports equality operators.

Base classes

struct CommonSCInfo
Common information for source changes.

Constructors, destructors, conversion operators

SourceChange(Range range, std::string replacement)

Public functions

auto simplify() const -> SourceChange -> auto

Public variables

Range range
The range to replace.
std::string replacement

Function documentation

minilua::SourceChange::SourceChange(Range range, std::string replacement)

Create a single SourceChange with empty origin and hint.

auto minilua::SourceChange::simplify() const -> SourceChange

Only here for convenience. Simply returns a copy of this object.

Variable documentation

std::string minilua::SourceChange::replacement

The replacement.