MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script /

Class

pages/viewScriptSource/libs/highlight.min.js:27–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25closeNode(e){s(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){
26this.buffer+=`<span class="${e}">`}}const a=(e={})=>{const t={children:[]}
27;return Object.assign(t,e),t};class c{constructor(){
28this.rootNode=a(),this.stack=[this.rootNode]}get top(){
29return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){
30this.top.children.push(e)}openNode(e){const t=a({scope:e})

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected