* Provide a correct pulse for evaluating an operator. If the operator has an * explicit source operator, we will try to pull the pulse(s) from it. * If there is an array of source operators, we build a multi-pulse. * Otherwise, we return a current pulse with correct source data. * If the pulse i
(op, encode)
| 108583 | * @param {string} [encode] - An (optional) encoding set name with which to |
| 108584 | * annotate the returned pulse. See {@link run} for more information. |
| 108585 | */ function getPulse(op, encode) { |
| 108586 | const s = op.source, stamp = this._clock; |
| 108587 | return s && (0, _vegaUtil.isArray)(s) ? new MultiPulse(this, stamp, s.map((_)=>_.pulse), encode) : this._input[op.id] || singlePulse(this._pulse, s && s.pulse); |
| 108588 | } |
| 108589 | function singlePulse(p, s) { |
| 108590 | if (s && s.stamp === p.stamp) return s; |
| 108591 | p = p.fork(); |
nothing calls this directly
no test coverage detected