MCPcopy Create free account
hub / github.com/arktypeio/arktype / extractFunctionName

Function extractFunctionName

ark/attest/cli/trace.ts:493–499  ·  view source on GitHub ↗
(callExpr: ts.CallExpression)

Source from the content-addressed store, hash-verified

491}
492
493const extractFunctionName = (callExpr: ts.CallExpression): string => {
494 if (syntax.isPropertyAccessExpression(callExpr.expression))
495 return callExpr.expression.name.getText()
496 if (syntax.isIdentifier(callExpr.expression))
497 return callExpr.expression.getText()
498 return "anonymousFunction"
499}
500
501const buildCallTree = (ctx: AnalysisContext): void => {
502 // This message goes to outputCapture for the summary file

Callers 1

processDurationEntryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected