MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / getTarget

Function getTarget

packages/main/src/babel/babel.ts:101–110  ·  view source on GitHub ↗
(
    node: Comparable,
    sources: typeof Sources,
    includedOptions: ReadonlySet<Source>,
)

Source from the content-addressed store, hash-verified

99}
100
101function getTarget(
102 node: Comparable,
103 sources: typeof Sources,
104 includedOptions: ReadonlySet<Source>,
105): Source | undefined {
106 return Object.entries(sources).find(([sourcesKey, someSources]) =>
107 includedOptions.has(sourcesKey) &&
108 someSources.some(source => equal(node, source))
109 )?.[0] as Source | undefined
110}
111
112let Sources: Record<Source, Comparable[]>
113let FileWithImports: boolean = false

Callers 2

VariableDeclarationFunction · 0.85
CallExpressionFunction · 0.85

Calls 1

equalFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…