* Processes the provided file time info entries. * @param {TimeInfoEntries=} fileTimeInfoEntries info for files * @param {TimeInfoEntries=} contextTimeInfoEntries info for directories * @param {ReadonlySet<string>=} changedFiles changed files * @param {ReadonlySet<string>=} removedFiles remo
( fileTimeInfoEntries, contextTimeInfoEntries, changedFiles, removedFiles )
| 440 | * @returns {void} |
| 441 | */ |
| 442 | _invalidate( |
| 443 | fileTimeInfoEntries, |
| 444 | contextTimeInfoEntries, |
| 445 | changedFiles, |
| 446 | removedFiles |
| 447 | ) { |
| 448 | if (this.suspended || (this._isBlocked() && (this.blocked = true))) { |
| 449 | this._mergeWithCollected(changedFiles, removedFiles); |
| 450 | return; |
| 451 | } |
| 452 | |
| 453 | if (this.running) { |
| 454 | this._mergeWithCollected(changedFiles, removedFiles); |
| 455 | this.invalid = true; |
| 456 | } else { |
| 457 | this._go( |
| 458 | fileTimeInfoEntries, |
| 459 | contextTimeInfoEntries, |
| 460 | changedFiles, |
| 461 | removedFiles |
| 462 | ); |
| 463 | } |
| 464 | } |
| 465 | |
| 466 | suspend() { |
| 467 | this.suspended = true; |
no test coverage detected