global

def match_map

Returns:
  • (Hash) - a map for {node => matched?}, depth-first
def match_map
  @match_map ||=
    ast
    .each_node
    .to_h { |node| [node, matched?(node)] }
end