module SimpleCov::StaticCoverageExtractor::LocationConventions

def if_like_location(node, type)

shared `end` keyword the clause doesn't own.
end an `elsif` clause's range at its last content instead of the
CRuby uses the node's full source range for every form; 3.2/3.3
The range Coverage assigns to an if-like node itself. Modern
def if_like_location(node, type)
  return node.location unless LEGACY_COVERAGE_LOCATIONS && type == :if && elsif_node?(node)
  content_end = legacy_content_end(node)
  PointLocation.new(
    start_line: node.location.start_line, start_column: node.location.start_column,
    end_line: content_end.end_line, end_column: content_end.end_column
  )
end