_getOrCreateThread(patchNum, lineNum, commentSide, range, isOnParent) {
      let threadEl = this._getThreadEl(lineNum, commentSide, range);
      if (!threadEl) {
        threadEl = this._createThreadElement({
          comments: [],
          commentSide,
          patchNum,
          lineNum,
          range,
          isOnParent,
        });
        this._attachThreadElement(threadEl);
      }
      return threadEl;
    }
/**
     * Gets or creates a comment thread at a given location.
     * May provide a range, to get/create a range comment.
     *
     * @param {string} patchNum
     * @param {?number} lineNum
     * @param {string} commentSide
     * @param {Gerrit.Range|undefined} range
     * @param {boolean} isOnParent
     * @return {!Object}
     */
Gets or creates a comment thread at a given location.
May provide a range, to get/create a range comment.


Gets or creates a comment thread at a given location . May provide a range to get / create a range comment .
_getOrCreateThread(patchNum, lineNum, commentSide, range, isOnParent) {
      let threadEl = this._getThreadEl(lineNum, commentSide, range);
      if (!threadEl) {
        threadEl = this._createThreadElement({
          comments: [],
          commentSide,
          patchNum,
          lineNum,
          range,
          isOnParent,
        });
        this._attachThreadElement(threadEl);
      }
      return threadEl;
    }
_getOrCreateThread ( patchNum , lineNum , commentSide , range , isOnParent ) { let threadEl = this . _getThreadEl ( lineNum , commentSide , range ) ; if ( ! threadEl ) { threadEl = this . _createThreadElement ( { comments : [ ] , commentSide , patchNum , lineNum , range , isOnParent , } ) ; this . _attachThreadElement ( threadEl ) ; } return threadEl ; }
Gets or creates a comment thread at a given location.
Gets or creates a comment thread at a given location .