def convert_tree(haml_node, parent = nil)
      new_node = @node_transformer.transform(haml_node)
      new_node.parent = parent

      new_node.children = haml_node.children.map do |child|
        convert_tree(child, new_node)
      end

      new_node
    end
def convert_tree(haml_node, parent = nil)
      new_node = @node_transformer.transform(haml_node)
      new_node.parent = parent

      new_node.children = haml_node.children.map do |child|
        convert_tree(child, new_node)
      end

      new_node
    end
Converts a HAML parse tree to a tree of {HamlLint::Tree::Node} objects.

 This provides a cleaner interface with which the linters can interact with
 the parse tree.

 @param haml_node [Haml::Parser::ParseNode]
 @param parent [Haml::Tree::Node]
 @return [Haml::Tree::Node]