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

Function parseBlock

docs/app/js/sanddance-app.js:147018–147030  ·  view source on GitHub ↗
(block, marktype, params, scope)

Source from the content-addressed store, hash-verified

147016 return params;
147017}
147018function parseBlock(block, marktype, params, scope) {
147019 const channels = {}, fields = {};
147020 for(const name in block)if (block[name] != null) // skip any null entries
147021 channels[name] = parse$1(expr(block[name]), scope, params, fields);
147022 return {
147023 $expr: {
147024 marktype,
147025 channels
147026 },
147027 $fields: Object.keys(fields),
147028 $output: Object.keys(block)
147029 };
147030}
147031function expr(enc) {
147032 return (0, _vegaUtil.isArray)(enc) ? rule(enc) : entry$1(enc);
147033}

Callers 1

parseEncodeFunction · 0.70

Calls 2

parse$1Function · 0.70
exprFunction · 0.70

Tested by

no test coverage detected