Skip to main content

syntax_node_to_sexp

Function syntax_node_to_sexp 

Source
pub fn syntax_node_to_sexp(node: &SyntaxNode, opts: &SexpOptions) -> String
Expand description

Serialize a syntax tree to an S-expression string.

Format: (KIND child1 child2 ...) for nodes; tokens as (KIND "text"). Trivia is included only when SexpOptions::include_trivia is true.