(start_token)
return None
Searches for and returns the first identifier at the beginning of a token.

  Searches each token after the start to see if it starts with an identifier.
  If found, will split the token into at most 3 piecies: leading whitespace,
  identifier, rest of token, returning the identifier token. If no identifier is
  found returns None and changes no tokens. Search is abandoned when a
  FLAG_ENDING_TYPE token is found.

  Args:
    start_token: The token to start searching after.

  Returns:
    The identifier token is found, None otherwise.
Searches for and returns the first identifier at the beginning of a token.
Searches for and returns the first identifier at the beginning of a token .
def _GetNextIdentifierToken(start_token):
  """Searches for and returns the first identifier at the beginning of a token.

  Searches each token after the start to see if it starts with an identifier.
  If found, will split the token into at most 3 piecies: leading whitespace,
  identifier, rest of token, returning the identifier token. If no identifier is
  found returns None and changes no tokens. Search is abandoned when a
  FLAG_ENDING_TYPE token is found.

  Args:
    start_token: The token to start searching after.

  Returns:
    The identifier token is found, None otherwise.
  """
  token = start_token.next

  while token and not token.type in Type.FLAG_ENDING_TYPES:
    match = javascripttokenizer.JavaScriptTokenizer.IDENTIFIER.match(
        token.string)
    if (match is not None and token.type == Type.COMMENT and
        len(token.string) == len(match.group(0))):
      return token

    token = token.next

  return None
def _GetNextIdentifierToken ( start_token ) : token = start_token . next while token and not token . type in Type . FLAG_ENDING_TYPES : match = javascripttokenizer . JavaScriptTokenizer . IDENTIFIER . match ( token . string ) if ( match is not None and token . type == Type . COMMENT and len ( token . string ) == len ( match . group ( 0 ) ) ) : return token token = token . next return None