kab/kab/static/js/monaco-yaml/yamlWorker.js
/**
   * Finds the most inner node at the given offset. If includeRightBound is set, also finds nodes that end at the given offset.
   */
Finds the most inner node at the given offset. If includeRightBound is set, also finds nodes that end at the given offset.
Finds the most inner node at the given offset . If includeRightBound is set also finds nodes that end at the given offset .
function findNodeAtOffset(node, offset, includeRightBound) {
    if (includeRightBound === void 0) {
      includeRightBound = false;
    }
    if (contains(node, offset, includeRightBound)) {
      var children = node.children;
      if (Array.isArray(children)) {
        for (var i = 0; i < children.length && children[i].offset <= offset; i++) {
          var item = findNodeAtOffset(children[i], offset, includeRightBound);
          if (item) {
            return item;
          }
        }
      }
      return node;
    }
    return void 0;
  }
function findNodeAtOffset ( node , offset , includeRightBound ) { if ( includeRightBound === void 0 ) { includeRightBound = false ; } if ( contains ( node , offset , includeRightBound ) ) { var children = node . children ; if ( Array . isArray ( children ) ) { for ( var i = 0 ; i < children . length && children [ i ] . offset <= offset ; i ++ ) { var item = findNodeAtOffset ( children [ i ] , offset , includeRightBound ) ; if ( item ) { return item ; } } } return node ; } return void 0 ; }
Finds the most inner node at the given offset.
Finds the most inner node at the given offset .