diff --git a/src/abstract_tree/mod.rs b/src/abstract_tree/mod.rs index e55d7f7..7abf79a 100644 --- a/src/abstract_tree/mod.rs +++ b/src/abstract_tree/mod.rs @@ -72,6 +72,9 @@ pub struct Root { statements: Vec, } +// TODO Change Root to use tree sitter's cursor to traverse the statements +// instead of indexes. This will be more performant when there are a lot of +// top-level statements in the tree. impl AbstractTree for Root { fn from_syntax(node: SyntaxNode, source: &str, context: &Map) -> Result { Error::expect_syntax_node(source, "root", node)?;