( ctx: StateContext, path: babel.NodePath<t.FunctionDeclaration | ValidFunction>, )
| 53 | } |
| 54 | |
| 55 | function cleanFunctionDirectives( |
| 56 | ctx: StateContext, |
| 57 | path: babel.NodePath<t.FunctionDeclaration | ValidFunction>, |
| 58 | ) { |
| 59 | const body = path.get("body"); |
| 60 | |
| 61 | if (isPathValid(body, t.isBlockStatement)) { |
| 62 | cleanDirectives(body, ctx.directive); |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | function isFunctionDirectiveValid( |
| 67 | ctx: StateContext, |
no test coverage detected
searching dependent graphs…