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

Function declarationName

repos/effect/packages/tools/jsdocs/src/Jsdocs.ts:2643–2660  ·  view source on GitHub ↗
(node: ts.Node)

Source from the content-addressed store, hash-verified

2641}
2642
2643function normalizeFile(cwd: string, filename: string): string {
2644 return normalizePathName(path.relative(cwd, filename))
2645}
2646
2647function hashSource(source: string): string {
2648 return crypto.createHash("sha256").update(source).digest("hex")
2649}
2650
2651function getNodeJSDoc(node: ts.Node): JSDocBlock | undefined {
2652 const jsDocs = (node as { readonly jsDoc?: ReadonlyArray<ts.JSDoc> }).jsDoc
2653 const jsDoc = jsDocs?.[jsDocs.length - 1]
2654 if (jsDoc === undefined) return undefined
2655 const source = node.getSourceFile().text
2656 return parseJSDocBlock(source.slice(jsDoc.pos, jsDoc.end), [jsDoc.pos, jsDoc.end])
2657}
2658
2659function addModelDiagnostics(
2660 out: Array<JSDocModelDiagnostic>,
2661 range: [number, number],
2662 diagnostics: ReadonlyArray<JSDocDiagnostic>
2663) {

Callers 2

parseNamespaceTsFunction · 0.85
parseSourceFileDocsFunction · 0.85

Calls 3

joinMethod · 0.80
filterMethod · 0.80
mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…