function getContinueContext(state, label) {
  if (!label) {
    return state.loopContext;
  }

  let context = state.loopContext;

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

  /* c8 ignore next */
  return null;
}
Gets a loop-context for a `continue` statement.
@param {CodePathState} state A state to get.
@param {string} label The label of a `continue` statement.
@returns {LoopContext} A loop-context for a `continue` statement.