MCPcopy Create free account
hub / github.com/Effect-TS/effect / resolve

Function resolve

packages/effect/src/ui/Query.ts:6597–6606  ·  view source on GitHub ↗
(targets: Targets)

Source from the content-addressed store, hash-verified

6595 }
6596 /** Target resolution, written over the predicate: every entry it hits. A tag drops every raw entry. */
6597 const resolve = (targets: Targets): Set<Entry> => {
6598 const out = new Set<Entry>()
6599 for (const entry of allEntries()) {
6600 if (targetsHit(targets, entry.def.name, entry.def.tags, entry.argsKey)) {
6601 out.add(entry)
6602 }
6603 }
6604 if (targets.tags.size > 0) raw.clear()
6605 return out
6606 }
6607 const invalidateEntry = (
6608 entry: Entry,
6609 cause: Trigger = "invalidation",

Callers 2

invalidateFunction · 0.70
reopenedFunction · 0.70

Calls 4

allEntriesFunction · 0.85
targetsHitFunction · 0.85
addMethod · 0.65
clearMethod · 0.65

Tested by

no test coverage detected