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

Function parseBlock

docs/tests/v3/es6/js/sanddance-test-es6.js:94949–94961  ·  view source on GitHub ↗
(block, marktype, params, scope)

Source from the content-addressed store, hash-verified

94947 return params;
94948}
94949function parseBlock(block, marktype, params, scope) {
94950 const channels = {}, fields = {};
94951 for(const name in block)if (block[name] != null) // skip any null entries
94952 channels[name] = parse$1(expr(block[name]), scope, params, fields);
94953 return {
94954 $expr: {
94955 marktype,
94956 channels
94957 },
94958 $fields: Object.keys(fields),
94959 $output: Object.keys(block)
94960 };
94961}
94962function expr(enc) {
94963 return (0, _vegaUtil.isArray)(enc) ? rule(enc) : entry$1(enc);
94964}

Callers 1

parseEncodeFunction · 0.70

Calls 2

parse$1Function · 0.70
exprFunction · 0.70

Tested by

no test coverage detected