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

Method addText

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

Source from the content-addressed store, hash-verified

33l._collapse(e)})))}}class c extends l{constructor(e){super(),this.options=e}
34addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}
35addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const n=e.root
36;n.kind=t,n.sublanguage=!0,this.add(n)}toHTML(){
37return new o(this,this.options).value()}finalize(){return!0}}function u(e){
38return e?"string"==typeof e?e:e.source:null}

Callers 1

addKeywordMethod · 0.95

Calls 1

addMethod · 0.80

Tested by

no test coverage detected