MCPcopy Index your code
hub / github.com/dataease/SQLBot / paramToIdentifier

Function paramToIdentifier

frontend/public/swagger-ui-bundle.js:31269–31281  ·  view source on GitHub ↗
(s, { returnAll: o = !1, allowHashes: i = !0 } = {})

Source from the content-addressed store, hash-verified

31267 return null == s ? '' : s.toString()
31268 }
31269 function paramToIdentifier(s, { returnAll: o = !1, allowHashes: i = !0 } = {}) {
31270 if (!We().Map.isMap(s))
31271 throw new Error('paramToIdentifier: received a non-Im.Map parameter as input')
31272 const a = s.get('name'),
31273 u = s.get('in')
31274 let _ = []
31275 return (
31276 s && s.hashCode && u && a && i && _.push(`${u}.${a}.hash-${s.hashCode()}`),
31277 u && a && _.push(`${u}.${a}`),
31278 _.push(a),
31279 o ? _ : _[0] || ''
31280 )
31281 }
31282 function paramToValue(s, o) {
31283 return paramToIdentifier(s, { returnAll: !0 })
31284 .map((s) => o[s])

Callers 3

paramToValueFunction · 0.85
parameterValuesFunction · 0.85

Calls 3

getMethod · 0.65
WeFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected