def classify(iToken, lObjects):

    iCurrent = utils.assign_next_token_if('type', token.type_keyword, iToken,
                                          lObjects)
    iCurrent = identifier.classify(iCurrent, lObjects)

    return iCurrent
def classify(iToken, lObjects):

    iCurrent = utils.assign_next_token_required('type', token.type_keyword,
                                                iToken, lObjects)

    iCurrent = identifier.classify(iCurrent, lObjects, token.identifier)

    iCurrent = utils.assign_next_token_required(';', token.semicolon, iCurrent,
                                                lObjects)

    return iCurrent
def classify(iToken, lObjects):

    iCurrent = utils.assign_next_token_required('subtype',
                                                token.subtype_keyword, iToken,
                                                lObjects)

    iCurrent = identifier.classify(iCurrent, lObjects, token.identifier)

    iCurrent = utils.assign_next_token_required('is', token.is_keyword,
                                                iCurrent, lObjects)

    iCurrent = subtype_indication.classify_until([';'], iCurrent, lObjects)

    iCurrent = utils.assign_next_token_required(';', token.semicolon, iCurrent,
                                                lObjects)

    return iCurrent
def classify(iToken, lObjects):

    iCurrent = utils.assign_next_token_required('package',
                                                token.package_keyword, iToken,
                                                lObjects)

    iCurrent = identifier.classify(iCurrent, lObjects)

    iCurrent = utils.assign_next_token_required('is', token.is_keyword,
                                                iCurrent, lObjects)
    iCurrent = utils.assign_next_token_required('new', token.new_keyword,
                                                iCurrent, lObjects)
    iCurrent = utils.assign_next_token(token.uninstantiated_package_name,
                                       iCurrent, lObjects)

    iCurrent = interface_package_generic_map_aspect.detect(iCurrent, lObjects)

    return iCurrent