MCPcopy Index your code
hub / github.com/microsoft/SandDance / addSignal

Function addSignal

docs/app/js/sanddance-app.js:149653–149657  ·  view source on GitHub ↗
(name, value20)

Source from the content-addressed store, hash-verified

149651 return (0, _vegaUtil.hasOwnProperty)(this.signals, name);
149652 },
149653 addSignal (name, value20) {
149654 if (this.hasOwnSignal(name)) (0, _vegaUtil.error)("Duplicate signal name: " + (0, _vegaUtil.stringValue)(name));
149655 const op = value20 instanceof Entry ? value20 : this.add(operator(value20));
149656 return this.signals[name] = op;
149657 },
149658 getSignal (name) {
149659 if (!this.signals[name]) (0, _vegaUtil.error)("Unrecognized signal name: " + (0, _vegaUtil.stringValue)(name));
149660 return this.signals[name];

Callers

nothing calls this directly

Calls 2

operatorFunction · 0.70
addMethod · 0.45

Tested by

no test coverage detected