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

Method _walk

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

Source from the content-addressed store, hash-verified

20310 return this.constructor._walk(s, this.rootNode)
20311 }
20312 static _walk(s, o) {
20313 return (
20314 'string' == typeof o
20315 ? s.addText(o)
20316 : o.children &&
20317 (s.openNode(o), o.children.forEach((o) => this._walk(s, o)), s.closeNode(o)),
20318 s
20319 )
20320 }
20321 static _collapse(s) {
20322 'string' != typeof s &&
20323 s.children &&

Callers 1

walkMethod · 0.80

Calls 4

addTextMethod · 0.45
openNodeMethod · 0.45
forEachMethod · 0.45
closeNodeMethod · 0.45

Tested by

no test coverage detected