MCPcopy Create free account
hub / github.com/alignoth/alignoth / makeWithAncestors

Method makeWithAncestors

resources/vega-lite.min.js:9731–9754  ·  view source on GitHub ↗
(e, t, n, i)

Source from the content-addressed store, hash-verified

9729 );
9730 }
9731 static makeWithAncestors(e, t, n, i) {
9732 for (const e of D(n)) {
9733 const t = i.getWithExplicit(e);
9734 void 0 !== t.value &&
9735 (t.explicit ||
9736 t.value === n[e] ||
9737 "derived" === t.value ||
9738 "flatten" === n[e]
9739 ? delete n[e]
9740 : Si(ni(e, n[e], t.value)));
9741 }
9742 for (const e of D(t)) {
9743 const n = i.get(e);
9744 void 0 !== n && (n === t[e] ? delete t[e] : Si(ni(e, t[e], n)));
9745 }
9746 const r = new oc(t, n);
9747 i.copyAll(r);
9748 const o = {};
9749 for (const e of D(r.combine())) {
9750 const t = r.get(e);
9751 null !== t && (o[e] = t);
9752 }
9753 return 0 === D(o).length || i.parseNothing ? null : new Cd(e, o);
9754 }
9755 get parse() {
9756 return this._parse;
9757 }

Callers 2

makeExplicitMethod · 0.95
hpFunction · 0.80

Calls 7

getMethod · 0.95
combineMethod · 0.95
DFunction · 0.85
niFunction · 0.85
getWithExplicitMethod · 0.80
copyAllMethod · 0.80
SiFunction · 0.70

Tested by

no test coverage detected