lib/code-path-analysis/code-path-state.js
function getBreakContext(state, label) {
    let context = state.breakContext;

    while (context) {
        if (label ? context.label === label : context.breakable) {
            return context;
        }
        context = context.upper;
    }

    /* istanbul ignore next: foolproof (syntax error) */
    return null;
}
function getBreakContext(state, label) {
    let context = state.breakContext;

    while (context) {
        if (label ? context.label === label : context.breakable) {
            return context;
        }
        context = context.upper;
    }

    /* istanbul ignore next: foolproof (syntax error) */
    return null;
}
function getBreakContext ( state , label ) { let context = state . breakContext ; while ( context ) { if ( label ? context . label === label : context . breakable ) { return context ; } context = context . upper ; } /* istanbul ignore next: foolproof (syntax error) */ return null ; }
Gets a context for a `break` statement.

@param {CodePathState} state - A state to get.
@param {string} label - The label of a `break` statement.
@returns {LoopContext|SwitchContext} A context for a `break` statement.
Gets a context for a break statement .