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

Function walk

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

Source from the content-addressed store, hash-verified

40424 var Il,
40425 Tl,
40426 Nl = { includeSymbols: !1, immutable: !1 }
40427 function walk(s, o) {
40428 var i = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : Nl,
40429 a = [],
40430 u = [],
40431 _ = !0,
40432 w = i.includeSymbols ? own_enumerable_keys : Object.keys,
40433 x = !!i.immutable
40434 return (function walker(s) {
40435 var C = x ? legacy_copy(s, i) : s,
40436 j = {},
40437 L = !0,
40438 B = {
40439 node: C,
40440 node_: s,
40441 path: [].concat(a),
40442 parent: u[u.length - 1],
40443 parents: u,
40444 key: a[a.length - 1],
40445 isRoot: 0 === a.length,
40446 level: a.length,
40447 circular: void 0,
40448 isLeaf: !1,
40449 notLeaf: !0,
40450 notRoot: !0,
40451 isFirst: !1,
40452 isLast: !1,
40453 update: function update(s) {
40454 var o = arguments.length > 1 && void 0 !== arguments[1] && arguments[1]
40455 ;(B.isRoot || (B.parent.node[B.key] = s), (B.node = s), o && (L = !1))
40456 },
40457 delete: function _delete(s) {
40458 ;(delete B.parent.node[B.key], s && (L = !1))
40459 },
40460 remove: function remove(s) {
40461 ;(kl(B.parent.node)
40462 ? B.parent.node.splice(B.key, 1)
40463 : delete B.parent.node[B.key],
40464 s && (L = !1))
40465 },
40466 keys: null,
40467 before: function before(s) {
40468 j.before = s
40469 },
40470 after: function after(s) {
40471 j.after = s
40472 },
40473 pre: function pre(s) {
40474 j.pre = s
40475 },
40476 post: function post(s) {
40477 j.post = s
40478 },
40479 stop: function stop() {
40480 _ = !1
40481 },
40482 block: function block() {
40483 L = !1

Callers 1

Calls 9

legacy_copyFunction · 0.85
klFunction · 0.85
update_stateFunction · 0.85
_type_ofFunction · 0.85
_sliced_to_arrayFunction · 0.85
is_writableFunction · 0.85
concatMethod · 0.80
nextMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected