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

Method addText

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

Source from the content-addressed store, hash-verified

17 ;return n.forEach((e=>{for(const n in e)t[n]=e[n]})),t}
18 const r=e=>!!e.scope||e.sublanguage&&e.language;class s{constructor(e,n){
19 this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){
20 this.buffer+=a(e)}openNode(e){if(!r(e))return;let n=""
21 ;n=e.sublanguage?"language-"+e.language:((e,{prefix:n})=>{if(e.includes(".")){
22 const t=e.split(".")
23 ;return[`${n}${t.shift()}`,...t.map(((e,n)=>`${e}${"_".repeat(n+1)}`))].join(" ")

Callers 4

_walkMethod · 0.45
cFunction · 0.45
gFunction · 0.45
EFunction · 0.45

Calls 1

aFunction · 0.70

Tested by

no test coverage detected