MCPcopy Index your code
hub / github.com/aboutcode-org/vulnerablecode / add

Method add

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

Source from the content-addressed store, hash-verified

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){
25this.top.children.push(e)}openNode(e){const t={kind:e,children:[]}
26;this.add(t),this.stack.push(t)}closeNode(){
27if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){
28for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}

Callers 15

openNodeMethod · 0.95
mergeMethod · 0.80
_collect_pkgsMethod · 0.80
process_advisoriesMethod · 0.80
process_inferencesFunction · 0.80
build_patch_set_mapFunction · 0.80

Calls

no outgoing calls

Tested by 15

create_advisoryMethod · 0.64
test_transitive_mergeMethod · 0.64
setUpMethod · 0.64
test_package_changelogFunction · 0.64
test_improver_end_to_endFunction · 0.64
setup_methodMethod · 0.64
vulnerabilityFunction · 0.64