Commit Graph

2 Commits (dbaa6366834790cda0bd92ea8971fec9ae9b601b)

Author SHA1 Message Date
Skyler Hawthorne c99c333337 Use new in-crate TreeCursor 2024-04-09 10:33:15 -04:00
Michael Davis b1222f0664 Add a TreeCursor type that travels over injection layers
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.
2024-03-23 15:32:34 +09:00