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

Function parseParameter

docs/app/js/sanddance-app.js:146483–146490  ·  view source on GitHub ↗

* Parse a single parameter.

(spec, ctx, params)

Source from the content-addressed store, hash-verified

146481/**
146482 * Parse a single parameter.
146483 */ function parseParameter(spec, ctx, params) {
146484 if (!spec || !(0, _vegaUtil.isObject)(spec)) return spec;
146485 for(let i = 0, n = PARSERS.length, p; i < n; ++i){
146486 p = PARSERS[i];
146487 if ((0, _vegaUtil.hasOwnProperty)(spec, p.key)) return p.parse(spec, ctx, params);
146488 }
146489 return spec;
146490}
146491/** Reference parsers. */ var PARSERS = [
146492 {
146493 key: "$ref",

Callers 1

parseParametersFunction · 0.70

Calls 4

parseIndexParameterFunction · 0.70
parseSubParametersFunction · 0.70
isSignalFunction · 0.70
parameterValueFunction · 0.70

Tested by

no test coverage detected