get_tree

Function get_tree 

Source
pub fn get_tree(src: &str) -> Option<(Tree, String)>
Expand description

Parse the given source code into a syntax tree using tree-sitter.

If successful, returns a tuple containing the syntax tree and the raw source code. If the source code is not valid Essence, returns None.

NOTE: The new source code may be different from the original source code. See implementation for details.