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

Function symbolSignature

packages/tools/jsdocs/src/Jsdocs.ts:3052–3065  ·  view source on GitHub ↗
(
  name: string,
  bucket: ExportBucket,
  symbol: ts.Symbol,
  location: ts.Node,
  checker: ts.TypeChecker,
  cwd: string
)

Source from the content-addressed store, hash-verified

3050}
3051
3052function symbolSignature(
3053 name: string,
3054 bucket: ExportBucket,
3055 symbol: ts.Symbol,
3056 location: ts.Node,
3057 checker: ts.TypeChecker,
3058 cwd: string
3059): string | null {
3060 if (bucket !== "value") return null
3061 const target = resolvedSymbolTarget(symbol, checker)
3062 const type = checker.getTypeOfSymbolAtLocation(target, location)
3063 if (checker.getSignaturesOfType(type, ts.SignatureKind.Call).length === 0) return null
3064 return functionSignature(name, symbol, location, checker, cwd)
3065}
3066
3067function declarationSignature(
3068 name: string,

Callers 2

declarationSignatureFunction · 0.85
exportSpecifierSignatureFunction · 0.85

Calls 2

resolvedSymbolTargetFunction · 0.85
functionSignatureFunction · 0.85

Tested by

no test coverage detected