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

Function parseUpdate

docs/app/js/sanddance-app.js:146617–146626  ·  view source on GitHub ↗

* Parse an event-driven operator update.

(spec)

Source from the content-addressed store, hash-verified

146615/**
146616 * Parse an event-driven operator update.
146617 */ function parseUpdate(spec) {
146618 var ctx = this, srcid = (0, _vegaUtil.isObject)(srcid = spec.source) ? srcid.$ref : srcid, source = ctx.get(srcid), target = null, update = spec.update, params = undefined;
146619 if (!source) (0, _vegaUtil.error)("Source not defined: " + spec.source);
146620 target = spec.target && spec.target.$expr ? ctx.eventExpression(spec.target.$expr) : ctx.get(spec.target);
146621 if (update && update.$expr) {
146622 if (update.$params) params = ctx.parseParameters(update.$params);
146623 update = ctx.handlerExpression(update.$expr);
146624 }
146625 ctx.update(spec, source, target, update, params);
146626}
146627const SKIP = {
146628 skip: true
146629};

Callers 1

parseSignalUpdatesFunction · 0.70

Calls 6

mergeSourcesFunction · 0.70
streamSourceFunction · 0.70
getMethod · 0.45
updateMethod · 0.45
filterMethod · 0.45
forEachMethod · 0.45

Tested by

no test coverage detected