struct
MatchA match of a pattern in a syntax tree.
Contents
- Reference
Public functions
- auto capture_with_index(std::uint32_t index) const -> std::optional<Capture>
- The first capture with the given index, if any.
Public variables
- uint16_t pattern_index
- The index of the pattern in the query.
- std::vector<Capture> captures
- The captures of the match.
Function documentation
std::optional<Capture> ts:: Match:: capture_with_index(std::uint32_t index) const
The first capture with the given index, if any.