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

Function nodeValue

packages/effect/src/unstable/cli/internal/config.ts:252–261  ·  view source on GitHub ↗
(node: ConfigInternal.Node)

Source from the content-addressed store, hash-verified

250 return output
251
252 function nodeValue(node: ConfigInternal.Node): any {
253 switch (node._tag) {
254 case "Param":
255 return results[node.index]
256 case "Array":
257 return node.children.map((child) => nodeValue(child))
258 case "Nested":
259 return reconstructTree(node.tree, results)
260 }
261 }
262}

Callers 1

reconstructTreeFunction · 0.85

Calls 2

reconstructTreeFunction · 0.85
mapMethod · 0.45

Tested by

no test coverage detected