(info, {fn, template, values})
| 83 | const createCache = p => ({p, stack: [], entry: null}); |
| 84 | |
| 85 | const unroll = (info, {fn, template, values}) => { |
| 86 | let {entry} = info; |
| 87 | if (!entry || entry.fn !== fn) { |
| 88 | info.entry = (entry = {fn, hook: null}); |
| 89 | entry.hook = createHook(createCache(info), entry); |
| 90 | } |
| 91 | return entry.hook(template, ...values); |
| 92 | }; |
| 93 | |
| 94 | const unrollHole = (info, {values}) => { |
| 95 | unrollValues(info, values, values.length); |
no test coverage detected