pub unsafe extern "C" fn ts_query_cursor_set_byte_range(
self_: *mut TSQueryCursor,
start_byte: u32,
end_byte: u32,
) -> bool
Expand description
Set the range of bytes in which the query will be executed.
The query cursor will return matches that intersect with the given point range. This means that a match may be returned even if some of its captures fall outside the specified range, as long as at least part of the match overlaps with the range.
For example, if a query pattern matches a node that spans a larger area than the specified range, but part of that node intersects with the range, the entire match will be returned.
This will return false
if the start byte is greater than the end byte, otherwise
it will return true
.