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

Function uniqueDiagnostics

repos/effect/packages/tools/jsdocs/src/Jsdocs.ts:1006–1018  ·  view source on GitHub ↗
(
  diagnostics: ReadonlyArray<JSDocDiagnostic>
)

Source from the content-addressed store, hash-verified

1004 }
1005 if (inFence) {
1006 continue
1007 }
1008
1009 const match = /^@([A-Za-z][\w-]*)(?:\s+(.*))?$/.exec(trimmed)
1010 if (match) {
1011 current = { name: match[1], value: match[2]?.trim() ?? "", line: index }
1012 tags.push(current)
1013 continue
1014 }
1015
1016 if (current !== undefined && trimmed !== "") {
1017 current.value = current.value === "" ? trimmed : `${current.value}\n${trimmed}`
1018 } else if (trimmed === "") {
1019 current = undefined
1020 }
1021 }

Callers 2

parseCoreJSDocFunction · 0.85
parseSourceFileDocsFunction · 0.85

Calls 3

filterMethod · 0.80
addMethod · 0.65
hasMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…