Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rust parser: MarkdownCursor is missing several methods compared to TreeCursor #169

Open
janWilejan opened this issue Nov 3, 2024 · 0 comments

Comments

@janWilejan
Copy link

tree-sitter-md = { version = "0.3.2", features = ["parser"] }

The documentation for MarkdownCursor says

This exposes the same methods as TreeCursor, but abstracts away the double block / inline structure of MarkdownTree.

But MarkdownCursor is missing several methods that TreeCursor has. Namely:

pub fn depth(&self) -> u32
pub fn descendant_index(&self) -> usize
pub fn goto_last_child(&mut self) -> bool
pub fn goto_descendant(&mut self, descendant_index: usize)
pub fn goto_previous_sibling(&mut self) -> bool
pub fn reset(&mut self, node: Node<'cursor>)
pub fn reset_to(&mut self, cursor: &Self)

Also MarkdownCursor does not implement Clone. It should implement Clone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant