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

Function parameters

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

Source from the content-addressed store, hash-verified

3487 skip: Sa(1),
3488 modified: Sa(2),
3489 parameters(t, e, n) {
3490 e = !1 !== e;
3491 const r = (this._argval = this._argval || new Ea()),
3492 i = (this._argops = this._argops || []),
3493 o = [];
3494 let a, u, l, c;
3495 const f = (t, n, a) => {
3496 a instanceof Fa
3497 ? (a !== this && (e && a.targets().add(this), o.push(a)),
3498 i.push({ op: a, name: t, index: n }))
3499 : r.set(t, n, a);
3500 };
3501 for (a in t)
3502 if (((u = t[a]), "pulse" === a))
3503 (V(u).forEach((t) => {
3504 t instanceof Fa
3505 ? t !== this && (t.targets().add(this), o.push(t))
3506 : s("Pulse parameters must be operator instances.");
3507 }),
3508 (this.source = u));
3509 else if (k(u))
3510 for (r.set(a, -1, Array((l = u.length))), c = 0; c < l; ++c)
3511 f(a, c, u[c]);
3512 else f(a, -1, u);
3513 return (this.marshall().clear(), n && (i.initonly = !0), o);
3514 },
3515 marshall(t) {
3516 const e = this._argval || Ca,
3517 n = this._argops;

Callers

nothing calls this directly

Calls 7

clearMethod · 0.80
VFunction · 0.70
sFunction · 0.70
kFunction · 0.70
fFunction · 0.70
addMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected