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

Function Mixin

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

Source from the content-addressed store, hash-verified

45910 let o = xd.get(s)
45911 return (o || ((o = {}), xd.set(s, o)), o)
45912 }
45913 function Mixin(...s) {
45914 var o, i, a
45915 const u = s.map((s) => s.prototype),
45916 _ = vd
45917 if (null !== _) {
45918 const s = u.map((s) => s[_]).filter((s) => 'function' == typeof s),
45919 combinedInitFunction = function (...o) {
45920 for (let i of s) i.apply(this, o)
45921 },
45922 o = { [_]: combinedInitFunction }
45923 u.push(o)
45924 }
45925 function MixedClass(...o) {
45926 for (const i of s) copyProps(this, new i(...o))
45927 null !== _ && 'function' == typeof this[_] && this[_].apply(this, o)
45928 }
45929 var w, x
45930 ;((MixedClass.prototype =
45931 'copy' === Sd
45932 ? hardMixProtos(u, MixedClass)
45933 : ((w = u), (x = MixedClass), proxyMix([...w, { constructor: x }]))),
45934 Object.setPrototypeOf(
45935 MixedClass,
45936 'copy' === _d
45937 ? hardMixProtos(s, null, ['prototype'])
45938 : proxyMix(s, Function.prototype)
45939 ))
45940 let C = MixedClass
45941 if ('none' !== Ed) {
45942 const u =
45943 'deep' === Ed
45944 ? deepDecoratorSearch(...s)
45945 : ((...s) => {
45946 const o = s.map((s) => getDecoratorsForClass(s))
45947 return 0 === o.length
45948 ? {}
45949 : 1 === o.length
45950 ? o[0]
45951 : o.reduce((s, o) => mergeDecorators(s, o))
45952 })(...s)
45953 for (let s of null !== (o = null == u ? void 0 : u.class) && void 0 !== o ? o : []) {
45954 const o = s(C)
45955 o && (C = o)
45956 }
45957 ;(applyPropAndMethodDecorators(
45958 null !== (i = null == u ? void 0 : u.static) && void 0 !== i ? i : {},
45959 C
45960 ),
45961 applyPropAndMethodDecorators(
45962 null !== (a = null == u ? void 0 : u.instance) && void 0 !== a ? a : {},
45963 C.prototype
45964 ))
45965 }
45966 var j, L
45967 return ((j = C), (L = s), wd.set(j, L), C)
45968 }
45969 const applyPropAndMethodDecorators = (s, o) => {

Callers 15

JSONSchemaVisitorClass · 0.85
ItemsVisitorClass · 0.85
PropertiesVisitorClass · 0.85
DependenciesVisitorClass · 0.85
AllOfVisitorClass · 0.85
AnyOfVisitorClass · 0.85
OneOfVisitorClass · 0.85
DefinitionsVisitorClass · 0.85
LinksVisitorClass · 0.85
MediaVisitorClass · 0.85

Calls 12

hardMixProtosFunction · 0.85
proxyMixFunction · 0.85
deepDecoratorSearchFunction · 0.85
getDecoratorsForClassFunction · 0.85
mergeDecoratorsFunction · 0.85
sFunction · 0.50
mapMethod · 0.45
filterMethod · 0.45
pushMethod · 0.45
reduceMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected