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

Function parseParameter

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

* Parse a single parameter.

(spec, ctx, params)

Source from the content-addressed store, hash-verified

131434
131435
131436function parseParameter(spec, ctx, params) {
131437 if (!spec || !(0, _vegaUtil.isObject)(spec)) return spec;
131438
131439 for (var i = 0, n = PARSERS.length, p; i < n; ++i) {
131440 p = PARSERS[i];
131441
131442 if ((0, _vegaUtil.hasOwnProperty)(spec, p.key)) {
131443 return p.parse(spec, ctx, params);
131444 }
131445 }
131446
131447 return spec;
131448}
131449/** Reference parsers. */
131450
131451

Callers 2

parseParametersFunction · 0.70
_defaultFunction · 0.70

Calls 3

parseIndexParameterFunction · 0.70
parseSubParametersFunction · 0.70
parameterValueFunction · 0.70

Tested by

no test coverage detected