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

Function storeMappingPair

frontend/public/swagger-ui-bundle.js:33146–33174  ·  view source on GitHub ↗
(s, o, i, a, u, _, w, x, C)

Source from the content-addressed store, hash-verified

33144 )
33145 ((_ = u[w]), Rr.call(o, _) || (setProperty(o, _, i[_]), (a[_] = !0)))
33146 }
33147 function storeMappingPair(s, o, i, a, u, _, w, x, C) {
33148 var j, L
33149 if (Array.isArray(u))
33150 for (j = 0, L = (u = Array.prototype.slice.call(u)).length; j < L; j += 1)
33151 (Array.isArray(u[j]) && throwError(s, 'nested arrays are not supported inside keys'),
33152 'object' == typeof u &&
33153 '[object Object]' === _class(u[j]) &&
33154 (u[j] = '[object Object]'))
33155 if (
33156 ('object' == typeof u && '[object Object]' === _class(u) && (u = '[object Object]'),
33157 (u = String(u)),
33158 null === o && (o = {}),
33159 'tag:yaml.org,2002:merge' === a)
33160 )
33161 if (Array.isArray(_))
33162 for (j = 0, L = _.length; j < L; j += 1) mergeMappings(s, o, _[j], i)
33163 else mergeMappings(s, o, _, i)
33164 else
33165 (s.json ||
33166 Rr.call(i, u) ||
33167 !Rr.call(o, u) ||
33168 ((s.line = w || s.line),
33169 (s.lineStart = x || s.lineStart),
33170 (s.position = C || s.position),
33171 throwError(s, 'duplicated mapping key')),
33172 setProperty(o, u, _),
33173 delete i[u])
33174 return o
33175 }
33176 function readLineBreak(s) {
33177 var o

Callers 1

composeNodeFunction · 0.85

Calls 5

throwErrorFunction · 0.85
_classFunction · 0.85
mergeMappingsFunction · 0.85
setPropertyFunction · 0.85
isArrayMethod · 0.45

Tested by

no test coverage detected