MCPcopy Index your code
hub / github.com/aboutcode-org/vulnerablecode / openNode

Method openNode

vulnerablecode/static/js/highlight-10.6.0.min.js:25–26  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

23children:[]},this.stack=[this.rootNode]}get top(){
24return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){
25this.top.children.push(e)}openNode(e){const t={kind:e,children:[]}
26;this.add(t),this.stack.push(t)}closeNode(){
27if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){
28for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}
29walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){

Callers

nothing calls this directly

Calls 1

addMethod · 0.95

Tested by

no test coverage detected