MCPcopy Create free account
hub / github.com/aboutcode-org/vulnerablecode / addText

Method addText

vulnerablecode/static/js/highlight-10.6.0.min.js:18–19  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

16;return t.forEach((e=>{for(const t in e)n[t]=e[t]})),n}const i=e=>!!e.kind
17;class o{constructor(e,t){
18this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){
19this.buffer+=r(e)}openNode(e){if(!i(e))return;let t=e.kind
20;e.sublanguage||(t=`${this.classPrefix}${t}`),this.span(t)}closeNode(e){
21i(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){
22this.buffer+=`<span class="${e}">`}}class l{constructor(){this.rootNode={

Callers 3

_walkMethod · 0.45
dFunction · 0.45
pFunction · 0.45

Calls 1

rFunction · 0.70

Tested by

no test coverage detected