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

Method constructor

explainshell/web/static/js/highlight.min.js:18–19  ·  view source on GitHub ↗
(e,t)

Source from the content-addressed store, hash-verified

16 }function i(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t]
17 ;return t.forEach((e=>{for(const t in e)n[t]=e[t]})),n}const s=e=>!!e.scope
18 ;class o{constructor(e,t){
19 this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){
20 this.buffer+=n(e)}openNode(e){if(!s(e))return;const t=((e,{prefix:t})=>{
21 if(e.startsWith("language:"))return e.replace("language:","language-")
22 ;if(e.includes(".")){const n=e.split(".")

Callers

nothing calls this directly

Calls 1

walkMethod · 0.80

Tested by

no test coverage detected