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

Method set

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

Source from the content-addressed store, hash-verified

41127 constructor(s) {
41128 this.root = context_tree_createNode(s || {})
41129 }
41130 set(s, o) {
41131 const i = this.getParent(s, !0)
41132 if (!i) return void context_tree_updateNode(this.root, o, null)
41133 const a = s[s.length - 1],
41134 { children: u } = i
41135 u[a] ? context_tree_updateNode(u[a], o, i) : (u[a] = context_tree_createNode(o, i))
41136 }
41137 get(s) {
41138 if ((s = s || []).length < 1) return this.root.value

Callers

nothing calls this directly

Calls 3

getParentMethod · 0.95
context_tree_updateNodeFunction · 0.85
context_tree_createNodeFunction · 0.85

Tested by

no test coverage detected