(ctx: StateContext, directives: t.Directive[])
| 33 | } |
| 34 | |
| 35 | function isDirectiveValid(ctx: StateContext, directives: t.Directive[]) { |
| 36 | for (let i = 0, len = directives.length; i < len; i++) { |
| 37 | if (directives[i]!.value.value === ctx.directive) { |
| 38 | return true; |
| 39 | } |
| 40 | } |
| 41 | return false; |
| 42 | } |
| 43 | |
| 44 | function cleanDirectives(path: babel.NodePath<t.BlockStatement | t.Program>, target: string): void { |
| 45 | const newDirectives: t.Directive[] = []; |
no outgoing calls
no test coverage detected
searching dependent graphs…