MCPcopy Create free account
hub / github.com/Effect-TS/effect / hashSource

Function hashSource

packages/tools/jsdocs/src/Jsdocs.ts:2701–2703  ·  view source on GitHub ↗
(source: string)

Source from the content-addressed store, hash-verified

2699}
2700
2701function hashSource(source: string): string {
2702 return crypto.createHash("sha256").update(source).digest("hex")
2703}
2704
2705function getNodeJSDoc(node: ts.Node): JSDocBlock | undefined {
2706 const jsDocs = (node as { readonly jsDoc?: ReadonlyArray<ts.JSDoc> }).jsDoc

Callers 3

computeJSDocInputHashFunction · 0.85
extractJSDocsSyncFunction · 0.85
sourceHashFunction · 0.85

Calls 2

updateMethod · 0.65
digestMethod · 0.45

Tested by

no test coverage detected