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

Function symbolSignature

packages/tools/jsdocs/src/Jsdocs.ts:2982–2995  ·  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

2980}
2981
2982function symbolSignature(
2983 name: string,
2984 bucket: ExportBucket,
2985 symbol: ts.Symbol,
2986 location: ts.Node,
2987 checker: ts.TypeChecker,
2988 cwd: string
2989): string | null {
2990 if (bucket !== "value") return null
2991 const target = resolvedSymbolTarget(symbol, checker)
2992 const type = checker.getTypeOfSymbolAtLocation(target, location)
2993 if (checker.getSignaturesOfType(type, ts.SignatureKind.Call).length === 0) return null
2994 return functionSignature(name, symbol, location, checker, cwd)
2995}
2996
2997function declarationSignature(
2998 name: string,

Callers 2

declarationSignatureFunction · 0.85
exportSpecifierSignatureFunction · 0.85

Calls 2

resolvedSymbolTargetFunction · 0.85
functionSignatureFunction · 0.85

Tested by

no test coverage detected