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

Function dL

resources/vega.min.js:31164–31191  ·  view source on GitHub ↗
(t, e, n)

Source from the content-addressed store, hash-verified

31162 return r;
31163 }
31164 function dL(t, e, n) {
31165 const r = t.type,
31166 i = e[t.name];
31167 return "index" === r
31168 ? (function (t, e, n) {
31169 _t(e.from) || s('Lookup "from" parameter must be a string literal.');
31170 return n.getData(e.from).lookupRef(n, e.key);
31171 })(0, e, n)
31172 : void 0 !== i
31173 ? "param" === r
31174 ? (function (t, e, n) {
31175 const r = e[t.name];
31176 return t.array
31177 ? (k(r) ||
31178 s("Expected an array of sub-parameters. Instead: " + Dt(r)),
31179 r.map((e) => gL(t, e, n)))
31180 : gL(t, r, n);
31181 })(t, e, n)
31182 : "projection" === r
31183 ? n.projectionRef(e[t.name])
31184 : t.array && !rO(i)
31185 ? i.map((e) => pL(t, e, n))
31186 : pL(t, i, n)
31187 : void (
31188 t.required &&
31189 s("Missing required " + Dt(e.type) + " parameter: " + Dt(t.name))
31190 );
31191 }
31192 function pL(t, e, n) {
31193 const r = t.type;
31194 if (rO(e))

Callers 1

hLFunction · 0.85

Calls 8

DtFunction · 0.85
gLFunction · 0.85
rOFunction · 0.85
pLFunction · 0.85
_tFunction · 0.70
sFunction · 0.70
kFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected