MCPcopy Create free account
hub / github.com/FSoft-AI4Code/HyperAgent / o

Function o

hyperagent-ext/media/scripts/highlight.min.js:26–27  ·  view source on GitHub ↗
(e={})

Source from the content-addressed store, hash-verified

24 }return`${n}${e}`})(e.scope,{prefix:this.classPrefix}),this.span(n)}
25 closeNode(e){r(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){
26 this.buffer+=`<span class="${e}">`}}const o=(e={})=>{const n={children:[]}
27 ;return Object.assign(n,e),n};class l{constructor(){
28 this.rootNode=o(),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 n=o({scope:e})

Callers 3

constructorMethod · 0.70
openNodeMethod · 0.70
highlight.min.jsFile · 0.70

Calls 2

ErrorClass · 0.85
assignMethod · 0.80

Tested by

no test coverage detected