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

Class

explainshell/web/static/js/highlight.min.js:38–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static _collapse(e){
37 "string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{
38 a._collapse(e)})))}}class c extends a{constructor(e){super(),this.options=e}
39 addText(e){""!==e&&this.add(e)}startScope(e){this.openNode(e)}endScope(){
40 this.closeNode()}__addSublanguage(e,t){const n=e.root
41 ;t&&(n.scope="language:"+t),this.add(n)}toHTML(){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected