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
* Check within each function declaration if there are hook declarations */
97
97
ast.forEach(functionDec=>{
98
98
letdeclarationBody: any;
99
-
if(functionDec.expression&&functionDec.expression.body)declarationBody=functionDec.expression.body.body;// check if functionDec.expression.body exists, then set declarationBody to functionDec's body
if(functionDec.expression?.body)declarationBody=functionDec.expression.body.body;// check if functionDec.expression.body exists, then set declarationBody to functionDec's body
100
+
elsedeclarationBody=functionDec.body?.body??[];
101
101
// Traverse through the function's funcDecs and Expression Statements
102
102
declarationBody.forEach((elem: any)=>{
103
103
// Hooks will always be contained in a variable declaration
0 commit comments