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

Function parseJSDocBlock

repos/effect/packages/tools/jsdocs/src/Jsdocs.ts:897–914  ·  view source on GitHub ↗
(raw: string, range: [number, number])

Source from the content-addressed store, hash-verified

895 ignoredRange?: [number, number]
896): JSDocBlock | undefined {
897 const end = skipDirectiveComments(source, skipWhitespace(source, node.range[0]))
898 if (!source.slice(0, end).endsWith("*/")) {
899 return undefined
900 }
901
902 const start = source.lastIndexOf("/*", end)
903 if (start === -1 || source[start + 2] !== "*") {
904 return undefined
905 }
906 const range: [number, number] = [start, end]
907 if (ignoredRange !== undefined && range[0] === ignoredRange[0] && range[1] === ignoredRange[1]) {
908 return undefined
909 }
910 return parseJSDocBlock(source.slice(start, end), range)
911}
912
913/**
914 * Parses one raw JSDoc block into the standard description, example, and tag structure.
915 *
916 * **Details**
917 *

Callers 3

findLeadingJSDocFunction · 0.85
parseJSDocFunction · 0.85
getNodeJSDocFunction · 0.85

Calls 2

parseLooseJSDocBlockFunction · 0.85
parseCoreJSDocFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…