pub fn visit_root(source: Rope, tree: Tree, uri: Url) -> Collapse
visits all valid children of a tree-sitter (red tree) recursively to translate them into the Collapse struct