MCPcopy Create free account
hub / github.com/dataease/SQLBot / deepDecoratorSearch

Function deepDecoratorSearch

frontend/public/swagger-ui-bundle.js:45883–45907  ·  view source on GitHub ↗
(...s)

Source from the content-addressed store, hash-verified

45881 }
45882 },
45883 xd = new Map(),
45884 deepDecoratorSearch = (...s) => {
45885 const o = ((...s) => {
45886 var o
45887 const i = new Set(),
45888 a = new Set([...s])
45889 for (; a.size > 0; )
45890 for (let s of a) {
45891 const u = protoChain(s.prototype).map((s) => s.constructor),
45892 _ = [
45893 ...u,
45894 ...(null !== (o = getMixinsForClass(s)) && void 0 !== o ? o : []),
45895 ].filter((s) => !i.has(s))
45896 for (let s of _) a.add(s)
45897 ;(i.add(s), a.delete(s))
45898 }
45899 return [...i]
45900 })(...s)
45901 .map((s) => xd.get(s))
45902 .filter((s) => !!s)
45903 return 0 == o.length
45904 ? {}
45905 : 1 == o.length
45906 ? o[0]
45907 : o.reduce((s, o) => mergeDecorators(s, o))
45908 },
45909 getDecoratorsForClass = (s) => {
45910 let o = xd.get(s)

Callers 1

MixinFunction · 0.85

Calls 10

protoChainFunction · 0.85
getMixinsForClassFunction · 0.85
mergeDecoratorsFunction · 0.85
addMethod · 0.65
getMethod · 0.65
filterMethod · 0.45
mapMethod · 0.45
hasMethod · 0.45
deleteMethod · 0.45
reduceMethod · 0.45

Tested by

no test coverage detected