parameters: (token)
return_statement: return tokens_in_line
docstring: Returns all tokens in the same line as the given token.
  
    Args:
      token: Any token in the line.
  
    Returns:
      All tokens on the same line as the given token.
docstring_summary: Returns all tokens in the same line as the given token.
docstring_tokens: Returns all tokens in the same line as the given token .
function: def GetAllTokensInSameLine(token):
    """Returns all tokens in the same line as the given token.
  
    Args:
      token: Any token in the line.
  
    Returns:
      All tokens on the same line as the given token.
    """
    first_token = GetFirstTokenInSameLine(token)
    last_token = GetLastTokenInSameLine(token)
  
    tokens_in_line = []
    while first_token != last_token:
      tokens_in_line.append(first_token)
      first_token = first_token.next
    tokens_in_line.append(last_token)
  
    return tokens_in_line
function_tokens: def GetAllTokensInSameLine ( token ) : first_token = GetFirstTokenInSameLine ( token ) last_token = GetLastTokenInSameLine ( token ) tokens_in_line = [ ] while first_token != last_token : tokens_in_line . append ( first_token ) first_token = first_token . next tokens_in_line . append ( last_token ) return tokens_in_line