Skip to main content

format_syntax_tree

Function format_syntax_tree 

Source
pub fn format_syntax_tree(
    root: &SyntaxNode,
    options: &TreeDisplayOptions,
) -> String
Expand description

Format a syntax tree starting at root as a multi-line string.

Uses LeekScript kind names for node and token labels.