(ast, magicString)
| 17 | }); |
| 18 | |
| 19 | function enforceTheAnswer(ast, magicString) { |
| 20 | for (const node of ast.body) { |
| 21 | if (node.type === 'VariableDeclaration') { |
| 22 | for (const decl of node.declarations) { |
| 23 | if (decl.id.name === 'answer') { |
| 24 | magicString.overwrite(decl.init.start, decl.init.end, '42'); |
| 25 | } |
| 26 | } |
| 27 | } |
| 28 | } |
| 29 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…