global
def self.from_map_to_h(node, match)
def self.from_map_to_h(node, match) if node.block_literal? strip_trailing_chars = 0 else map_range = node.children.first.source_range node_range = node.source_range strip_trailing_chars = node_range.end_pos - map_range.end_pos end new(match, node.children.first, 0, strip_trailing_chars) end