MCPcopy Create free account
hub / github.com/WebReflection/neverland / unroll

Function unroll

index.js:1630–1651  ·  view source on GitHub ↗
(Tagger, info, _ref)

Source from the content-addressed store, hash-verified

1628 };
1629
1630 var unroll = function unroll(Tagger, info, _ref) {
1631 var _entry;
1632
1633 var type = _ref.type,
1634 template = _ref.template,
1635 values = _ref.values;
1636 var length = values.length;
1637 unrollValues(Tagger, info, values, length);
1638 var entry = info.entry;
1639
1640 if (!entry || entry.template !== template || entry.type !== type) {
1641 var tag = new Tagger(type);
1642 info.entry = entry = {
1643 type: type,
1644 template: template,
1645 tag: tag,
1646 wire: persistent(tag.apply(void 0, [template].concat(_toConsumableArray(values))))
1647 };
1648 } else (_entry = entry).tag.apply(_entry, [template].concat(_toConsumableArray(values)));
1649
1650 return entry.wire;
1651 };
1652
1653 var unrollValues = function unrollValues(Tagger, _ref2, values, length) {
1654 var stack = _ref2.stack;

Callers 4

createRenderFunction · 0.70
fixedFunction · 0.70
outerFunction · 0.70
unrollValuesFunction · 0.70

Calls 3

persistentFunction · 0.85
_toConsumableArrayFunction · 0.85
unrollValuesFunction · 0.70

Tested by

no test coverage detected