(ctx: StateContext, binding: Binding)
| 167 | } |
| 168 | |
| 169 | function transformBindingForServer(ctx: StateContext, binding: Binding) { |
| 170 | if (isPathValid(binding.path, t.isVariableDeclarator)) { |
| 171 | const right = unwrapPath(binding.path.get("init"), isValidFunction); |
| 172 | if (right) { |
| 173 | transformFunction(ctx, right, true); |
| 174 | } |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | interface State extends babel.PluginPass { |
| 179 | opts: StateContext; |
no test coverage detected