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

Function updateMap

frontend/public/swagger-ui-bundle.js:2362–2379  ·  view source on GitHub ↗
(s, o, i)

Source from the content-addressed store, hash-verified

2360 return Te || (Te = makeMap(0))
2361 }
2362 function updateMap(s, o, i) {
2363 var a, u
2364 if (s._root) {
2365 var _ = MakeRef(L),
2366 w = MakeRef(B)
2367 if (((a = updateNode(s._root, s.__ownerID, 0, void 0, o, i, _, w)), !w.value))
2368 return s
2369 u = s.size + (_.value ? (i === j ? -1 : 1) : 0)
2370 } else {
2371 if (i === j) return s
2372 ;((u = 1), (a = new ArrayMapNode(s.__ownerID, [[o, i]])))
2373 }
2374 return s.__ownerID
2375 ? ((s.size = u), (s._root = a), (s.__hash = void 0), (s.__altered = !0), s)
2376 : a
2377 ? makeMap(u, a)
2378 : emptyMap()
2379 }
2380 function updateNode(s, o, i, a, u, _, w, x) {
2381 return s
2382 ? s.update(o, i, a, u, _, w, x)

Callers 1

Calls 4

MakeRefFunction · 0.85
updateNodeFunction · 0.85
makeMapFunction · 0.85
emptyMapFunction · 0.85

Tested by

no test coverage detected