Skip to main content

tree

Function tree 

Source
pub fn tree(node: &SyntaxNode) -> String
Expand description

Prints a tree one element per line, indented two spaces per level, with byte ranges. Tokens also show their quoted text:

ROOT@0..8
  ECHO@0..8
    ECHO_OPEN@0..2 "{{"