Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Add a TreeCursor type that travels over injection layers | Michael Davis | 2024-03-23 |
This uses the layer parentage information from the parent commit to traverse the layers. It's a similar API to `tree_sitter:TreeCursor` but internally it does not use a `tree_sitter::TreeCursor` currently because that interface is behaving very unexpectedly. Using the `next_sibling`/`prev_sibling`/`parent` API on `tree_sitter::Node` reflects the previous code's behavior so this should result in no surprising changes. |