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

Function updateList

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

Source from the content-addressed store, hash-verified

2932 return Xe || (Xe = makeList(0, 0, w))
2933 }
2934 function updateList(s, o, i) {
2935 if ((o = wrapIndex(s, o)) != o) return s
2936 if (o >= s.size || o < 0)
2937 return s.withMutations(function (s) {
2938 o < 0 ? setListBounds(s, o).set(0, i) : setListBounds(s, 0, o + 1).set(o, i)
2939 })
2940 o += s._origin
2941 var a = s._tail,
2942 u = s._root,
2943 _ = MakeRef(B)
2944 return (
2945 o >= getTailOffset(s._capacity)
2946 ? (a = updateVNode(a, s.__ownerID, 0, o, i, _))
2947 : (u = updateVNode(u, s.__ownerID, s._level, o, i, _)),
2948 _.value
2949 ? s.__ownerID
2950 ? ((s._root = u), (s._tail = a), (s.__hash = void 0), (s.__altered = !0), s)
2951 : makeList(s._origin, s._capacity, s._level, u, a)
2952 : s
2953 )
2954 }
2955 function updateVNode(s, o, i, a, u, _) {
2956 var x,
2957 j = (a >>> i) & C,

Callers 1

Calls 7

wrapIndexFunction · 0.85
setListBoundsFunction · 0.85
MakeRefFunction · 0.85
getTailOffsetFunction · 0.85
updateVNodeFunction · 0.85
makeListFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected