MCPcopy
hub / github.com/evanw/esbuild / methodDec1

Function methodDec1

scripts/decorator-tests.js:4532–4537  ·  view source on GitHub ↗
(fn, ctxMethod)

Source from the content-addressed store, hash-verified

4530 ctxClass.addInitializer(() => log.push("c4"));
4531 };
4532 const methodDec1 = (fn, ctxMethod) => {
4533 log.push("m2");
4534 if (!assertEq(() => typeof ctxMethod.addInitializer, "function")) return;
4535 ctxMethod.addInitializer(() => log.push("m5"));
4536 ctxMethod.addInitializer(() => log.push("m6"));
4537 };
4538 const methodDec2 = (fn, ctxMethod) => {
4539 log.push("m1");
4540 if (!assertEq(() => typeof ctxMethod.addInitializer, "function")) return;

Callers

nothing calls this directly

Calls 1

assertEqFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…