MCPcopy Create free account
hub / github.com/idank/explainshell / openNode

Method openNode

explainshell/web/static/js/highlight.min.js:30–31  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

28 this.rootNode=r(),this.stack=[this.rootNode]}get top(){
29 return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){
30 this.top.children.push(e)}openNode(e){const t=r({scope:e})
31 ;this.add(t),this.stack.push(t)}closeNode(){
32 if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){
33 for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}
34 walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){

Callers

nothing calls this directly

Calls 2

addMethod · 0.95
rFunction · 0.70

Tested by

no test coverage detected