class Steep::AST::Buffer

def pos_to_loc(pos)

def pos_to_loc(pos)
  index = ranges.bsearch_index do |range|
    pos <= range.end
  end
  if index
    [index + 1, pos - ranges[index].begin]
  else
    [1, pos]
  end
end