ts::Edit struct

Used to modify the source code and parse tree.

Contents

Contains the Range that should be replaced and the string it should be replaced with.

Use this with Tree::edit.

Note that the range and replacement string don't need to have the same size.

Supports the equality operators.

Public variables

Range range
The range to replace in the source code.
std::string replacement
The replacement.