MCPcopy
hub / github.com/sveltejs/svelte / #read_all

Method #read_all

packages/svelte/src/reactivity/map.js:229–249  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

227 }
228
229 #read_all() {
230 get(this.#version);
231
232 var sources = this.#sources;
233 if (this.#size.v !== sources.size) {
234 for (var key of super.keys()) {
235 if (!sources.has(key)) {
236 var s = this.#source(0);
237 if (DEV) {
238 tag(s, `SvelteMap get(${label(key)})`);
239 }
240
241 sources.set(key, s);
242 }
243 }
244 }
245
246 for ([, s] of this.#sources) {
247 get(s);
248 }
249 }
250
251 keys() {
252 get(this.#version);

Callers 3

forEachMethod · 0.95
valuesMethod · 0.95
entriesMethod · 0.95

Calls 7

#sourceMethod · 0.95
getFunction · 0.90
tagFunction · 0.90
labelFunction · 0.90
setMethod · 0.65
keysMethod · 0.45
hasMethod · 0.45

Tested by

no test coverage detected