def GetNextTokenIndex(tokens, pos):
  """Get the index of the next token after 'pos.'"""
  index = 0
  while index < len(tokens):
    if (tokens[index].lineno, tokens[index].column) >= pos:
      break
    index += 1
  return index