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

Function addModelDiagnostics

repos/effect/packages/tools/jsdocs/src/Jsdocs.ts:2551–2557  ·  view source on GitHub ↗
(
  out: Array<JSDocModelDiagnostic>,
  range: [number, number],
  diagnostics: ReadonlyArray<JSDocDiagnostic>
)

Source from the content-addressed store, hash-verified

2549 diagnostics.push(diagnostic(
2550 "example-import-style",
2551 `JSDoc examples should import ${
2552 Array.from(flatModule.names).map((name) => `\`${name}\``).join(", ")
2553 } from "${flatModule.barrelModule}" instead of "${source}"`
2554 ))
2555 continue
2556 }
2557 if (clause.namedBindings !== undefined && ts.isNamespaceImport(clause.namedBindings)) {
2558 if (namedAllowed !== undefined || namedModule !== undefined) {
2559 diagnostics.push(diagnostic("example-import-style", `JSDoc examples should use named imports from "${source}"`))
2560 }

Callers 2

parseDocumentedTsFunction · 0.85
parseModuleJSDocTsFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…