You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've seen some old code using the traverse function – and I want to move it to the new APIs (visit). Any guide on this?
If you like, here's what my code looks like:
// Using recast BTWrecast.types.traverse(ast,function(node){if(node.__stepper)returnfalse;if(types.CallExpression.check(node)){// Whatever}// a bunch more ifs if(myoptions.someoption)return;// some generic code which is run anyways});
The text was updated successfully, but these errors were encountered:
I've seen some old code using the
traverse
function – and I want to move it to the new APIs (visit
). Any guide on this?If you like, here's what my code looks like:
The text was updated successfully, but these errors were encountered: