MCPcopy Create free account
hub / github.com/esengine/esengine / collect

Function collect

packages/runtime-core/src/utils/DependencyUtils.ts:426–438  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

424 const visited = new Set<string>();
425
426 const collect = (id: string) => {
427 if (visited.has(id)) return;
428 visited.add(id);
429
430 const item = itemMap.get(id);
431 if (!item) return;
432
433 for (const dep of item.dependencies || []) {
434 const depId = resolveId(dep);
435 allDeps.add(depId);
436 collect(depId);
437 }
438 };
439
440 collect(itemId);
441 return allDeps;

Callers 3

collectMethod · 0.85
collectPanelIdsMethod · 0.85
getAllDependenciesFunction · 0.85

Calls 4

resolveIdFunction · 0.85
hasMethod · 0.65
getMethod · 0.65
addMethod · 0.45

Tested by

no test coverage detected