MCPcopy Create free account
hub / github.com/danvk/webdiff / walk

Method walk

webdiff/static/js/highlight.min.js:34–34  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

32if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){
33for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}
34walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){
35return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),
36t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static _collapse(e){
37"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{

Callers 3

contains_symlinksFunction · 0.80
make_resolved_dirFunction · 0.80
constructorMethod · 0.80

Calls 1

_walkMethod · 0.80

Tested by

no test coverage detected