'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var updateSingleAncestors = function updateSingleAncestors(node, checkedMap, type) {
  if (!node.parent) {
    return;
  }
  var parent = node.parent;
  checkedMap.set(parent.value, type);
  updateSingleAncestors(parent, checkedMap, type);
};

exports.updateSingleAncestors = updateSingleAncestors;
