ts::EditResult struct

Holds information about all applied edits.

Contents

Returned by Tree::edit.

Supports equality operators.

Public variables

std::vector<Range> changed_ranges
The raw ranges of string that were changed.
std::vector<AppliedEdit> applied_edits
The adjusted and applied edits.

Variable documentation

std::vector<Range> ts::EditResult::changed_ranges

The raw ranges of string that were changed.

This does not directly correspond to the edits.

std::vector<AppliedEdit> ts::EditResult::applied_edits

The adjusted and applied edits.

Holds information about the actually applied edits, including adjusted locations.