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

Method closeNode

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

Source from the content-addressed store, hash-verified

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={
23children:[]},this.stack=[this.rootNode]}get top(){
24return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){

Callers 3

_walkMethod · 0.45
addKeywordMethod · 0.45
xFunction · 0.45

Calls 1

iFunction · 0.85

Tested by

no test coverage detected