Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Breaking changes are marked with
!
.Additions:
Node.child_containing_descendant(descendant)
Tree.language
(getter)Query.pattern_count
(getter)Query.capture_count
(getter)Query.match_limit
(getter)Query.did_exceed_match_limit
(getter)Query.set_match_limit(match_limit)
: returnsself
Query.set_max_start_depth(max_start_depth)
: returnsself
Query.set_byte_range(byte_range)
: returnsself
Query.set_point_range(point_range)
: returnsself
Query.disable_pattern(index)
: returnsself
Query.disable_capture(capture)
: returnsself
Query.pattern_settings(index)
Query.pattern_assertions(index)
Query.start_byte_for_pattern(index)
Query.end_byte_for_pattern(index)
Query.is_pattern_rooted(index)
Query.is_pattern_non_local(index)
Query.is_pattern_guaranteed_at_step(offset)
QueryError
(exception class)QueryPredicate
(typing protocol)Removals:
Parser.set_language(language)
Parser.set_included_ranges(ranges)
Parser.set_timeout_micros(timeout)
Node.sexp()
Tree.text()
TreeCursor.goto_first_child_for_point(row, column)
LookaheadIterator.reset(language, state)
Changes:
Language()
accepts a capsule as an argument.Parser.parse(...)
no longer accepts akeep_text
argument.Query.captures(...)
!set_*
instead).dict[str, list[Node]]
.Query.matches(...)
!set_*
instead).list[tuple[int, dict[str, list[Node]]]]
.TreeCursor.goto_first_child_for_byte(byte)
returnsint | None
.TreeCursor.goto_first_child_for_point(point)
returnsint | None
.