def _GetLine(data, token):
  """Gets the line of text that |token| is part of in |data|."""
  start_line_pos = data.rfind('\n', 0, token.lexpos) + 1
  end_line_pos = data.find('\n', start_line_pos)
  return data[start_line_pos:end_line_pos]