(block, marktype, params, scope)
| 94947 | return params; |
| 94948 | } |
| 94949 | function 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 | } |
| 94962 | function expr(enc) { |
| 94963 | return (0, _vegaUtil.isArray)(enc) ? rule(enc) : entry$1(enc); |
| 94964 | } |
no test coverage detected