(info, {fn, template, values})
| 89 | const createCache = p => ({p, stack: [], entry: null}); |
| 90 | |
| 91 | const unroll = (info, {fn, template, values}) => { |
| 92 | let {entry} = info; |
| 93 | if (!entry || entry.fn !== fn) { |
| 94 | info.entry = (entry = {fn, hook: null}); |
| 95 | entry.hook = createHook(createCache(info), entry); |
| 96 | } |
| 97 | return entry.hook(template, ...values); |
| 98 | }; |
| 99 | |
| 100 | const unrollHole = (info, {values}) => { |
| 101 | unrollValues(info, values, values.length); |
no test coverage detected