()
| 212 | } |
| 213 | |
| 214 | clear() { |
| 215 | if (super.size === 0) { |
| 216 | return; |
| 217 | } |
| 218 | // Clear first, so we get nice console.log outputs with $inspect |
| 219 | super.clear(); |
| 220 | var sources = this.#sources; |
| 221 | set(this.#size, 0); |
| 222 | for (var s of sources.values()) { |
| 223 | set(s, -1); |
| 224 | } |
| 225 | increment(this.#version); |
| 226 | sources.clear(); |
| 227 | } |
| 228 | |
| 229 | #read_all() { |
| 230 | get(this.#version); |