* Clears all sources in the container. * @param silent If true, does not send DAP events to remove the source; used during shutdown
(silent: boolean)
| 387 | * @param silent If true, does not send DAP events to remove the source; used during shutdown |
| 388 | */ |
| 389 | public clear(silent: boolean) { |
| 390 | this.scriptsById.clear(); |
| 391 | for (const source of this._sourceByReference.values()) { |
| 392 | this.removeSource(source, silent); |
| 393 | } |
| 394 | |
| 395 | this._sourceByReference.clear(); |
| 396 | if (this.sourceMapFactory instanceof CachingSourceMapFactory) { |
| 397 | this.sourceMapFactory.invalidateCache(); |
| 398 | } |
| 399 | } |
| 400 | |
| 401 | /** |
| 402 | * Returns all the possible locations the given location can map to or from, |
nothing calls this directly
no test coverage detected