Skip to main content

parse

Function parse 

Source
pub fn parse(content: &Content) -> Result<Tree, ParseError>
Expand description

Parses content with the tree-sitter grammar of its language.

ยงErrors

Returns ParseError when the grammar cannot be loaded or the tree contains a syntax error.