MCPcopy
hub / github.com/sveltejs/svelte / warn_once

Function warn_once

packages/svelte/src/compiler/validate-options.js:199–204  ·  view source on GitHub ↗

@param {(node: null) => void} fn

(fn)

Source from the content-addressed store, hash-verified

197
198/** @param {(node: null) => void} fn */
199function warn_once(fn) {
200 if (!warned.has(fn)) {
201 warned.add(fn);
202 fn(null);
203 }
204}
205
206/**
207 * @param {(node: null) => void} fn

Callers 3

warn_removedFunction · 0.85
deprecateFunction · 0.85

Calls 3

fnFunction · 0.50
hasMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected