packages/okam-build/lib/processor/css/plugins/match-media-params.js
function initAppMediaTargetInfo(ctx, currToken) {
    let {allAppTypes, hasAppMediaType} = ctx;
    let isAppMediaTarget = allAppTypes.includes(currToken);
    hasAppMediaType || (ctx.hasAppMediaType = isAppMediaTarget);

    if (!isAppMediaTarget && !MEDIA_QUERY_OPERATORS.includes(currToken)) {
        return true;
    }

    return false;
}
function initAppMediaTargetInfo(ctx, currToken) {
    let {allAppTypes, hasAppMediaType} = ctx;
    let isAppMediaTarget = allAppTypes.includes(currToken);
    hasAppMediaType || (ctx.hasAppMediaType = isAppMediaTarget);

    if (!isAppMediaTarget && !MEDIA_QUERY_OPERATORS.includes(currToken)) {
        return true;
    }

    return false;
}
Initialize the app media query target information.
Return whether should stop media query params token parsing.

@inner
@param {Object} ctx the token parser context
@param {string} currToken the current encountered token
@return {boolean}