MCPcopy Create free account
hub / github.com/effect-app/libs / joinBody

Function joinBody

repos/effect/packages/tools/jsdocs/src/Jsdocs.ts:1333–1339  ·  view source on GitHub ↗
(lines: ReadonlyArray<string>)

Source from the content-addressed store, hash-verified

1331
1332 index = fenceIndex + 1
1333 const codeStart = index
1334 while (index < lines.length && lines[index].trim() !== "```") {
1335 if (isTypeScriptFence(lines[index].trim())) {
1336 diagnostics.push(diagnostic("malformed-example", "Examples must contain exactly one TypeScript code fence"))
1337 }
1338 index++
1339 }
1340 const codeLines = lines.slice(codeStart, index)
1341 if (index >= lines.length) {
1342 diagnostics.push(diagnostic("malformed-example", "Examples must close the TypeScript code fence"))

Callers 3

parseDescriptionContentFunction · 0.85
parseSectionFunction · 0.85
parseExampleFunction · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…