* Sets merged start time. * @param {number | undefined} value value * @param {Snapshot} snapshot snapshot
(value, snapshot)
| 354 | * @param {Snapshot} snapshot snapshot |
| 355 | */ |
| 356 | setMergedStartTime(value, snapshot) { |
| 357 | if (value) { |
| 358 | if (snapshot.hasStartTime()) { |
| 359 | this.setStartTime( |
| 360 | Math.min( |
| 361 | value, |
| 362 | /** @type {NonNullable<Snapshot["startTime"]>} */ |
| 363 | (snapshot.startTime) |
| 364 | ) |
| 365 | ); |
| 366 | } else { |
| 367 | this.setStartTime(value); |
| 368 | } |
| 369 | } else if (snapshot.hasStartTime()) { |
| 370 | this.setStartTime( |
| 371 | /** @type {NonNullable<Snapshot["startTime"]>} */ |
| 372 | (snapshot.startTime) |
| 373 | ); |
| 374 | } |
| 375 | } |
| 376 | |
| 377 | hasFileTimestamps() { |
| 378 | return (this._flags & 2) !== 0; |
no test coverage detected