(node)
| 18 | export default function(ast, logger) { |
| 19 | traverser.replace(ast, { |
| 20 | enter(node) { |
| 21 | const match = matchTransformableProperty(node); |
| 22 | if (match) { |
| 23 | // Do not transform functions with name, |
| 24 | // as the name might be recursively referenced from inside. |
| 25 | if (match.functionName) { |
| 26 | logger.warn(node, 'Unable to transform named function', 'obj-method'); |
| 27 | return; |
| 28 | } |
| 29 | |
| 30 | node.method = true; |
| 31 | } |
| 32 | } |
| 33 | }); |
| 34 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…