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

Function code

packages/effect/src/internal/codegen.ts:18–25  ·  view source on GitHub ↗
(strings: TemplateStringsArray, ...values: ReadonlyArray<CodeHole>)

Source from the content-addressed store, hash-verified

16
17/** @internal */
18export function code(strings: TemplateStringsArray, ...values: ReadonlyArray<CodeHole>): Fragment {
19 const parts: Array<Fragment> = []
20 for (let i = 0; i < strings.length; i++) {
21 append(strings[i], parts)
22 append(values[i], parts)
23 }
24 return { _tag: "Parts", parts, toString: cannotCoerce }
25}
26
27/** @internal */
28export function join(values: ReadonlyArray<CodeHole>, separator: string): Fragment {

Callers 8

defineSchemaFunction · 0.90
compileCheckFunction · 0.90
applyNodeFunction · 0.90
onFunction · 0.90
referenceFunction · 0.90
Codegen.test.tsFile · 0.50
indentFunction · 0.50

Calls 1

appendFunction · 0.70

Tested by

no test coverage detected