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

Function parseJSDoc

repos/effect/packages/tools/jsdocs/src/Jsdocs.ts:876–885  ·  view source on GitHub ↗
(raw: string)

Source from the content-addressed store, hash-verified

874function skipDirectiveComments(source: string, end: number): number {
875 while (end > 0) {
876 const lineStart = source.lastIndexOf("\n", end - 1) + 1
877 if (!isSkippableDirectiveComment(source.slice(lineStart, end))) {
878 return end
879 }
880 end = skipWhitespace(source, lineStart)
881 }
882 return end
883}
884
885/**
886 * Finds the JSDoc block immediately preceding an AST node.
887 *
888 * @category parsing

Callers 1

jsdocs.test.tsFile · 0.90

Calls 2

parseJSDocBlockFunction · 0.85
diagnosticFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…