node_modules/y-codemirror/dist/test.js
/**
     * Mark this Item as deleted.
     *
     * @param {Transaction} transaction
     */
Mark this Item as deleted.
@param {Transaction} transaction
Mark this Item as deleted . @param { Transaction } transaction
delete (transaction) {
      if (!this.deleted) {
        const parent =  (this.parent);
        if (this.countable && this.parentSub === null) {
          parent._length -= this.length;
        }
        this.markDeleted();
        addToDeleteSet(transaction.deleteSet, this.id.client, this.id.clock, this.length);
        addChangedTypeToTransaction(transaction, parent, this.parentSub);
        this.content.delete(transaction);
      }
    }
delete ( transaction ) { if ( ! this . deleted ) { const parent = ( this . parent ) ; if ( this . countable && this . parentSub === null ) { parent . _length -= this . length ; } this . markDeleted ( ) ; addToDeleteSet ( transaction . deleteSet , this . id . client , this . id . clock , this . length ) ; addChangedTypeToTransaction ( transaction , parent , this . parentSub ) ; this . content . delete ( transaction ) ; } }
Mark this Item as deleted.
Mark this Item as deleted .
/** @type {AbstractType<any>} */ // adjust the length of parent