MCPcopy Create free account
hub / github.com/microsoft/SandDance / parseIndexParameter

Function parseIndexParameter

docs/tests/v2/es6/js/sanddance.js:135389–135395  ·  view source on GitHub ↗

* Parse parameter for accessing an index of another data set.

(def, spec, scope)

Source from the content-addressed store, hash-verified

135387
135388
135389function parseIndexParameter(def, spec, scope) {
135390 if (!(0, _vegaUtil.isString)(spec.from)) {
135391 (0, _vegaUtil.error)('Lookup "from" parameter must be a string literal.');
135392 }
135393
135394 return scope.getData(spec.from).lookupRef(scope, spec.key);
135395}
135396/**
135397 * Parse a parameter that contains one or more sub-parameter objects.
135398 */

Callers 1

parseParameterFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected