"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.numberNestedLists = void 0;
var _utils = require("../utils");
var numberNestedLists = exports.numberNestedLists = function numberNestedLists(resolvedPos) {
  var count = 0;
  for (var i = resolvedPos.depth - 1; i > 0; i--) {
    var node = resolvedPos.node(i);
    if ((0, _utils.isListNode)(node)) {
      count += 1;
    }
  }
  return count;
};