parameters: (self, token, token_string)
return_statement: return tokens
docstring: Gets all goog.provide or goog.require tokens in the given token stream.
  
      Args:
        token: The first token in the token stream.
        token_string: One of 'goog.provide' or 'goog.require' to indicate which
                      tokens to find.
  
      Returns:
        A list of goog.provide or goog.require tokens in the order they appear in
        the token stream.
docstring_summary: Gets all goog.provide or goog.require tokens in the given token stream.
docstring_tokens: Gets all goog . provide or goog . require tokens in the given token stream .
function: def _GetRequireOrProvideTokens(self, token, token_string):
      """Gets all goog.provide or goog.require tokens in the given token stream.
  
      Args:
        token: The first token in the token stream.
        token_string: One of 'goog.provide' or 'goog.require' to indicate which
                      tokens to find.
  
      Returns:
        A list of goog.provide or goog.require tokens in the order they appear in
        the token stream.
      """
      tokens = []
      while token:
        if token.type == Type.IDENTIFIER:
          if token.string == token_string:
            tokens.append(token)
          elif token.string not in ['goog.require', 'goog.provide']:
            # The goog.provide and goog.require identifiers are at the top of the
            # file. So if any other identifier is encountered, return.
            break
        token = token.next
  
      return tokens
function_tokens: def _GetRequireOrProvideTokens ( self , token , token_string ) : tokens = [ ] while token : if token . type == Type . IDENTIFIER : if token . string == token_string : tokens . append ( token ) elif token . string not in [ 'goog.require' , 'goog.provide' ] : # The goog.provide and goog.require identifiers are at the top of the # file. So if any other identifier is encountered, return. break token = token . next return tokens