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

Method span

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

Source from the content-addressed store, hash-verified

23 ;return[`${t}${n.shift()}`,...n.map(((e,t)=>`${e}${"_".repeat(t+1)}`))].join(" ")
24 }return`${t}${e}`})(e.scope,{prefix:this.classPrefix});this.span(t)}
25 closeNode(e){s(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){
26 this.buffer+=`<span class="${e}">`}}const r=(e={})=>{const t={children:[]}
27 ;return Object.assign(t,e),t};class a{constructor(){
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){

Callers 1

openNodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected