def METHOD_NAME(token):
    global lineNumber
    if str(token) == "\n":
        lineNumber = lineNumber + 1
    # checks if the token is a union or join
    if isinstance(token, Token) and token.ttype != None and is_token_cross_join(token) and is_token_keyword(token):
        return [lineNumber]
    # Recurse if the token is tokenlist or of type of list
    if is_tokenlist_or_list(token):
        arrList=[]
        for tok in token:
            joins=METHOD_NAME(tok)
            # add the results of sub-recursion and return to arrList
            if len(joins) > 0:
                arrList=arrList+joins
        return arrList
    else:
        return []