Function difft::parse::tree_sitter_parser::list_from_cursor
source · [−]fn list_from_cursor<'a>(
arena: &'a Arena<Syntax<'a>>,
src: &str,
nl_pos: &LinePositions,
cursor: &mut TreeCursor<'_>,
error_count: &mut usize,
config: &TreeSitterConfig,
highlights: &HighlightedNodeIds,
subtrees: &HashMap<usize, (Tree, TreeSitterConfig, HighlightedNodeIds), BuildHasherDefault<FxHasher>>,
ignore_comments: bool
) -> &'a Syntax<'a>
Expand description
Convert the tree-sitter node at cursor
to a difftastic list
node.