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.
pub fn parse(content: &Content) -> Result<Tree, ParseError>Parses content with the tree-sitter grammar of its language.
Returns ParseError when the grammar cannot be loaded or the tree
contains a syntax error.