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

Function symbolIdentity

packages/tools/api-diff/src/Snapshot.ts:626–631  ·  view source on GitHub ↗
(symbol: ts.Symbol, bucket: Bucket)

Source from the content-addressed store, hash-verified

624}
625
626const symbolIdentity = (symbol: ts.Symbol, bucket: Bucket): string => {
627 const declarations = symbol.declarations ?? []
628 return `${bucket}:${
629 declarations.map((node) => `${node.getSourceFile().fileName}:${node.pos}:${node.end}`).sort().join("|")
630 }`
631}
632
633const collectExports = (
634 checker: ts.TypeChecker,

Callers 2

referenceResolutionFunction · 0.85
collectExportsFunction · 0.85

Calls 2

joinMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected