MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / addImport

Function addImport

packages/core/fumadb/src/utils/import-generator.ts:7–13  ·  view source on GitHub ↗
(name: string, specifier: string)

Source from the content-addressed store, hash-verified

5
6 return {
7 addImport(name: string, specifier: string) {
8 if (names.has(name)) return;
9 names.add(name);
10 const list = map.get(specifier) ?? [];
11 list.push(name);
12 map.set(specifier, list);
13 },
14 format(): string {
15 const v: string[] = [];
16 for (const [specifier, names] of map) {

Callers

nothing calls this directly

Calls 3

pushMethod · 0.80
getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected