Function difft::parse::tree_sitter_parser::all_syntaxes_from_cursor
source · [−]fn all_syntaxes_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
) -> Vec<&'a Syntax<'a>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
Expand description
Convert all the tree-sitter nodes at this level to difftastic syntax nodes.
cursor
should be pointing at the first tree-sitter node in a level.