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

Function hashSource

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

Source from the content-addressed store, hash-verified

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

Callers 3

computeJSDocInputHashFunction · 0.85
extractJSDocsSyncFunction · 0.85
sourceHashFunction · 0.85

Calls 2

digestMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected