pub unsafe extern "C" fn ts_query_cursor_set_point_range(
self_: *mut TSQueryCursor,
start_point: TSPoint,
end_point: TSPoint,
) -> bool
Expand description
Set the range of (row, column) positions 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 point is greater than the end point, otherwise
it will return true
.