(block, marktype, params, scope)
| 147016 | return params; |
| 147017 | } |
| 147018 | function 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 | } |
| 147031 | function expr(enc) { |
| 147032 | return (0, _vegaUtil.isArray)(enc) ? rule(enc) : entry$1(enc); |
| 147033 | } |
no test coverage detected