module SyntaxTree::Reflection

def node(name)

that node.
This expects a node name as a symbol and returns the node object for
def node(name)
  nodes.fetch(name)
end

def parse_comments(statements, index)

def parse_comments(statements, index)
  statements[0...index]
    .reverse_each
    .take_while { _1.is_a?(SyntaxTree::Comment) }
    .reverse_each
    .map { _1.value[2..] }
end