class Prism::Translation::Parser::Compiler

def token(location)

Transform a location into a token that the parser gem expects.
def token(location)
  [location.slice, Range.new(source_buffer, offset_cache[location.start_offset], offset_cache[location.end_offset])] if location
end