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

Function parseIndexParameter

docs/app/js/sanddance-app.js:148118–148121  ·  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

148116/**
148117 * Parse parameter for accessing an index of another data set.
148118 */ function parseIndexParameter(def, spec, scope) {
148119 if (!(0, _vegaUtil.isString)(spec.from)) (0, _vegaUtil.error)('Lookup "from" parameter must be a string literal.');
148120 return scope.getData(spec.from).lookupRef(scope, spec.key);
148121}
148122/**
148123 * Parse a parameter that contains one or more sub-parameter objects.
148124 */ function parseSubParameters(def, spec, scope) {

Callers 1

parseParameterFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected