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

Method addText

hyperagent-ext/media/scripts/highlight.min.js:40–40  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

38 l._collapse(e)})))}}class c extends l{constructor(e){super(),this.options=e}
39 addKeyword(e,n){""!==e&&(this.openNode(n),this.addText(e),this.closeNode())}
40 addText(e){""!==e&&this.add(e)}addSublanguage(e,n){const t=e.root
41 ;t.sublanguage=!0,t.language=n,this.add(t)}toHTML(){
42 return new s(this,this.options).value()}finalize(){return!0}}function d(e){
43 return e?"string"==typeof e?e:e.source:null}function g(e){return m("(?=",e,")")}

Callers 1

addKeywordMethod · 0.95

Calls 1

addMethod · 0.45

Tested by

no test coverage detected