MCPcopy Create free account
hub / github.com/davidkingzyb/SCAST / traverseObject

Function traverseObject

js/ESTREEJS.js:523–531  ·  view source on GitHub ↗
(n,node,file)

Source from the content-addressed store, hash-verified

521 }
522
523 function traverseObject(n,node,file){
524 for(let prop of n.properties){
525 if(!prop.value)continue
526 if(prop.value.type=="FunctionExpression"||prop.value.type=="ArrowFunctionExpression"){
527 prop.value.id={type:"Identifier",name:getValue(prop.key),loc:{start:{},end:{}}}
528 traverseFunction(prop.value,{},file)
529 }
530 }
531 }
532
533 function traverseFunction(member,cls,file,symbol){//member:function cls:parent function
534 // console.log('traverse function',member)

Callers 1

analysisMermaidFunction · 0.70

Calls 2

getValueFunction · 0.70
traverseFunctionFunction · 0.70

Tested by

no test coverage detected