MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / getParamsToString

Function getParamsToString

lib/parser.js:12–15  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

10parser.use(destructuredArgs)
11
12export const getParamsToString = function (fn) {
13 const newFn = fn.toString().replace(/^async/, 'async function')
14 return getParams(newFn).join(', ')
15}
16
17function getParams(fn, { warnOnLegacyFormat = false } = {}) {
18 if (fn.isSinonProxy) return []

Callers 3

list.jsFile · 0.90
parser_test.jsFile · 0.90
mcp-server.jsFile · 0.90

Calls 2

getParamsFunction · 0.85
toStringMethod · 0.45

Tested by

no test coverage detected